From: Ramin Alidousti <ramin@cannon.eng.us.uu.net>
To: "Nicholas N.E" <nicholas@3wsi.net>
Cc: netfilter@lists.samba.org
Subject: Re: w/s on same LAN can't access DNAT'ed w/s
Date: Mon, 24 Jun 2002 10:17:02 -0400 [thread overview]
Message-ID: <20020624141702.GD26150@cannon.eng.us.uu.net> (raw)
In-Reply-To: <20020624140559.1FCE67994D@smtp01.metro.net.id>
On Mon, Jun 24, 2002 at 09:27:34PM +0700, Nicholas N.E wrote:
> 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 ?
iptables -t nat -A POSTROUTING -p tcp -s 10.0.3.0/24 -d 10.0.3.8 --dport 80 -j SNAT --to $Gateway_ext_IP
Ramin
>
> I do not know what this is called tho'
>
>
> Thank you for reading.
>
>
>
> Nicholas.
next prev parent reply other threads:[~2002-06-24 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-24 14:27 w/s on same LAN can't access DNAT'ed w/s Nicholas N.E
2002-06-24 14:14 ` Antony Stone
2002-06-24 14:17 ` Ramin Alidousti [this message]
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=20020624141702.GD26150@cannon.eng.us.uu.net \
--to=ramin@cannon.eng.us.uu.net \
--cc=netfilter@lists.samba.org \
--cc=nicholas@3wsi.net \
/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