I have spent weeks determined not to let this get the better of me. I have read all the forum posts and various tutorials. I’ve experimented again and again, but I am now accepting defeat…I have a fairly basic set up using a RB760iGS. Whenever I turn on VLAN filtering for the bridge using the setup below, it all seems fine for a few days, then my issues begin. The clients on the VLANs get an IP address from the DHCP server and my untagged native VLAN traffic is fine, but I then find that that devices stop being able to access the internet on the WAN.
Ether1 is a WAN and ether ports 2-10 have a mix of access and trunk ports with 4 VLANs. I know that I’m doing something silly but for the life of me cannot figure it out. I have never had a router / switch ever defeat me like this. Can someone help me understand what the issue is please?
/interface bridge
add admin-mac=33:33:33:33:33:33 auto-mac=no comment=defconf name=LanBridge protocol-mode=none vlan-filtering=yes
add interface=LanBridge name=VLAN5 vlan-id=5
add interface=LanBridge name=VLAN10 vlan-id=10
add interface=LanBridge name=VLAN20 vlan-id=20
add interface=LanBridge name=VLAN30 vlan-id=30
/interface ethernet switch port
set 0 default-vlan-id=0
set 1 default-vlan-id=0
set 2 default-vlan-id=0
set 3 default-vlan-id=0
set 4 default-vlan-id=0
set 5 default-vlan-id=0
set 6 default-vlan-id=0
set 7 default-vlan-id=0
set 8 default-vlan-id=0
set 9 default-vlan-id=0
set 10 default-vlan-id=0
set 11 default-vlan-id=0
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
add name=all-vlan
add comment="VLAN list" name=vlan
add name=Subnets
add comment="All LAN/VLAN, exclude WAN" exclude=WAN include=LAN,vlan name="all lan/vlan"
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=dhcp ranges=192.168.2.2-192.168.2.254
add name=dhcp_pool5 ranges=192.168.5.2-192.168.5.254
add name=dhcp_pool10 ranges=192.168.10.2-192.168.10.254
add name=dhcp_pool20 ranges=192.168.20.2-192.168.20.254
add name=dhcp_pool30 ranges=192.168.30.2-192.168.30.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=LanBridge name=defconf
add address-pool=dhcp_pool5 disabled=no interface=VLAN5 lease-time=3d name=dhcp5 src-address=192.168.5.1
add address-pool=dhcp_pool10 disabled=no interface=VLAN10 lease-time=3d name=dhcp10 src-address=192.168.10.1
add address-pool=dhcp_pool20 disabled=no interface=VLAN20 lease-time=3d name=dhcp20 src-address=192.168.20.1
add address-pool=dhcp_pool30 disabled=no interface=VLAN30 lease-time=3d name=dhcp30 src-address=192.168.30.1
/interface bridge port
add bridge=LanBridge ingress-filtering=yes interface=ether2
add bridge=LanBridge frame-types=admit-only-untagged-and-priority-tagged ingress-filtering=yes \
interface=ether3 pvid=30
add bridge=LanBridge frame-types=admit-only-untagged-and-priority-tagged interface=\
ether4 pvid=30
add bridge=LanBridge ingress-filtering=yes interface=ether5
add bridge=LanBridge ingress-filtering=yes interface=ether6
add bridge=LanBridge ingress-filtering=yes interface=ether7
add bridge=LanBridge interface=ether8
add bridge=LanBridge ingress-filtering=yes interface=ether9
add bridge=LanBridge ingress-filtering=yes interface=ether10
add bridge=LanBridge comment=defconf interface=sfp-sfpplus1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface bridge vlan
add bridge=LanBridge tagged=ether7,ether8,ether9,ether10,LanBridge untagged=ether3,ether4 vlan-ids=30
add bridge=LanBridge tagged=ether7,ether8,ether9,ether10,LanBridge vlan-ids=5
add bridge=LanBridge tagged=ether7,ether8,ether9,ether10,LanBridge vlan-ids=10
add bridge=LanBridge tagged=ether7,ether8,ether9,ether10,LanBridge vlan-ids=20
/interface list member
add nterface=LanBridge list=LAN
add interface=ether1 list=WAN
add interface=VLAN5 list=all-vlan
add interface=VLAN10 list=all-vlan
add interface=VLAN20 list=all-vlan
add interface=VLAN30 list=all-vlan
add interface=VLAN5 list=vlan
add interface=VLAN10 list=vlan
add interface=VLAN20 list=vlan
add interface=VLAN30 list=vlan
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=ether5 list=LAN
add interface=ether6 list=LAN
add interface=ether7 list=LAN
add interface=ether8 list=LAN
add interface=ether9 list=LAN
add interface=ether10 list=LAN
/ip address
add address=192.168.88.1/24 disabled=yes interface=LanBridge network=192.168.88.0
add address=192.168.88.1/24 disabled=yes interface=LanBridge network=192.168.88.0
add address=192.168.2.1/24 interface=ether2 network=192.168.2.0
add address=192.168.5.1/24 interface=VLAN5 network=192.168.5.0
add address=192.168.10.1/24 interface=VLAN10 network=192.168.10.0
add address=192.168.20.1/24 interface=VLAN20 network=192.168.20.0
add address=192.168.30.1/24 interface=VLAN30 network=192.168.30.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server lease
add address=192.168.2.45 client-id=1:0:11:32:52:85:56 disabled=yes mac-address=\
00:11:32:52:85:56 server=defconf
add address=192.168.2.11 mac-address=00:23:24:3C:69:EF server=defconf
add address=192.168.2.45 client-id=1:0:11:32:52:85:55 mac-address=00:11:32:52:85:55 server=defconf
add address=192.168.30.45 client-id=1:0:11:32:52:85:56 mac-address=00:11:32:52:85:56 server=dhcp30
/ip dhcp-server network
add address=192.168.2.0/24 dns-server=192.168.2.1 gateway=192.168.2.1 netmask=24
add address=192.168.5.0/24 dns-server=192.168.5.1 gateway=192.168.5.1 netmask=24
add address=192.168.10.0/24 dns-server=192.168.10.1 gateway=192.168.10.1 netmask=24
add address=192.168.20.0/24 dns-server=192.168.20.1 gateway=192.168.20.1 netmask=24
add address=192.168.30.0/24 dns-server=192.168.30.1 gateway=192.168.30.1 netmask=24
add address=192.168.88.0/24 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes cache-max-ttl=3d cache-size=1024KiB max-concurrent-queries=1000 \
max-concurrent-tcp-sessions=2000
/ip dns static
add address=192.168.88.1 name=router.lan
add address=192.168.2.1
add address=192.168.2.6
add address=192.168.2.45
add address=192.168.2.13
add address=192.168.2.11
add address=192.168.30.25
add address=192.168.2.3
add address=192.168.2.21
add address=192.168.2.1
/ip firewall address-list
add address=192.168.2.0/24 list=192.168.2.0/24
add address=192.168.5.0/24 list=192.168.5.0/24
add address=192.168.10.0/24 list=192.168.10.0/24
add address=192.168.20.0/24 list=192.168.20.0/24
add address=192.168.30.0/24 list=192.168.30.0/24
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid log-prefix=drop-invalid_
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface=ether1
add action=drop chain=input comment="Drop DNS requests from WAN UDP\
\n" connection-state="" dst-port=53 in-interface=ether1 protocol=udp
add action=drop chain=input comment="Drop DNS requests from WAN TCP" connection-state="" dst-port=53 in-interface=\
ether1 protocol=tcp
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=input comment="Allow DNS from LAN/VLAN" dst-port=53 in-interface-list="all lan/vlan" \
protocol=tcp
add action=accept chain=input comment="Allow DNS from LAN/VLAN" dst-port=53 in-interface-list="all lan/vlan" \
protocol=udp
add action=accept chain=input comment="Allow DNS requests from all (LAN/VLANs)subnets for UDP" disabled=yes dst-port=\
53 protocol=udp src-address=192.168.0.0/16
add action=accept chain=input comment="Allow DNS requrests from all (LAN/VLANs) subnets TCP" disabled=yes dst-port=53 \
protocol=tcp src-address=192.168.0.0/16
add action=drop chain=forward disabled=yes dst-address=192.168.2.0/24 src-address=!192.168.2.0/24
add action=drop chain=forward comment="Drop all inter vlan traffic\
\n" in-interface-list=vlan log-prefix=INTER-VLAN-DROP out-interface-list=vlan
add action=accept chain=forward
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN