From b953af83905b66fb887722936c3687706c425db5 Mon Sep 17 00:00:00 2001 From: Richard Kettlewell Date: Sat, 9 Jul 2011 13:46:28 +0100 Subject: [PATCH] Update Mac-specific notes. - how (and why) to enable IP forwarding - correct 'launchctl unload' invocation Signed-off-by: Richard Kettlewell --- README.mac | 10 +++++++++- setup.mac | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.mac b/README.mac index 899f4d1..d6d60a8 100644 --- a/README.mac +++ b/README.mac @@ -25,7 +25,15 @@ To stop secnet: sudo launchctl stop uk.org.greenend.secnet To uninstall: - sudo launchctl unload uk.org.greenend.secnet + sudo launchctl unload /Library/LaunchDaemons/uk.org.greenend.secnet.plist sudo rm -f /Library/LaunchDaemons/uk.org.greenend.secnet.plist +If you need to enable IP forwarding: + sudo sysctl -w net.inet.ip.forwarding=1 + +(Note that on a Mac, you need to enable IP forwarding if you want to +route to addresses on one interface via another; i.e. if you expect to +be able to reach an address on en0 with a packet delivered through +tun0, IP forwarding must be turned on.) + Richard Kettlewell 2011-06-18 diff --git a/setup.mac b/setup.mac index 4473a2e..ff1ae73 100755 --- a/setup.mac +++ b/setup.mac @@ -62,5 +62,5 @@ echo "To stop secnet:" echo " sudo launchctl stop uk.org.greenend.secnet" echo echo "To uninstall:" -echo " sudo launchctl unload uk.org.greenend.secnet" +echo " sudo launchctl unload /Library/LaunchDaemons/uk.org.greenend.secnet.plist" echo " sudo rm -f /Library/LaunchDaemons/uk.org.greenend.secnet.plist" -- 2.30.2