Re: (no subject)

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

 



At 07:46 2004-02-21, Anthony de Almeida Lopes wrote:
Hi, I would like to add a certain rule to my firewall, but I have a
dynamic IP, I'm wondering if there is some way I can work with this
the line is as follows:

iptables -A INPUT -p tcp -d <MyDynamicIP> --tcp-flags SYN,FIN SYN,FIN -j
DROP

OTOMH:
iptables -A INPUT -p tcp -d `ip ad sh dev <external interface, like eth1>|grep inet|awk '{print $2}'|cut -d / -f 1` --tcp-flags SYN,FIN SYN,FIN -j DROP


I may be wrong on the "ip" output, You may need to change $2



[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