iptables outbound traffic to all ports
Hi,
I configured NAT on linux box. I want to allow a lan ip to connect all incomming n all outgoing traffic on destination ip(internet ip) both tcp n udp on all ports. Pls. help me out. |
Well, to let the LAN IP connect to the WAN IP in only TCP and UDP protocols it's like:
Code:
iptables -P FORWARD DROP Code:
iptables -t nat -A PREROUTING -p TCP -i $WAN_IFACE -j DNAT --to-destination $LAN_IP Code:
iptables -P FORWARD DROP |
All times are GMT -5. The time now is 09:43 AM. |