RE: multiple destinations

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

 



> iptables -t nat -A PROSROUTING -p tcp --dport 80 -d ! 192.168.0.1 (and)
> ! 192.168.0.50 (and) ! xxx.xxx.xxx.xxx -j REDIRECT 3128
>
> I need more than one destination ... may be ussing my own new chains????
>
>
> Thanks in advance

you can use ACCEPT, or your own chain (which would use ACCEPT):

iptables -t nat -A PREROUTING -p tcp -d 192.168.0.1 --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -d 192.168.0.50 --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -d xxx.xxx.xxx.xxx --dport 80 -j ACCEPT
[ ... ]
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128

-j







[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