Re: Proxy Chaining

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- 
From: "Javier Govea" <jgovea@xxxxxxxx>
To: <netfilter@xxxxxxxxxxxxxxxxxxx>
Sent: Friday, September 19, 2003 5:36 PM
Subject: Proxy Chaining


> Hi to all,
>
> I want to setup a chain of proxies and I was wondering if this could be
done with
> iptables. Any advice is very welcome. Here is more in detail what I
want:
>
> Host A needs to forward all traffic (http, ftp, icmp, ...) to Host B,
which in turns
> forwards all traffic to Host C, which in turns forawards everything to
its default
> gateway. The hosts do not belong to a LAN only A and B are in the same
LAN.
>
> Is it possible to setup this kind of proxy chaining with iptables?? if
so, any
> suggestions on how to do it?? if iptables is not the right tool to solve
this problem,
> any suggestions on what can i use???
>
> thanx to all in advance..
> Xavier

I have no idea if this works and if it doesn't please someone on this list
tell me why.

On Host A
iptables -t nat -A PREROUTING -j DNAT --to ip.to.host.B

On Host B
iptables -t nat -A PREROUTING -j DNAT --to ip.to.host.C

On Host C
iptables -t nat -A PREROUTING -j DNAT --to default.gateway.ip





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux