Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Nicholas N.E" <nicholas@3wsi.net>
To: netfilter@lists.samba.org
Subject: w/s on same LAN can't access DNAT'ed w/s
Date: Mon, 24 Jun 2002 21:27:34 +0700	[thread overview]
Message-ID: <20020624140559.1FCE67994D@smtp01.metro.net.id> (raw)

to be short :

10.0.3.0/24 ---> Gatewaty --> Internet
                              w.x.y.z

10.0.3.8 is DNAT'ed to accept http request and some UDP ports 
To the gateway w/ public IP

Internet ---> Gateway:80 -- DNAT--> 10.0.3.8:80


But workstations ( on the same LAN ) can not access 10.0.3.8 using the 
Gateway's Public IP
THey can only connect by typing 10.0.3.8 ( or hostname only ) in the 
browser's URL box

So far, I only use these on the nat tables :

iptables -t nat -A PREROUTING -p tcp -s 0/0 -d $Gateway_Ext_IP --dport 80 
-j DNAT --to 10.0.3.8:80

AND 

iptables -t nat -A POSTROUTING -s 0/0 -d 0/0 -o $ ext_iface -j SNAT --to 
$Gateway_ext_IP

Should I add something more so other workstations on the same LAN as 10.0.3.8
can access it by using their gateway's Public IP ?

I do not know what this is called tho'


Thank you for reading.



Nicholas.


             reply	other threads:[~2002-06-24 14:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-24 14:27 Nicholas N.E [this message]
2002-06-24 14:14 ` w/s on same LAN can't access DNAT'ed w/s Antony Stone
2002-06-24 14:17 ` Ramin Alidousti
2002-06-24 14:47   ` Nicholas

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=20020624140559.1FCE67994D@smtp01.metro.net.id \
    --to=nicholas@3wsi.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