Re: HTTP redirect using iptables
From: David Mackay (mackay_d@bellsouth.net)Date: 12/11/01
- Next message: Hanky: "Re: Any one know where I should look for information on password generation"
- Previous message: Dave Carrigan: "Re: How to disable background proceses for certain user?"
- In reply to: Tom Swenson: "HTTP redirect using iptables"
- Next in thread: Tom Swenson: "Re: HTTP redirect using iptables"
- Reply: Tom Swenson: "Re: HTTP redirect using iptables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: David Mackay <mackay_d@bellsouth.net> Date: Tue, 11 Dec 2001 06:34:55 -0600
Tom Swenson wrote:
> I'm trying to use iptables to redirect all web traffic on one machine to a
> different machine somewhere else. I've been fiddling with it for quite some
> time and nothing seems to work. Can anyone give me a hand. Here is the
> latest command I have tried (amongst many).
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to
> [newcomputer ip}:80
That command should work. However, are you sure that the web traffic
isn't being filtered before it gets to your redirector? You don't
specify which machine is running iptables with that rule.
Dave
- Next message: Hanky: "Re: Any one know where I should look for information on password generation"
- Previous message: Dave Carrigan: "Re: How to disable background proceses for certain user?"
- In reply to: Tom Swenson: "HTTP redirect using iptables"
- Next in thread: Tom Swenson: "Re: HTTP redirect using iptables"
- Reply: Tom Swenson: "Re: HTTP redirect using iptables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|