USB Networking

Stefan Monnier monnier at
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
>     netmask
>     post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s
>     post-up iptables -I PREROUTING -i usb0 -p udp --dport 53 -j DNAT --to
>     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
>     pre-down iptables -D PREROUTING -i usb0 -p udp --dport 53 -j DNAT --to

> in /etc/network/interfaces, and the fix noted on the wiki at

If you use "allow-hotplug" instead of "auto", it should work without
needing any "fix".


More information about the community mailing list