On Mon, May 06, 2002 at 04:05:02PM -0600, Rick Stewart wrote:

> > > > Can you REDIRECT in the FORWARD chain in the filter table?

What you did originally, you're doing once again with -t filter.
What you need is:

$ iptables -t nat -A PREROUTING ... -j REDIRECT --to-port ...

Ramin

> > > 
> > > Nope, same errors.
> >
> > This was not a question but the solution...
> > Read the fine manuals.
> 
> $ iptables -t filter -A FORWARD -s 206.168.119.1 -p tcp --dport 80 \
>       -j REDIRECT --to-port 3128
> 
> iptables: Invalid argument
> 
> $ iptables -t filter -I FORWARD 1 -s 206.168.119.1 -p tcp --dport 80 \
>       -j REDIRECT --to-port 3128
> 
> iptables: Target problem
> 
> So, no, I can't.
> 
> Rick
> 

Reply via email to