Ladies and Gents,
    My problem is doing DNAT to an internal server.  I need to forward ports 1494,1450,and 3389.
    The iptables rules follow,  what am i missing?   I can't make the connection.  I've tested this with the software that uses those ports and just by telnetting to the port.  Any suggestions?  I'm not running anything else, portsentry is stopped and I'm not in hosts.deny file.
 
 
 
 
$IPTABLES -A PREROUTING -t nat -i $EXTERNALIF -p tcp -d $MYADDR --dport 1494 -j DNAT --to $PINE:1494
$IPTABLES -A FORWARD -i $EXTERNALIF -p tcp -d $PINE --dport 1494 -j ACCEPT
 
$IPTABLES -A PREROUTING -t nat -i $EXTERNALIF -p tcp -d $MYADDR --dport 1450 -j DNAT --to $PINE:1450
$IPTABLES -A FORWARD -i $EXTERNALIF -p tcp -d $PINE --dport 1450 -j ACCEPT
 
$IPTABLES -A PREROUTING -t nat -i $EXTERNALIF -p tcp -d $MYADDR --dport 3389 -j DNAT --to $PINE:3389
$IPTABLES -A FORWARD -i $EXTERNALIF -p tcp -d $PINE --dport 3389 -j ACCEPT

Thanks,
Vasiliy Boulytchev
Colorado Information Technologies Inc.

Reply via email to