From 8bfb8562202082b1acbf9684a7eb6ddeca20ffea Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 12 May 2009 17:24:04 +0000 Subject: [PATCH] Enable NAT on both tap0 and tun0, and set the outgoing interface to eth10 which seems to be the default on instant-contiki --- tools/setup-nat-ubuntu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/setup-nat-ubuntu b/tools/setup-nat-ubuntu index 8e9d8fe3dc3..addae148c34 100755 --- a/tools/setup-nat-ubuntu +++ b/tools/setup-nat-ubuntu @@ -2,8 +2,9 @@ # Run this script as root ("sudo ./setup-nat-ubuntu"). It has been tested on Ubunru 8.04. -/sbin/iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE +/sbin/iptables --table nat --append POSTROUTING --out-interface eth10 -j MASQUERADE /sbin/iptables --append FORWARD --in-interface tun0 -j ACCEPT +/sbin/iptables --append FORWARD --in-interface tap0 -j ACCEPT /sbin/sysctl -w net.ipv4.conf.default.forwarding=1 /sbin/sysctl -w net.ipv4.conf.all.forwarding=1