All of lore.kernel.org
 help / color / mirror / Atom feed
* Internal NAT Translation:
@ 2004-07-01  1:43 Bryan Martin
  2004-07-04 13:04 ` Antony Stone
  2004-07-05 12:05 ` ro0ot
  0 siblings, 2 replies; 5+ messages in thread
From: Bryan Martin @ 2004-07-01  1:43 UTC (permalink / raw)
  To: netfilter

Setup looks like this

            Internet
                 ^
Redhat 9 iptables nat/masq    (200.200.200.200 public address = eth1;
192.168.2.1 private address = eth0)
                 ^
windows web server (192.168.2.254) | windows clients.    (all 192.168.2.X)


Now the rh box is masquerading for the private boxes.  Only thing not
standard is that any inbound http connections to the public address
200.200.200.200 is being dnatted to 192.168.2.254 which is the address of
the windows server.  This is working as expected.  The problem arises when a
internal client tries to connect to the public website.

For instance client request www.mycompany.com and DNS says go here
200.200.200.200 which would be correct if I was sitting on the outside
looking in.  I need iptables to basically say if any http request comes from
the internal network addressed to my public address dnat the public
200.200.200.200 to the private address.  I have tried the following without
success.  Only other thing I know is to setup a internal DNS just so the
internal clients get the internal address.  That would however be an extreme
waste of resources.

-A PREROUTING -i eth1 -d 200.200.200.200 -p tcp --dport 80 -j
DNAT --to-destination 192.168.2.254

Can someone help?

Bryan



^ permalink raw reply	[flat|nested] 5+ messages in thread
* Internal NAT Translation:
@ 2004-07-01  1:45 Bryan Martin
  2004-07-01  3:18 ` John A. Sullivan III
  0 siblings, 1 reply; 5+ messages in thread
From: Bryan Martin @ 2004-07-01  1:45 UTC (permalink / raw)
  To: netfilter

Setup looks like this

            Internet
                 ^
Redhat 9 iptables nat/masq    (200.200.200.200 public address = eth1;
192.168.2.1 private address = eth0)
                 ^
windows web server (192.168.2.254) | windows clients.    (all 192.168.2.X)


Now the rh box is masquerading for the private boxes.  Only thing not
standard is that any inbound http connections to the public address
200.200.200.200 is being dnatted to 192.168.2.254 which is the address of
the windows server.  This is working as expected.  The problem arises when a
internal client tries to connect to the public website.

For instance client request www.mycompany.com and DNS says go here
200.200.200.200 which would be correct if I was sitting on the outside
looking in.  I need iptables to basically say if any http request comes from
the internal network addressed to my public address dnat the public
200.200.200.200 to the private address.  I have tried the following without
success.  Only other thing I know is to setup a internal DNS just so the
internal clients get the internal address.  That would however be an extreme
waste of resources.

-A PREROUTING -i eth1 -d 200.200.200.200 -p tcp --dport 80 -j
DNAT --to-destination 192.168.2.254

Can someone help?

Bryan



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-07-05 12:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01  1:43 Internal NAT Translation: Bryan Martin
2004-07-04 13:04 ` Antony Stone
2004-07-05 12:05 ` ro0ot
  -- strict thread matches above, loose matches on Subject: below --
2004-07-01  1:45 Bryan Martin
2004-07-01  3:18 ` John A. Sullivan III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.