Enviado em 23/01/2014 - 11:34h
Olá,
:INPUT ACCEPT [2970461:2947075469]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [2859060:646033520]
-A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth1 -o eth0 -j ACCEPT
-A FORWARD -j LOG
-A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o eth1 -j ACCEPT
-A FORWARD -j LOG
COMMIT
*nat
:PREROUTING ACCEPT [366:64349]
:INPUT ACCEPT [209:12448]
:OUTPUT ACCEPT [965:61495]
:POSTROUTING ACCEPT [760:49096]
-A PREROUTING -d 201.16.172.1/32 -p tcp -m tcp --dport 8080 -j DNAT --to-destination 192.168.0.11:80
-A POSTROUTING -d 192.168.0.11/32 -p tcp -m tcp --dport 80 -j SNAT --to-source 201.16.172.1:8080
-A PREROUTING -d 201.16.172.1/32 -p tcp -m tcp --dport 2211 -j DNAT --to-destination 192.168.0.11:22
-A POSTROUTING -d 192.168.0.11/32 -p tcp -m tcp --dport 22 -j SNAT --to-source 201.16.172.1:2211
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth1 -j MASQUERADE