Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #delete and flush
- iptables --flush
- iptables --table nat --flush
- iptables --delete-chain
- #delete all chains
- iptables --table nat delete-chain
- #forwarding and masquearading
- iptables --table nat --append POSTROUTING --out-interface wlan0 MASQUERADE
- iptables --append FORWARD --in-interface eth0 -j ACCEPT
- #packet forwarding enable
- echo 1 > /proc/sys/net/ipv4/ip_forward
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement