Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Brian Capouch <brianc@palaver.net>
To: netfilter@lists.samba.org
Subject: JNAT and SNAT private <-> public, but can't get to port 80 . . .
Date: Tue, 11 Jun 2002 20:06:12 -0500	[thread overview]
Message-ID: <3D069E84.F94CD414@palaver.net> (raw)

Tried to say it all in the subject line. . . 

Should I expect that when I set up a host that has private IP go out via
a public IP using a SNAT entry (simply: iptables -t nat -A POSTROUTING
-s 192.168.x.y -j SNAT --to-source w.x.y.z) and then use DNAT to allow
the public IP back in (iptables -t nat -A PREROUTING -d w.x.y.z -j DNAT
--to-destination 192.168.x.y) that I not be able to get web traffic to
port 80 through to the machine in question?

That seems to be my unfortunate situation.  Defaults are ACCEPT for
INPUT, OUTPUT, and FORWARD.

I hope this isn't a FAQ or I'm somehow otherwise proving cluelessness
here.  I've read around the web a bit and at least it doesn't seem the
answer is totally obvious. . .

Thanks in advance.

B.


             reply	other threads:[~2002-06-12  1:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-12  1:06 Brian Capouch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-12  3:10 JNAT and SNAT private <-> public, but can't get to port 80 . . hard__ware

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=3D069E84.F94CD414@palaver.net \
    --to=brianc@palaver.net \
    --cc=netfilter@lists.samba.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