USB Networking
Stefan Monnier
monnier at iro.umontreal.ca
Fri Nov 7 16:22:07 CET 2008
> With Ubuntu 8.04 and 8.10 I've had 100% success on four or five different
> systems with:
> auto usb0
> iface usb0 inet static
> address 192.168.0.201
> netmask 255.255.255.252
> post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.202
> post-up iptables -I PREROUTING -i usb0 -p udp --dport 53 -j DNAT --to
> 192.168.0.254
> post-up echo 1 > /proc/sys/net/ipv4/ip_forward
> post-up iptables -P FORWARD ACCEPT
> pre-down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.202
> pre-down iptables -D PREROUTING -i usb0 -p udp --dport 53 -j DNAT --to
> 192.168.0.254
> in /etc/network/interfaces, and the fix noted on the wiki at
> http://wiki.openmoko.org/wiki/Usb_networking#Ubuntu_Issues
If you use "allow-hotplug" instead of "auto", it should work without
needing any "fix".
Stefan
More information about the community
mailing list