Re: Some subject

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

 



First of all the notation is:

-d, --destination [!] address[/mask]

and not:

[!] -d, --destination address[/mask]

Secondly, there is only one "-d" permitted in each rule. If you can bundle
the IP's with the mask you're fine otherwise you need to have multiple rules.

Ramin

On Wed, Sep 10, 2003 at 01:02:22PM -0300, Kilson Arruda wrote:

> I have a Transparent Proxy like this
> 
> $IPTABLES -t nat -A PREROUTING -p tcp
> --dport 80 ! -d $DIRECT_IP -m mac --mac-source $MAC -j REDIRECT --to-port
> 3128
> 
> Question: can I use more then one "! -d", or multiple IPs to don't REDIRECT
> the port 80 for more then one IP?
> If yes, how can I do this?
> 
> --
> Kilson Arruda
> Linux User # 228238
> 
> 
> 
> ________________________________________________
> www.onwave.com.br - Internet e Conectividade
> 
> 


[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