Linux Netfilter discussions
 help / color / mirror / Atom feed
* Redirect back to internal network
@ 2008-11-07 17:06 Henrique Netfilter
  2008-11-07 19:02 ` Grant Taylor
  2008-11-07 21:12 ` Grant Taylor
  0 siblings, 2 replies; 5+ messages in thread
From: Henrique Netfilter @ 2008-11-07 17:06 UTC (permalink / raw)
  To: netfilter

Good afternoon,

I앐 trying to redirect connections to an external address back to an
internal address, like this:

A = Any internal machine (192.168.X.X)
B = Internal Server           (192.168.X.4)
C = Firewall Internal Address     (192.168.X.1)
D = Firewall External Address    (10.X.X.1)
E = Router Internal Address       (10.X.X.10)
F = Router Internet Address       (YYY.YY.Y.YY)


A =================> |            |
 |            |
                                        | C      D |
----------------------------------- | E      F |
B <================= |            |
 |            |

I want, when machines A asks for port 80 in F, the firewall (iptables)
C/D redirects it back to B (access must not be done using a proxy).

Here압 what I았e tried:

-A PREROUTING -s 192.168.X.X -d YYY.YY.Y.YY -p tcp -m tcp --dport 80
-j DNAT --to-destination 192.168.X.4

Checked TCPDump, and here압 what I았e got:

IP 192.168.X.X.1365 > 192.168.X.4.80
IP 10.X.X.1.4972 > 192.168.X.4.80
IP 192.168.X.4.80 > 10.X.X.1.4972

Apparently it did work. But once my web server answers, the answer is
not sent back to the machines in my internal network.

Anyone that can give me some light into it?

Thank you

Henrique

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

end of thread, other threads:[~2008-11-07 21:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-07 17:06 Redirect back to internal network Henrique Netfilter
2008-11-07 19:02 ` Grant Taylor
2008-11-07 20:02   ` Henrique Netfilter
2008-11-07 20:51     ` Grant Taylor
2008-11-07 21:12 ` Grant Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox