iptables NAT entry times out but connects from firewall

From: Hanasaki JiJi (hanasaki@hanaden.com)
Date: Mon Apr 28 2003 - 12:57:16 EST


There is a firewall with two NICs and the below rule to allow an
internal host to connect out to smtp servers on the internet. Some
hosts have a connection timeout on a connect from $INTERNAL_IP_OF_SMTP
yet connect from the firewall just fine.

iptables -t nat -A POSTROUTING -p tcp -o $NIC_EXTERNAL \
        --dport 25 -s $INTERNAL_IP_OF_SMTP -j MASQUERADE

ex:
on firewall:
        telnet csoc-mail-msfc.csoconline.com 25
        
        above connects ok

on $INTERNAL_IP_OF_SMTP
        telnet csoc-mail-msfc.csoconline.com 25

        connection times out

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:30 EST