Re: Filter ips

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

 



Hello,

nunezj@xxxxxxxxxxxxx a écrit :

 I put this rules in the my script:

 iptables -A INPUT -s 192.168.0.5/32 -d 0/0 -p tcp --dport 20,21 -j DROP

 but it doesn't work.

What do you mean *exactly* ?
--dport expects a port interval, not a port list : --dport 20:21



[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