Iptables proxy to a different network

Pascal Hambourg pascal.mail at plouf.fr.eu.org
Fri Feb 9 18:01:00 CET 2007


Andrus, Mr. Brian (Contractor) a écrit :
> 
> So to properly do this, I _must_ SNAT the connection

It is a possibility.

> and route them back from system C via system B?

"Or", not "and". If you SNAT, the return traffic will be routed properly.

> Diagram:
> 
> +---------------+
> |   System A    |
> +-------+-------+
>         |
> {===============}
> {    Internet   }
> {===============}
>         |
> +---------------+        +---A.B.C.x-----+
> |    Router     +--------|   System B    +
> +-------+-------+        +---------------+
>         |
> +-------+-------+
> |   System C    |
> +---X.Y.Z.x-----+

This is getting complicated...
In your first message, you said that A (the proxy) was a.b.c.1 and  B 
(the server) was x.y.z.1.
In this diagram, where are the client, the proxy and the server ?



More information about the netfilter mailing list