[PATCH 1/3] Update Mac-specific notes.
Richard Kettlewell
rjk at terraraq.org.uk
Sun Jul 10 12:23:43 BST 2011
- how (and why) to enable IP forwarding
- correct 'launchctl unload' invocation
Signed-off-by: Richard Kettlewell <rjk at terraraq.org.uk>
---
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"
--
1.6.4.2
More information about the sgo-software-discuss
mailing list