Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -t nat --flush
- iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
- iptables --append FORWARD --in-interface eth1 -j ACCEPT
- iptables -t nat -A PREROUTING -m state --state NEW,ESTABLISHED,RELATED,INVALID -p udp --dport 67 -j ACCEPT
- iptables -t nat -A PREROUTING -m state --state NEW,ESTABLISHED,RELATED,INVALID -p tcp --dport 67 -j ACCEPT
- iptables -t nat -A PREROUTING -m state --state NEW,ESTABLISHED,RELATED,INVALID -p udp --dport 53 -j ACCEPT
- iptables -t nat -A PREROUTING -m state --state NEW,ESTABLISHED,RELATED,INVALID -p tcp --dport 53 -j ACCEPT
- iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 172.16.254.1:4567
- iptables -t nat -A PREROUTING -p udp --dport 80 -j DNAT --to 172.16.254.1:4567
- iptables -t nat -N NET
- iptables -t nat -A NET -j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment