Commit | Line | Data |
---|---|---|
19a171f1 RK |
1 | How to install secnet on a Fink-equipped OS X system: |
2 | - Install GMP: | |
3 | fink install gmp | |
4 | - Download and install ADNS: | |
5 | ./configure --disable-dynamic | |
6 | make | |
7 | sudo make install | |
8 | - Build secnet: | |
9 | ./configure CPPFLAGS=-I/sw/include LDFLAGS=-L/sw/lib | |
10 | make | |
11 | sudo make install | |
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: | |
16 | <key>RunAtLoad</key> | |
17 | <true/> | |
18 | - Create the 'secnet' user and install the job configuration: | |
19 | ./setup.mac. | |
20 | ||
21 | To start secnet: | |
22 | sudo launchctl start uk.org.greenend.secnet | |
23 | ||
24 | To stop secnet: | |
25 | sudo launchctl stop uk.org.greenend.secnet | |
26 | ||
27 | To uninstall: | |
b953af83 | 28 | sudo launchctl unload /Library/LaunchDaemons/uk.org.greenend.secnet.plist |
19a171f1 RK |
29 | sudo rm -f /Library/LaunchDaemons/uk.org.greenend.secnet.plist |
30 | ||
b953af83 RK |
31 | If you need to enable IP forwarding: |
32 | sudo sysctl -w net.inet.ip.forwarding=1 | |
33 | ||
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.) | |
38 | ||
19a171f1 | 39 | Richard Kettlewell 2011-06-18 |