Linux Netfilter discussions
 help / color / mirror / Atom feed
* 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

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