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