1 How to install secnet on a Fink-equipped OS X system:
4 - Download and install ADNS:
5 ./configure --disable-dynamic
9 ./configure CPPFLAGS=-I/sw/include LDFLAGS=-L/sw/lib
12 - Install tuntap for OSX from http://tuntaposx.sourceforge.net/
13 - Create /etc/secnet/{key,secnet.conf,sites.conf} as usual
14 - If you don't want secnet 'always on', edit
15 uk.org.greenend.secnet.plist and remove *both* these two lines:
18 - Create the 'secnet' user and install the job configuration:
22 sudo launchctl start uk.org.greenend.secnet
25 sudo launchctl stop uk.org.greenend.secnet
28 sudo launchctl unload /Library/LaunchDaemons/uk.org.greenend.secnet.plist
29 sudo rm -f /Library/LaunchDaemons/uk.org.greenend.secnet.plist
31 If you need to enable IP forwarding:
32 sudo sysctl -w net.inet.ip.forwarding=1
34 (Note that on a Mac, you need to enable IP forwarding if you want to
35 route to addresses on one interface via another; i.e. if you expect to
36 be able to reach an address on en0 with a packet delivered through
37 tun0, IP forwarding must be turned on.)
39 Richard Kettlewell 2011-06-18