iptables
Giuseppe Greco
giuseppe.greco at agamura.com
Sat Dec 18 16:22:50 UTC 2004
Doncho,
Thank you very much, it works!
j3d.
On Sat, 2004-12-18 at 18:01 +0200, Doncho N. Gunchev wrote:
> On 2004-12-18 (Saturday) 12:41, Giuseppe Greco wrote:
> > Hi all,
> >
> > I've to modify my /etc/sysconfig/iptables in order to
> > redirect HTTP requests to port 3128 (squid).
> >
> > I've added the following line
> >
> > -A PREROURING -s 10.0.0.0/24 -i eth0 -p tcp -m tcp --dport 80
> > -j REDIRECT --to-port 3128
> >
> > ... but iptables doesn't like this line... Am I missing something?
> >
>
> Yes :) This rule can only be in the nat table, not filter. Type
> 'iptables -t nat -A PREROUTING ......', then type 'iptables-save' to
> see how it should look like.
>
--
----------------------------------------
Giuseppe Greco
::agamura::
phone: +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email: giuseppe.greco at agamura.com
web: www.agamura.com
----------------------------------------
More information about the fedora-list
mailing list