View source for User:Stuart

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Return to User:Stuart.

Personal tools

The entry in /etc/network/interfaces. I use /26 as my home network is 192.168.0.0/24

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