Advertisement
Guest User

Untitled

a guest
Mar 24th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. allow-hotplug usb0
  2. auto usb0
  3. iface usb0 inet static
  4. address 192.168.2.14
  5. netmask 255.255.255.0
  6. up iptables -A POSTROUTING -t nat -s 192.168.2.15/32 -j MASQUERADE
  7. up echo 1 > /proc/sys/net/ipv4/ip_forward
  8. down iptables -D POSTROUTING -t nat -s 192.168.2.15/32 -j MASQUERADE
  9. down echo 0 > /proc/sys/net/ipv4/ip_forward
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement