Re: iptables

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

 



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@xxxxxxxxxxx
web:    www.agamura.com
----------------------------------------


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux