Re: Filter ips

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

 



>Hi everyone
>
>       I have some problems when I want to filter some ips in  my network
>
> 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.

It may have been accepted before.

> The same I put in the Output rules but it doen't
>work....

Note that you probably need to turn -s into -d and vice versa when 
changing INPUT to OUTPUT, too.

Jan Engelhardt
-- 


[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