iptables acting as a TCP proxy

Antony Stone Antony@Soft-Solutions.co.uk
Mon, 15 Mar 2004 12:59:38 +0000


On Monday 15 March 2004 12:43 pm, Gavin Hamill wrote:

> On Monday 15 March 2004 11:28, Antony Stone wrote:
> > iptables -A PREROUTING -p tcp --dport 80 -d old.ip.add.ress -j DNAT --to
> > new.ip.add.ress
> > iptables -A FORWARD -p tcp --dport 80 -d new.ip.add.ress -j ACCEPT
> > iptables -A POSTROUTING -p tcp --dport 80 -d new.ip.add.ress -j SNAT --to
> > my.ip.add.ress
>
> A thousand thanks, Antony - you're a giraffe among men - so walk tall :)

Er, thanks.   Never been called that before, but I'll do my best :)

Antony.

-- 
Abandon hope, all ye who enter here.
You'll feel much better about things once you do.

                                                     Please reply to the list;
                                                           please don't CC me.