Comment 44 for bug 279262

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote : Re: [Bug 279262] Re: network-manager After reboot network is totally broken

This is my /etc/network/interfaces

auto lo
iface lo inet loopback

auto usb0
iface usb0 inet static
        address 192.168.0.200
        netmask 255.255.255.0
        network 192.168.0.0
        up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
        up echo 1 > /proc/sys/net/ipv4/ip_forward &
        up iptables -P FORWARD ACCEPT &
        down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &

The auto usb0 line and everything below is to allow my FreeRunner to
access the Internet whilst it is plugged into the desktop running
Intrepid. This worked fine with Hardy.

If I comment out auto usb0 and everything below, I can access the rest
of the network, but then, of course, my FreeRunner no longer has
Internet access.

How do I get both up?