From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: Problem with DNAT from localhost to LAN via loopback
Date: Thu, 14 Apr 2005 16:19:28 -0400 [thread overview]
Message-ID: <20050414201928.GA2726@bender.817west.com> (raw)
In-Reply-To: <001d01c5412c$b6fda5d0$0926a8c0@HECTISIE>
On Thu, Apr 14, 2005 at 10:01:14PM +0200, Charles Delorme wrote:
> Thank you for that tip. Are there any side effects for this compilation
> directive ?
not that i'm aware of. i suppose if you want to split hairs, you're
forcing locally-generated packets to traverse an additional netfilter
hook. dunno that i would be concerned about that though.
> I'm not sure to understand what kind of rule I need to add in the OUTPUT
> chain. Should I copy the kind of rule I have in the PREROUTING table ?
probably. something like:
iptables -t nat -A OUTPUT -p tcp -d $EXT_IP --dport 3739 \
-j DNAT --to-destination 192.168.38.9:3739
the result being that when the firewall tries to connect to its own
external IP on TCP port 3739, the connection gets DNAT-ed to the 38.9
machine--which i *think* is what you were after.
-j
--
"Stewie: Careful! You're washing a baby's scalp, not scrubbing the vomit
out of a Christmas dress, you stupid holiday drunk."
--Family Guy
next prev parent reply other threads:[~2005-04-14 20:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 15:28 Problem with DNAT from localhost to LAN via loopback Charles Delorme
2005-04-14 17:18 ` Jason Opperisano
2005-04-14 20:01 ` Charles Delorme
2005-04-14 20:19 ` Jason Opperisano [this message]
2005-04-14 23:59 ` Charles Delorme
2005-04-14 18:06 ` Taylor, Grant
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=20050414201928.GA2726@bender.817west.com \
--to=opie@817west.com \
--cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox