All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hanasaki JiJi <hanasaki@hanaden.com>
To: Linux - LIST <linux-kernel@vger.kernel.org>
Subject: iptables NAT entry times out but connects from firewall
Date: Mon, 28 Apr 2003 12:57:16 -0500	[thread overview]
Message-ID: <3EAD6B7C.4090108@hanaden.com> (raw)

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


             reply	other threads:[~2003-04-28 17:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-28 17:57 Hanasaki JiJi [this message]
2003-04-29 19:07 ` iptables NAT entry times out but connects from firewall Harald Welte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EAD6B7C.4090108@hanaden.com \
    --to=hanasaki@hanaden.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.