| 1 |
iptables -F |
| 2 |
iptables -t nat -F |
| 3 |
# sloppy == no need to use iptables -N USER_CHAIN |
| 4 |
iptables -A INPUT -p tcp --dport 23 -j ACCEPT |
| 5 |
iptables -A USER_CHAIN -p icmp --icmp-type echo-reply -j ACCEPT |
| 6 |
iptables -A USER_CHAIN -p icmp -j DROP |
| 7 |
iptables -I USER_CHAIN -p icmp --icmp-type echo-request -j ACCEPT |
| 8 |
iptables -P INPUT DROP |
| 9 |
iptables -t nat -A POSTROUTING -s 10.0.0.0/21 -p tcp --dport 80 -j SNAT --to-source 192.168.1.15 |
| 10 |
iptables -t nat -A PREROUTING -d 192.0.2.5/32 -p tcp --dport 443 -j DNAT --to-destination 10.0.0.5:1500 |