Dieses Wiki ist ein Archiv bis 2023. Das aktuelle Wiki findet sich unter https://wiki.hamburg.ccc.de/

Difference between revisions of "ChaosVPN:MacOSXHowto"

From CCCHHWiki
Jump to: navigation, search
Line 41: Line 41:
 
  sudo ./chaosvpn
 
  sudo ./chaosvpn
  
Or create a LaunchAgent.
+
Or create a LaunchDaemon to run at system boot.
 +
 
 +
sudo nano /Library/LaunchDaemons/de.ccc.hamburg.wiki.chaosvpn.plist
 +
 
 +
 
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 +
<plist version="1.0">
 +
<dict>
 +
    <key>KeepAlive</key>
 +
    <true/>
 +
    <key>Label</key>
 +
    <string>de.ccc.hamburg.wiki.chaosvpn</string>
 +
    <key>ProgramArguments</key>
 +
    <array>
 +
        <string>/path/to/chaosvpn/chaosvpn</string>
 +
    </array>
 +
</dict>
 +
</plist>

Revision as of 00:10, 4 December 2013

How to install on OS X, as done on 10.9 (Mavericks)


Install tinc and tuntap via homebrew

brew install tinc tuntap

Download and install chaosvpn from git

git clone git://github.com/ryd/chaosvpn.git
cd chaosvpn
make
sudo make appleinstall

Configure chaosvpn, which works mostly as described in the General Howto

Note that the command to generate the keys is slightly different:

tinc --net=chaos --generate-keys=2048

You should now register with the chaosvpn team.

The configuration file for chaosvpn is located in /usr/local/etc/tinc and may be edited by

sudo nano /usr/local/etc/tinc/chaosvpn.conf

You've got to change $my_peerid and $my_vpn_ip.


To run it, you can try

sudo ./chaosvpn

Or create a LaunchDaemon to run at system boot.

sudo nano /Library/LaunchDaemons/de.ccc.hamburg.wiki.chaosvpn.plist


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>KeepAlive</key>
    <true/>
    <key>Label</key>
    <string>de.ccc.hamburg.wiki.chaosvpn</string>
    <key>ProgramArguments</key>
    <array>
        <string>/path/to/chaosvpn/chaosvpn</string>
    </array>
</dict>
</plist>