* w/s on same LAN can't access DNAT'ed w/s
@ 2002-06-24 14:27 Nicholas N.E
2002-06-24 14:14 ` Antony Stone
2002-06-24 14:17 ` Ramin Alidousti
0 siblings, 2 replies; 4+ messages in thread
From: Nicholas N.E @ 2002-06-24 14:27 UTC (permalink / raw)
To: netfilter
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.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: w/s on same LAN can't access DNAT'ed w/s
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
1 sibling, 0 replies; 4+ messages in thread
From: Antony Stone @ 2002-06-24 14:14 UTC (permalink / raw)
To: netfilter
On Monday 24 June 2002 3:27 pm, Nicholas N.E wrote:
> to be short :
>
> But workstations ( on the same LAN ) can not access 10.0.3.8 using the
> Gateway's Public IP
http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-10.html
Antony.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: w/s on same LAN can't access DNAT'ed w/s
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
2002-06-24 14:47 ` Nicholas
1 sibling, 1 reply; 4+ messages in thread
From: Ramin Alidousti @ 2002-06-24 14:17 UTC (permalink / raw)
To: Nicholas N.E; +Cc: netfilter
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: w/s on same LAN can't access DNAT'ed w/s
2002-06-24 14:17 ` Ramin Alidousti
@ 2002-06-24 14:47 ` Nicholas
0 siblings, 0 replies; 4+ messages in thread
From: Nicholas @ 2002-06-24 14:47 UTC (permalink / raw)
To: netfilter
Thank You Mr. Alidousti and Mr. Stone....
On Monday 24 June 2002 09:17 pm, Ramin Alidousti wrote:
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-06-24 14:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2002-06-24 14:47 ` Nicholas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox