Hello, Mikrotik newbie here. After watching The Network Berg’s tutorials on setting up VLANS, I decided to attempt setting up bridge VLAN filtering on my RB5009. All is mostly good, VLAN filtering is indeed working, DCHP is functional for those interfaces and my management VLAN is working as intended. The issue I’m currently having is, my management VLAN is the *only* VLAN that has internet connectivity. I would like to allow my Trusted, Untrusted and VOIP VLANs to access the internet as well.
I haven’t changed firewall settings or nat past their defconf. I did manually add DNS servers in DHCP network settings for the Trusted VLAN to test, but I’m unsure if that’s the issue, since I can’t ping IPs or domain names.
# RouterOS 7.20.2
#
# model = RB5009UPr+S+
#
/interface bridge
add admin-mac= auto-mac=no comment=defconf name=bridge pvid=\
10 vlan-filtering=yes
/interface vlan
add interface=bridge name=Camera vlan-id=40
add interface=bridge name=Management vlan-id=10
add interface=bridge name=Trusted vlan-id=20
add interface=bridge name=Untrusted vlan-id=50
add interface=bridge name=VOIP vlan-id=30
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
add name=MGMT
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=Management ranges=192.168.10.2-192.168.10.5
add name=Trusted ranges=192.168.20.2-192.168.20.52
add name=VOIP ranges=192.168.30.2-192.168.30.5
add name=Camera ranges=192.168.40.2-192.168.40.5
add name=Untrusted ranges=192.168.50.2-192.168.50.52
/ip dhcp-server
add address-pool=Management interface=Management name=Management
add address-lists="" address-pool=Trusted interface=Trusted name=Trusted
add address-pool=VOIP interface=VOIP name=VOIP
add address-pool=Camera interface=Camera name=Camera
add address-pool=Untrusted interface=Untrusted name=Untrusted
/disk settings
set auto-media-interface=bridge auto-media-sharing=yes auto-smb-sharing=yes
/interface bridge port
add bridge=bridge comment=defconf frame-types=\
admit-only-untagged-and-priority-tagged interface=ether2 pvid=10
add bridge=bridge comment=defconf interface=ether4 pvid=30
add bridge=bridge comment=defconf interface=ether5 pvid=40
add bridge=bridge comment=defconf interface=ether6 pvid=20
add bridge=bridge comment=defconf frame-types=\
admit-only-untagged-and-priority-tagged interface=ether7 pvid=20
add bridge=bridge comment=defconf frame-types=admit-only-vlan-tagged \
interface=ether8 pvid=10
add bridge=bridge comment=defconf interface=sfp-sfpplus1
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether3 pvid=10
/ip neighbor discovery-settings
set discover-interface-list=MGMT
/interface bridge vlan
add bridge=bridge comment=Management tagged=ether8,ether3,bridge untagged=\
ether2 vlan-ids=10
add bridge=bridge comment=Trusted tagged=ether8,bridge,ether3 untagged=\
ether6,ether7 vlan-ids=20
add bridge=bridge comment=VOIP tagged=bridge,ether8 untagged=ether4 vlan-ids=\
30
add bridge=bridge comment=Camera tagged=ether8,bridge untagged=ether5 \
vlan-ids=40
add bridge=bridge comment=Untrusted tagged=bridge,ether3 vlan-ids=50
/interface list member
add interface=ether1 list=WAN
add interface=bridge list=LAN
add interface=Management list=MGMT
add interface=Management list=LAN
/ip address
add address=192.168.10.1/24 comment=Management interface=Management network=\
192.168.10.0
add address=192.168.20.1/24 comment=Trusted interface=Trusted network=\
192.168.20.0
add address=192.168.40.1/24 comment=Camera interface=Camera network=\
192.168.40.0
add address=192.168.30.1/24 comment=VOIP interface=VOIP network=192.168.30.0
add address=192.168.50.1/24 comment=Untrusted interface=Untrusted network=\
192.168.50.0
/ip dhcp-client
add comment=defconf interface=ether1 use-peer-dns=no
/ip dhcp-server network
add address=192.168.10.0/24 dns-server=9.9.9.9,1.1.1.2 gateway=192.168.10.1
add address=192.168.20.0/24 dns-server=9.9.9.9,1.1.1.2 gateway=192.168.10.1
/ip dns
set allow-remote-requests=yes servers=9.9.9.9,1.1.1.2
/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
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
in-interface-list=LAN ipsec-policy=out,none out-interface-list=WAN
/ip service
set ftp disabled=yes
set telnet disabled=yes
set www disabled=yes
set www-ssl disabled=no
/ipv6 firewall address-list
add address= comment="defconf: unspecified address" list=bad_ipv6
add address= comment="defconf: lo" list=bad_ipv6
add address= comment="defconf: site-local" list=bad_ipv6
add address= comment="defconf: ipv4-mapped" list=bad_ipv6
add address= comment="defconf: ipv4 compat" list=bad_ipv6
add address= comment="defconf: discard only " list=bad_ipv6
add address= comment="defconf: documentation" list=bad_ipv6
add address= comment="defconf: ORCHID" list=bad_ipv6
add address= comment="defconf: 6bone" list=bad_ipv6
/ipv6 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
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" \
dst-port= protocol=udp
add action=accept chain=input comment=\
"defconf: accept DHCPv6-Client prefix delegation." dst-port= protocol=\
udp src-address=
add action=accept chain=input comment="defconf: accept IKE" dst-port= \
protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=input comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
add action=fasttrack-connection chain=forward comment="defconf: fasttrack6" \
connection-state=established,related
add action=accept chain=forward comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=\
"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=\ protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=forward comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
/system clock
set time-zone-name=America
/tool mac-server
set allowed-interface-list=MGMT
/tool mac-server mac-winbox
set allowed-interface-list=MGMT
I’m sure there’s something silly I’m overlooking, but would appreciate any feedback!