From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bikrant Neupane Subject: Re: iptables problem Date: Wed, 14 May 2003 17:23:39 +0545 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3EC22ABF.90300@wlink.com.np> References: <1bd101c31962$358e1820$09603fca@Housecall> <004001c31971$65185c40$6800817d@TESTE> <004001c31a0a$5cf103c0$09603fca@Housecall> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <004001c31a0a$5cf103c0$09603fca@Housecall> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.samba.org 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" >To: >Sent: Tuesday, May 13, 2003 10:32 PM >Subject: Re: iptables problem > > > > >>Change REDIRECT to DNAT >>----- Original Message ----- >>From: "hare ram" >>To: >>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 >>> >>> >>> >>> >>> >> >> >> > > > > > >