Switch rules
Posted: Sat Sep 21, 2024 6:22 am
Hello,
I'm trying to add a switch rule but I'm not sure I'm using it correctly.
I want to drop forward packets, I was using the Bridge filter before. but after I enabled HW-offload it stopped working.
The bridge filter rule that I was using:
The switch rule I added:
The switch rule seems to be working. But I'm not an expert and want to ensure it's the correct configuration.
I'm trying to add a switch rule but I'm not sure I'm using it correctly.
I want to drop forward packets, I was using the Bridge filter before. but after I enabled HW-offload it stopped working.
The bridge filter rule that I was using:
Code: Select all
/interface bridge filter
add action=drop chain=forward comment="Drop unauthorized access" dst-address=\
10.10.0.0/22 in-bridge=bridge1 mac-protocol=ip out-bridge=bridge1 \
src-address=10.10.4.0/22
Code: Select all
/interface ethernet switch rule
add dst-address=10.10.0.0/22 ports=ether5 redirect-to-cpu=yes \
src-address=10.10.4.0/22 switch=switch1