Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. ifconfig eth0 down
  2. /etc/rc.d/iptables stop
  3. ifconfig eth0 20.1.0.1 netmask 255.255.255.0
  4. ifconfig eth0 up
  5. echo 1 > /proc/sys/net/ipv4/ip_forward
  6. iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
  7. /etc/rc.d/iptables save
  8. /etc/rc.d/iptables start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement