I have a server with 4 KVM
VMs running on it. These VMs have only one interface and all the interfaces are connected to the same OVS
bridge.
I was trying to block the ping on those VMs using the following iptables command
iptables -A OUTPUT -o ${tap_interface} -p icmp -m icmp --icmp-type 8 -j DROP
However, it was not working. Then I said, let's go to the basics and block all the ping messages, even the ones from the server. So I executed:
iptables -A OUTPUT -p icmp -m icmp --icmp-type 8 -j DROP
The situation now is that my server cannot ping (and I see packets hitting the previous rule) but my VMs are still able to ping. I don't understand why the traffic from the VMs is bypassing the rule.
interfaces are connected to the same OVS bridge
- that's your problem. – Michal Sokolowski Aug 18 '16 at 14:57