Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
SAN: SAN ForumSAN TutorialsApple Xsan Forum

Re: VPN and OS-X 10.x

Cow Forums : SAN - Storage Area Networks
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: VPN and OS-X 10.x
by Dustin Lau on Nov 2, 2009 at 9:36:53 am

Just to add on to the post about hamachi, which I love and adore, you can also setup a script that will autolaunch a hamachi daemon on start up. This way you can access the machines remotely without someone having to start hamachi for you manually.

This is a tutorial for the process of doing that.

Obviously, this set of scripts requires that you've already installed both Hamachi and the tun/tap drivers.

To install the hamachi boot scripts, download this file:
http://freeasinbeer.com/hamachi-boot-macosx.tar.gz

And then enter these commands in Terminal in the directory where you downloaded the file:
sudo cp hamachi-boot-macosx.tar.gz /Library/StartupItems
cd /Library/StartupItems
sudo tar zxvf hamachi-boot-macosx.tar.gz
sudo chown -R root:wheel hamachi

This should result in a directory
/Library/StartupItems/hamachi/

Containing the files
/Library/StartupItems/hamachi/hamachi
/Library/StartupItems/hamachi/hamachi_helper
/Library/StartupItems/hamachi/hamachi_networks.conf
/Library/StartupItems/hamachi/StartupParameters.plist
/Library/StartupItems/hamachi/README

Next edit the beginning of hamachi_helper to reflect which account you used to install Hamachi by replacing "hamachi_account" with the appropriate account name.

If you installed Hamachi as root, I believe the script will work if you set HAMACHI_OWNER=root and HAMACHI_DIR=/var/root/.hamachi. Thanks go to one of the users for providing the correct HAMACHI_DIR variable setting. I'd thank them directly but here at freeasinbeer.com we respect your right to enjoy software anonymously!

After hamachi_helper works, change hamachi_networks.conf to contain the names of the networks you would like to sign on to. One network name per line, as many lines as you want. As far as I know there is no hard limit.

This package is designed to be run by SystemStarter during the boot process. However, you can test it manually by entering commands of the form:
sudo SystemStarter start hamachi
sudo SystemStarter restart hamachi
sudo SystemStarter stop hamachi

http://www.luminoir.com


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]