All of lore.kernel.org
 help / color / mirror / Atom feed
* Iptables proxy to a different network
@ 2007-02-09  0:41 Andrus, Mr. Brian (Contractor)
  2007-02-09 11:27 ` Pascal Hambourg
  0 siblings, 1 reply; 13+ messages in thread
From: Andrus, Mr. Brian (Contractor) @ 2007-02-09  0:41 UTC (permalink / raw)
  To: netfilter

Ok, this is maybe an odd one.
I have a system with a single nic and ip address a.b.c.1 (system A)
I want to proxy incoming requests to port 80 to a different system on a
different subnet of x.y.z.1 (system B)

On system a.b.c.1, I am trying the following in my
/etc/sysconfig/iptables:
-----------
*nat
-A PREROUTING -p tcp --dport 80 -j DNAT --to x.y.z:80
COMMIT
-----------

This seems to ALMOST work. The request from a client system (System C)
go to System A, get rewritten and are received by system B. System B
seems to be responding, trying to send to System C directly, but (I
think) System C is expecting its response to be from system A, not
System B, so it ignores the responses. At least, I see that kind of
traffic with tcpdump on each system.

Any help/ideas here? Perhaps there is a different approach other than
iptables too. FWIW, I want System A to be able to proxy http, dns and
ftp to System B on a different network.


Brian Andrus


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

end of thread, other threads:[~2007-02-13 20:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-09  0:41 Iptables proxy to a different network Andrus, Mr. Brian (Contractor)
2007-02-09 11:27 ` Pascal Hambourg
2007-02-09 12:38   ` Jan Engelhardt
2007-02-09 15:22     ` Pascal Hambourg
2007-02-09 16:04       ` Andrus, Mr. Brian (Contractor)
2007-02-09 17:01         ` Pascal Hambourg
2007-02-09 18:50           ` Andrus, Mr. Brian (Contractor)
2007-02-09 19:56             ` Pascal Hambourg
2007-02-09 17:49       ` Jan Engelhardt
2007-02-09 21:38         ` Pascal Hambourg
2007-02-09 22:22           ` Jan Engelhardt
2007-02-13 20:44           ` R. DuFresne
2007-02-13 20:53             ` Jan Engelhardt

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.