Re: iptables problem

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

 



If you are trying to redirect web traffic to squid proxy then you can try
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination a.b.c.d:3128


Replace PREROUTING with OUTPUT if you are trying to redirect traffice originating from the same machine where you want the redirect to take place.

regards,
Bikrant

hare ram wrote:

still same problem

hare
----- Original Message -----
From: "Guilherme Viebig" <guilherme@xxxxxxxxxxxxxxxxxxxxxxx>
To: <netfilter@xxxxxxxxxxxxxxx>
Sent: Tuesday, May 13, 2003 10:32 PM
Subject: Re: iptables problem




Change REDIRECT to DNAT
----- Original Message -----
From: "hare ram" <hareram@xxxxxxxxxx>
To: <netfilter@xxxxxxxxxxxxxxx>
Sent: Tuesday, May 13, 2003 12:13 PM
Subject: iptables problem




Hi

i have installed iptables 1.2.8a in RH 9.0
and installed POM tooo
when i do

[root@ root]# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
REDIRECT --to-port 3128
iptables: Invalid argument

what is wrong
i dont see any problem, but iam getting this error
what could be the problem

hare


















[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux