Re: iptables query

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

 



On Fri, 25 Mar 2005 14:58:18 +0530, shardul Adhikari
<free2squid@xxxxxxxxx> wrote:
> On Fri, 25 Mar 2005 09:54:47 +0100, Toby <tobia.conforto@xxxxxxxx> wrote:
> > shardul Adhikari wrote:
> > > iptables -A PREROUTING -t nat -i eth0 -d 202.75.112.3 --dport 8080 -j
> > > REDIRECT --to-port 3128
> >
> > I don't see "-p tcp" in that rule.  You can use --dport or --sport only
> > if you specify "-p tcp" or "-p udp".
> >
> > For this reason, that rule will give you an error if you try and run it.
> > Before you correct your mistake, you should look for the error message
> > and see where it is displayed, so that you can more easily discover
> > future mistakes and problems.
> >
> > Toby
> >
> > --
> > Love(n): The delusion that one woman differs from another.
> >                                                 H.L. Mencken
> >
> >
> - p tcp  is there , i forgot to mention it , sorry for that
> the rule is getting accepted , as it is showing in iptables -L -t nat
> 

Basically what i am trying to do is redirect any request going to
202.75.112.3 on port 8080 to port 3128 on the same machine .
Will that be possible , or do i have to set up a separate iptables
server for that purpose.
My iptables squid and dansguardian are running on same machine.


[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