Hello to all MikroTik lovers here!
I’d like your advice on this scenario. Based on my limited experience, I created two VLANs on my bridge — VLAN180 and VLAN10 (you can see the configuration below).
The goal is to keep these two VLANs separated, but I also want some devices in the VLAN10 range to be able to access the VLAN180 range.
However, I noticed that I can ping devices in VLAN180 from VLAN10, and vice versa. This means there’s probably an error in my VLAN configuration.
I tried to block both VLANs using firewall rules, but when I activate those rule:
add action=drop chain=forward comment="Block employees from guests" disabled=
yes dst-address=192.168.10.0/24 src-address=192.168.180.0/24
The internet disconnected from both network.
Any advice from you would be greatly appreciated.
Here is my current L009UiGS-RM Router configuration.
# model = L009UiGS
# serial number =
/interface bridge
add admin-mac=F4:1E:57:71:F7:53 auto-mac=no comment=defconf name=bridge \
vlan-filtering=yes
/interface wireguard
add listen-port=xxxx mtu=1420 name=wireguard1
add listen-port=xxxx mtu=1420 name=wireguard2
/interface vlan
add interface=bridge name=vlan-10-guests vlan-id=10
add interface=bridge name=vlan180-employees vlan-id=180
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add name=dhcp_pool1 ranges=192.168.10.40-192.168.10.254
add name=dhcp_pool2 ranges=
192.168.180.70-192.168.180.100,192.168.180.151-192.168.180.229
/ip dhcp-server
add address-pool=dhcp_pool1 interface=vlan-10-guests lease-time=1h name=dhcp1
add address-pool=dhcp_pool2 interface=vlan180-employees lease-time=1h name=
dhcp2
/port
set 0 name=serial0
/queue simple
add disabled=yes max-limit=40G/40G name=network1-night target=\
192.168.180.0/24
add disabled=yes max-limit=130G/130G name=network2-night target=\
192.168.10.0/24
add disabled=yes max-limit=170M/170M name=default target=192.168.180.0/24
add disabled=yes limit-at=30M/30M max-limit=30M/30M name=POS parent=default \
priority=1/1 target=192.168.180.216/32
add disabled=yes max-limit=130G/130G name=network1-day queue=default/default \
target=192.168.180.0/24
add disabled=yes max-limit=40G/40G name=network2-day queue=default/default \
target=192.168.10.0/24
add disabled=yes limit-at=140M/140M max-limit=170M/170M name=LAN parent=\
default queue=pcq-upload-default/pcq-download-default target=\
192.168.180.0/24
/system logging action
set 0 memory-lines=3000
set 1 disk-lines-per-file=3000
/disk settings
set auto-media-interface=bridge auto-media-sharing=yes auto-smb-sharing=yes
/interface bridge port
add bridge=bridge comment=defconf interface=ether2 pvid=180
add bridge=bridge comment=defconf interface=ether3 pvid=180
add bridge=bridge comment=defconf interface=ether4 pvid=180
add bridge=bridge comment=defconf interface=ether5 pvid=10
add bridge=bridge comment=defconf interface=ether6 pvid=10
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=sfp1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface bridge vlan
add bridge=bridge tagged=bridge untagged=ether5,ether6 vlan-ids=10
add bridge=bridge tagged=dynamic untagged=ether2,ether3,ether4 vlan-ids=180
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=vlan180-employees list=LAN
add interface=vlan-10-guests list=LAN
add interface=wireguard1 list=LAN
add interface=wireguard2 list=LAN
/interface wireguard peers
add allowed-address=10.10.10.2/32 interface=wireguard1 name=B \
public-key=
add allowed-address=10.10.11.2/32 interface=wireguard2 name="BA" \
public-key=/ip address
add address=192.168.180.1/24 interface=vlan180-employees network=\
192.168.180.0
add address=192.168.10.1/24 interface=vlan-10-guests network=192.168.10.0
add address=10.10.10.1/24 interface=wireguard1 network=10.10.10.0
add address=192.168.100.50/24 interface=ether1 network=192.168.100.0
add address=10.10.11.1/24 interface=wireguard2 network=10.10.11.0
/ip dhcp-server lease
add address=192.168.180.216 client-id=1:60:be:b4:2:fd:28 mac-address=\
60:BE:B4:02:FD:28 server=dhcp2
add address=192.168.10.48 client-id=1:ac:f4:2c:a7:db:e6 mac-address=\
AC:F4:2C:A7:DB:E6 server=dhcp1
add address=192.168.10.86 client-id=1:e2:26:cc:98:7c:51 mac-address=\
E2:26:CC:98:7C:51 server=dhcp1
/ip dhcp-server network
add address=192.168.10.0/24 dns-server=8.8.8.8 gateway=192.168.10.1
add address=192.168.180.0/24 dns-server=8.8.8.8 gateway=192.168.180.1
/ip dns
set allow-remote-requests=yes servers=192.168.100.1,8.8.8.8
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan type=A
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=accept chain=input comment="allow WireGuard" dst-port=xxx \
protocol=udp
add action=accept chain=input comment="allow WireGuard" dst-port=xxx \
protocol=udp
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=127.0.0.1
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=drop chain=forward comment="Block employees from guests" disabled=\
yes dst-address=192.168.10.0/24 src-address=192.168.180.0/24
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
add action=drop chain=forward disabled=yes dst-address=192.168.180.0/24 \
src-address=192.168.10.0/24
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=192.168.100.1 routing-table=\
main suppress-hw-offload=no
/ip service
set ftp disabled=yes
set telnet disabled=yes
set www disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/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=33434-33534 protocol=udp
add action=accept chain=input comment=\
"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
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=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=\
500,4500 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=
/system routerboard settings
set enter-setup-on=delete-key
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN