Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/sh
- INET="eth0"
- iptables -F INPUT
- iptables -F FORWARD
- iptables -F OUTPUT
- iptables -P INPUT ACCEPT
- iptables -P OUTPUT ACCEPT
- iptables -P FORWARD ACCEPT
- iptables -t nat -A POSTROUTING -o $INET -j MASQUERADE
- echo "1" > /proc/sys/net/ipv4/ip_forward
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement