I have put these four filters with iptables:
iptables -I FORWARD -p udp -i eth0 -j DROP
iptables -I FORWARD -p udp -o eth0 -j DROP
iptables -I INPUT -p udp -i eth0 -j DROP
iptables -I OUTPUT -p udp -o eth0 -j DROP
hoping to drop any udp packet on eth0
, but when I do:
tcpdum udp -vv -i eth0
I still see UDP packages come and go.
Can anyone explain this? And tell me how to really drop UDP packages on a specific interface? (eth0
for example)