Hello ProxMox Forum,
I have the following setup:
VM1 to VM15 --> VLAN6 ---> vmbr1 ---> bond --> hw-swtich --> pfsense
I would like basically to prevent VM's member of same VLAN to communicate between each other, except the router. (I like to prevent any sniffing on L2 etc.)
On logical level I have few VM's having public IP's in same L2 and my physical pfsense.
I've see network where router/firewall is presenting itself as any mac address in the network.
Another option I've research is using ebtables block traffic on bridge level and allow only pfsense mac.
Based on those two links I found two possible solutions first is port isolation
https://serverfault.com/questions/388544/is-it-possible-to-enable-port-isolation-on-linux-bridges
Now the bridge ports tap0 and tap1 won't be able to send or receive any packet to or from the other port, but will still communicate normally with any other port of the bridge. You can choose to isolate all ports except one, used in the role of default promiscuous/uplink port.
So in my case will be
Second is using ebtables
https://stackoverflow.com/questions/32619904/linux-port-isolation-on-a-bridge-to-use-olsr-correctly
Here I would use:
Can you suggest me a way to accomplish this?
I have the following setup:
VM1 to VM15 --> VLAN6 ---> vmbr1 ---> bond --> hw-swtich --> pfsense
I would like basically to prevent VM's member of same VLAN to communicate between each other, except the router. (I like to prevent any sniffing on L2 etc.)
On logical level I have few VM's having public IP's in same L2 and my physical pfsense.
I've see network where router/firewall is presenting itself as any mac address in the network.
Another option I've research is using ebtables block traffic on bridge level and allow only pfsense mac.
Based on those two links I found two possible solutions first is port isolation
https://serverfault.com/questions/388544/is-it-possible-to-enable-port-isolation-on-linux-bridges
Code:
bridge link set dev tap1 isolated on
Now the bridge ports tap0 and tap1 won't be able to send or receive any packet to or from the other port, but will still communicate normally with any other port of the bridge. You can choose to isolate all ports except one, used in the role of default promiscuous/uplink port.
So in my case will be
Code:
ip link set dev tap0 master bond0
bridge link set dev tap105i0 isolated on
Second is using ebtables
https://stackoverflow.com/questions/32619904/linux-port-isolation-on-a-bridge-to-use-olsr-correctly
Code:
ebtables -P FORWARD DROP
ip link set br0 promisc on
Here I would use:
Code:
ebtables -P FORWARD DROP
ip link set bond0 promisc on
Can you suggest me a way to accomplish this?
Last edited: