Quote:
Originally Posted by Berkeley
I want to forward port 1720 to local ( behind Fedora Core 3 ) windows xp.
|
Code:
iptables -P FORWARD DROP
iptables -A -t nat PREROUTING -p TCP --dport 1720 \
-j DNAT --to-destination $CLIENT_IP
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -p TCP -i $WAN_IFACE -o $LAN_IFACE -d $CLIENT_IP \
--dport 1720 -m state --state NEW -j ACCEPT