Re: iptables

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

 



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.

-- 
Regards,
  Doncho N. Gunchev    Registered Linux User #291323 at counter.li.org
  GPG-Key-ID: 1024D/DA454F79                        http://pgp.mit.edu
  Key fingerprint = 684F 688B C508 C609 0371  5E0F A089 CB15 DA45 4F79


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

  Powered by Linux