Re: HTTP redirect using iptables

From: David Mackay (mackay_d@bellsouth.net)
Date: 12/11/01


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



Relevant Pages

  • Re: HTTP redirect using iptables
    ... Tom ... >> I'm trying to use iptables to redirect all web traffic on one machine to ... >> latest command I have tried. ... > specify which machine is running iptables with that rule. ...
    (comp.os.linux.security)
  • HTTP redirect using iptables
    ... I'm trying to use iptables to redirect all web traffic on one machine to a ... I've been fiddling with it for quite some ... latest command I have tried (amongst many). ...
    (comp.os.linux.security)
  • Re: IPTABLES
    ... > I need to setup the firewall IPTABLES on CentOS. ... You set up the firewall using command line commands. ... > allow to acces FROM the LAN only to a computer with MAC ADRESS xxxxxx. ...
    (comp.os.linux.setup)
  • Re: Redirecting lpt1 output to an installed printer
    ... to the lpt1 port. ... I am doing now is to redirect the output using the "net use" ... If there's a recognized printer on that port, ... which I do via a "net use LPT1" command inside a batch file. ...
    (microsoft.public.vb.general.discussion)
  • Re: Odd tcp dump? was: ssh working with dialup, not through router
    ... and try to run the iptables command you ... debug3: tty_make_modes: 91 1 ... debug1: fd 3 setting TCP_NODELAY ...
    (Fedora)

Quantcast