Hello MikroTik community,
I have a CRS109 router (v6.47.7) and I am trying to create a firewall filter by interfaces.
Simple example:
Device A is on ether2
On ether8 port 22 from A should be reachable
On ether7 port 22 from A should not be reachable
I have already tried for a while, but in order to use In-Interface in the firewall rule, the Interface must be a master.
“in/out-interface matcher not possible when interface (ether7) is slave - use master instead (bridge)”
If ether7 is a master (I removed it from the bridge), the error in the firewall is gone but without bridge I cannot connect to device A.
Is this even possible? Or have I misunderstood something?
I would be glad, if you can help me
~port
Probably cause its being offloaded to the switch chip, you can work around this by disabling “Hardware Offload” in bridge–>Ports, but that will cause a reduction in performance on those ports.
Best then will be to configure a switch ACL / Filter rule, sorry, I don’t have access to a CRS device to at the moment to confirm configuration required, maybe someone else with access to CRS will chime in.
If I disable “Hardware Offload” the bridge filter works. That’s what I was looking for.
It is true, the performance is a bit slower, but acceptable.
I have also tired to use the switch ACL filter, but there is an error “Couldn’t add New Switch ACL Rule - policy rules are not supported on this switch chip (6)”.
If I got that right, then it doesn’t work on my router.
Maybe someone knows another method, without the performance reduction.
EDIT:
I don’t know which method will have the worst performance hit of below methods on the CRS109 device, but you can try both:
Bridge filter as per previous posts
or
Enable “Use IP Firewall” in bridge settings, then create a firewall rule in IP Firewall Filter to block what is needed (Remember to re enable Hardware Offload on ports)
But if I use the second method there is still the problem from my first post.
“in/out-interface matcher not possible when interface (ether7) is slave - use master instead (bridge)”
If ether7 is a master (I removed it from the bridge), the error in the firewall is gone but without bridge I cannot connect to device A.
I have enabled “Use IP Firewall” and “Hardware Offload”