Marrabel
(usa CentOS)
Enviado em 06/11/2012 - 15:35h
Eis as regras:
iptables -F
iptables -t nat -F
echo 1 > /proc/sys/net/ipv4/ip_forward
#iptables -A INPUT -p tcp --dport 1433 -j ACCEPT
#iptables -t nat -A PREROUTING -i $InterfaceFirewall -p tcp --dport 1433 -j DNAT --to-destination 10.x.x.x:1433
#iptables -A FORWARD -p tcp -i $InterfaceFirewall --dport 1433 -d 10.x.x.x -j ACCEPT
#iptables -t nat -A POSTROUTING -o $InterfaceFirewall -p tcp --dport 1433 -j MASQUERADE