Hi,
I'm not a specialist of firewalls and especially pf, but this should be simple, yet I can't make it.
I want to block some TCP paquets coming from a VM thru a tap when their destination is 192.168.5.c (a bare metal machine), port X on my private network. To do that I use pf on my router. This router holds the VM, the virtual bridge0 and the physical interface ix0.
I thought this rule would work, but no, it blocks nothing:
knowing that when I want to block a port Y on my router for the VM, the following rule works perfectly:
Any idea?
I'm not a specialist of firewalls and especially pf, but this should be simple, yet I can't make it.
I want to block some TCP paquets coming from a VM thru a tap when their destination is 192.168.5.c (a bare metal machine), port X on my private network. To do that I use pf on my router. This router holds the VM, the virtual bridge0 and the physical interface ix0.
Code:
(VM 192.168.5.a)-tap0->[bridge0]-ix0->...(192.168.5.c)
|.........Router 192.168.5.b.........|
I thought this rule would work, but no, it blocks nothing:
block in quick proto tcp from any to 192.168.5.c port X
knowing that when I want to block a port Y on my router for the VM, the following rule works perfectly:
block in quick proto tcp from any to 192.168.5.b port Y
Any idea?