linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iptables NAT entry times out but connects from firewall
@ 2003-04-28 17:57 Hanasaki JiJi
  2003-04-29 19:07 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: Hanasaki JiJi @ 2003-04-28 17:57 UTC (permalink / raw)
  To: Linux - LIST

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-29 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-28 17:57 iptables NAT entry times out but connects from firewall Hanasaki JiJi
2003-04-29 19:07 ` Harald Welte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).