I would like to isolate my hotspot network from the office lan. My lan is plugged into ether5. I have a wireless access point plugged into ether3-hotspot.
I have put these rules in but they have no effect:
add action=drop chain=forward comment=
“Hotspot custom - isolate public/internal LAN” disabled=no in-interface=
ether5 out-interface=ether3-hotspot
add action=drop chain=forward disabled=no in-interface=ether3-hotspot
out-interface=ether5
Assuming they are independent master ports and are not assigned to the same bridge. What you did looks good. Regardless this is what I am doing and I know it works.
Network Setup
10.0.0.0/22 Office (Protected Secure Network)
10.255.1.0/29 Printer (Office and other networks need access)
10.1-5.X.X/22 (Multiple other network that can print but can’t reach the office network.
Here are my exported rules to do this. Filter rule is to drop local packets not from office going to office. First mangle rule exempts the print network from being considered local to local. Second mangle tags everything else in 10.0.0.0/8 as local to local so the filter rule triggeres correctly.
Filter
add action=drop chain=forward comment=“Drop incoming to Office” dst-address=10.0.0.0/22 packet-mark=“Local to Local” src-address=!10.0.0.0/22
Mangle
add chain=forward comment=“Local to Local Printers” dst-address=10.0.0.0/8 out-interface=“Ether5-Out to Switch” src-address=10.255.1.0/29
add action=mark-packet chain=forward comment=“Local to Local Mark” dst-address=10.0.0.0/8 new-packet-mark=“Local to Local” out-interface=“Ether5-Out to Switch” passthrough=no src-address
I know this is way more complicated but it is working no issues. If you are sure your issue is not a bridge or switch… Try blocking the traffic my IP as I have done and it should work.