Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ifconfig eth0 down
- /etc/rc.d/iptables stop
- ifconfig eth0 20.1.0.1 netmask 255.255.255.0
- ifconfig eth0 up
- echo 1 > /proc/sys/net/ipv4/ip_forward
- iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
- /etc/rc.d/iptables save
- /etc/rc.d/iptables start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement