Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Automatically establish internetconnections via the Cisco VPNClient on start- and wake-up' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically establish internetconnections via the Cisco VPNClient on start- and wake-up
Authored by: Sito on Oct 20, '06 07:56:35AM
I was annoyed by always being forced to reestablish the Internetconnection by the Cisco-GUI after waking up my machine. Now, by the help of SleepWatcher (btw: thanx for the great hint and thanx for the software) the connection is always being reestablished automatically w no need of using the GUI anymore. Here is, what I did:

1. Installed the Files "SleepWatcher" and "SleepWatcher StartupItem" from the downloaded SleepWatcher File.

2. Wrote a little script (I used Textedit) containing just the following two lines:

vpnclient connect PROFILE
(whereas PROFILE has to be replaced by the Name of the File your Cisco VPNClient works with located in …/private/etc/opt/cisco-vpnclient/Profiles/ – btw the path is invisible but can be made visible with e.g. MacExplorer)

3. Saved the such created Texteditfile as ".wakeup" (w/o anything written before the stopmark and w/o the quotes) in my Homedirectory where it is being placed as an invisible file (but with e.g. MacExplorer easily to find if you need to edit it).

4. Opened the Terminal and made the ".wakeup"-file an executable Unix-file by typing the following line:

chmod +x /Users/MYNAME/.wakeup

(whereas MYNAME has to be replaced by the name of your Homedirectory).

5. Restarted my machine.

And that did it. Now, whenever I startup my machine or wake it up, the internetconnection is automatically being (re)established. Another advantage: You won´t need the Cisco-GUI anymore and therefore will have a bit more space in your dock for something else ;-)

[ Reply to This | # ]

Automatically establish internetconnections via the Cisco VPNClient on start- and wake-up
Authored by: Sito on Oct 20, '06 08:48:33AM
Forgot one thing to mention: This hint only works if there is no prompt for your password on login to the Cisco-Network. To get rid of the prompt, there will be some editing necessary on the Connection-Profile placed in the folder …/private/etc/opt/cisco-vpnclient/Profiles/ (you can browse hidden folders with e.g. MacExplorer):

1. Shut down the VPN-Connection and quit the GUI (because it will override all of the following, when being closed later).

2. Open the YourProfile.pcf in e.g. Textedit (whereas "YourProfile" is the Profilename the Cisco-GUI shows when connecting).

3. Find the line Username= and make sure that your Username as distributed by your admin is entered there.

4. Find the line SaveUserPassword. If the value is set to =1 and your username (step 3) was already entered, everything is fine and you can use the former posted hint. But if the value is set to =0, set the value to =1 and go on with the following steps.

5. Now, find the line UserPassword and behind the = type in your personal userpassword you got from the admin.

6. Close Textedit and browse to the file (YourProfile.pcf (see above)) in the folder named above (again with e.g. MacExplorer).

7. Select the pcf-file you just edited and press command-i to get the file information.

8. Make sure the item "locked" is being highlighted. This way your editing won´t be lost after using the Cisco-GUI at a later time.

Now, the former posted hint should work. To make sure, that your editing was fine you might want to use the Cisco-GUI to see if you got rid of the prompt for your account and your password.

[ Reply to This | # ]