User:MarkFinkle/USBN900

From MozillaWiki
Jump to: navigation, search

From Doug Turner:

<code>
Host:

sudo su
ifconfig usb0 192.168.2.14 up
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24


Device:
/sbin/ifup usb0
ifconfig wlan0 down
# fix /etc/resolv.conf for DNS resolution 
</code>