Lifehack



VPN client Mac Lifehacker

Force Mac OS X to Automatically Reconnect to VPN  February 21, 2016 – 06:05 pm

Force Mac OS X to Automatically Reconnect to VPNA VPN (Virtual Private Network) is a great way to browse the web securely, and OS X has a VPN option built right into it. The problem is that it doesn't always automatically connect when you boot up your computer, or after it disconnects for some reason. A simple Applescript over on Stack Exchange solves this problem.

To enable this function, open up Applescript (Applications > Utilities) and paste in this code (replace "VPN University" with the service name you use):

on idle tell application "System Events" tell current location of network preferences set myConnection to the service "VPN University" if myConnection is not null then if current configuration of myConnection is not connected then connect myConnection end if end if end tell return 120 end tell end idle

Then, save the script as an application with the "Stay Open" box checked. Now, when you're browsing with a VPN, say, at a coffee shop, or just at your own house, OS X will automatically reconnect if the connection drops for some reason. The Applescript should work in both Mountain Lion and Lion. Head over to StackExchange for the full step-by-step instructions.

Source: lifehacker.com

The Brewologist Pour Over Coffee Cone, the Clever Coffee Dripper: Permanent, Reusable, Stainless Steel Coffee Filter and Brewer with Pour Over Coffee Stand (4 cup)
Kitchen (The Brewologist)
  • *Coffee Lovers Choice*: The choice of coffee aficionados
  • *A Better Brew*: Fuller flavored coffee with a fine ability to control each cup to your taste
  • *18/8 Finest Quality Stainless Steel*: Reusable, ultra fine filter, BPA and paper free
  • *The Perfect Gift*: A perfect gift for the coffee lover in your life
  • *No Risk*: 100% Money Back Guarantee

You might also like:

PazinIT predavanje: How I work - Ivan Guštin
PazinIT predavanje: How I work - Ivan Guštin
This is what happened at my works Christmas party.
This is what happened at my works Christmas party.
TLC - This Is How It Works (Waiting To Exhale Soundtrack
TLC - This Is How It Works (Waiting To Exhale Soundtrack ...
Green Apple Peeler Corer Slicer Makes Healthy Snacks for Kids, Spiral Slicer, Thin Fruit Slices to Dehydrate, Stainless Steel Blades, Peel Potatoes, Slice Zucchinis, Kitchen Appliance, Free Recipes
Kitchen (Loopy Apple)
  • FABULOUS GIFT ITEM: Perfect gift for Christmas, Mother s Day, Father s Day, kids birthdays, an absolute must for the Apple Season. Don t forget to get one for your...
  • ENCOURAGE KIDS TO EAT HEALTHY: The spirals are so much fun, kids cannot resist them. Watch them enjoy eating their fruit and vegetables, so much better for them...
  • FREE RECIPE EBOOK: 12 delicious healthy recipes specially created for the Loopy Apple peeler, delivered to you soon after you buy one. These recipes are not available...
  • EXCELLENT SELECTION OF COLORS: Choose from Bright Cheery Red, Stunning Cobalt Blue, Fresh Apple Green, Ebony Black. Let us know what your favorite color is by leaving...
  • PREMIUM PRODUCT WITH FULL MONEY BACK GUARANTEE: Have a close look at the images of the Loopy Apple peeler. You ll see the sharp stainless steel blades. It has a...

Related posts:

  1. Hard drive Analyzer Lifehacker
  2. Awesome life Hacks Tumblr
  3. Android apps Lifehacker 2012
  4. Best Android app Lifehacker
  5. Android apps at Lifehacker