User:Stuart

From Openmoko

Revision as of 09:52, 16 August 2009 by Stuart (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The entry in /etc/network/interfaces

allow-hotplug eth7 iface eth7 inet static

       address 192.168.0.201
       netmask 255.255.255.252

up iptables -A POSTROUTING -t nat -s 192.168.0.200/26 -j MASQUERADE up echo 1 > /proc/sys/net/ipv4/ip_forward down iptables -D POSTROUTING -t nat -s 192.168.0.200/26 -j MASQUERADE

Personal tools

The entry in /etc/network/interfaces

allow-hotplug eth7 iface eth7 inet static

       address 192.168.0.201
       netmask 255.255.255.252

up iptables -A POSTROUTING -t nat -s 192.168.0.200/26 -j MASQUERADE up echo 1 > /proc/sys/net/ipv4/ip_forward down iptables -D POSTROUTING -t nat -s 192.168.0.200/26 -j MASQUERADE