allow-hotplug usb0
mapping hotplug
script grep
map usb0
iface usb0 inet static
address 10.0.0.1
netmask 255.255.255.0
up iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.2 -j MASQUERADE
up echo 1 > /proc/sys/net/ipv4/ip_forward
down iptables -t nat -D POSTROUTING -o eth0 -s 10.0.0.2 -j MASQUERADE
down echo 0 > /proc/sys/net/ipv4/ip_forward
