Some VLAN questions regarding small home network

Depending on what TV you have, that trust may not be justified. is your tv spying on you?

What is the reason the TV needs to be on the "trusted" net? Why wouldn't it go into your .50 isolated, internet only network?

Also, I think you and I have a different definition of DMZ. what is dmz in networking?

Your MikroTik devices will be "sitting" on every network (vlan). It is your responsibility to protect the router itself. A good password is a start. But you can limit access to being able to control the MikroTik devices using multiple ROS features. The firewall input chain can limit what type of traffic is allowed to get to specific services (e.g. winbox using /ip service address, mac-winbox using /tool mac-server mac-winbox set allowed-interface-list=MGMT or whatever list you choose. By default after a reset with no-defaults=yes the allowed-interface-list=all, so you can do your initial configuration when the router has no ip address yet. If you use the MikroTik defconf it will set the local network (bridge) to be in the LAN list, and mac-winbox will be allowed from LAN. The config generator will give you a lot more flexibility and using the wizards will in general give you a secure config.

Segmenting your "inside" LAN networks has multiple purposes.

  1. It provides separate networks that can be isolated from each other. weak analogy, a hotel with separate rooms, each with it's own door and lock. There may be doors that allow rooms to connect without entering the hallway. The door keeps unwanted guests out, but the "management" still has master keys that can enter the rooms. People in the same room can talk to each other without the need of a phone, but conversations with someone outside the room needs a phone. room = (v)lan; phone = router. Also is it is much easier for someone in the same room to hear or interrupt conversations that they are not an intended part of.
  2. Different rooms may have different access rights to other rooms. Some may have a kitchen, some may not. But all member of the room have access to the same things, and access to all the other members.

It won't be any worse than it currently is with just one LAN. Many home networks with vlans merge trusted devices with devices than have access to login to and manage the router. Security and convenience are not easily mixed. So you need to find what level of security and what level of convenience fits your needs. At a minimum, make sure you have a good password and only login to your router using secure protocols. And keep your passwords in a password manager so you don't have to remember what they were 6 months from now. (I don't recommend using the password managers built into browsers, there are good free ones available, either cloud based on local. I use pwsafe myself, it isn't cloud based so it is not as convienent to share between multiple clients, but I have my own method of keeping things synchronized (the primary thing is I only update the encrypted password database from one place, then distribute updates).

I read the google search and the AI aided text behind the link, but i will try to write it what I think to see if this is matching with your thoughts: So for me DMZ is a network which is not included in my trusted internal LAN, it sits outside directly exposed to Internet (public), which means it is also vulnerable from outsiders, but even if something bad happens, it is contained inside the DMZ, thus my LAN is protected.

From my little house example this would all the friends, the friends of the friends, etc... who come over and "just" want internet. I can also imagine my xbox sitting there, it is 100% only gaming, no need to access to NAS, etc... nothing from inside.

The TV needs to sometimes access to the local NAS. But this is currently also under planning, because if the TV alone has internet, netflix works, and the Pi which runs Kodi is OK to reach the NAS (so Pi is on TRUSTED) the rest of the connection is via HDMI... So in other words, yes TV can be also in DMZ... (I need to sleep on this :smiley: )

After all of the thinking today maybe this would be a good start (i still need to check that configuration online tool what you sent) and just do 2 VLANs ( one TRUSTED, put everybody there, and one GUEST mostly wifi) So that I could see and test what I am able to do, see, ping etc... Later on down the road I can start to carve out the TRUSTED and segment it even more to get the final picture. With 2 simple VLANs basically none of the current services are affected because the whole LAN becomes a VLAN and next to it sits GUEST.

That I have, and different user, secure password and all services killed which i not use (basically I am 100% via winbox), furthermore i really really want to limit hex S access to eth4 and thus create a local managemnet interface. This will ultimately protect the router in my mind. I mean if the setup works, I won't need to login to hex S daily over wifi several times to tweak it :slight_smile: and here comes the conveniences vs security for sure :wink:

I think you're still misunderstanding the DMZ thing. "Exposed to the Internet" here means that incoming (externally initiated) connections are allowed into this segment.

A good illustration is when a company has an internal network, but also has a web server for its webpage (in the before times, when not everything was cloud.) This server needs to accept outside connections. But this also exposes it to possible breaches, and we don't want to allow an attacker to use this as stepping stone into the internal network, hence the isolation.

From your description it looks to me that you don't really have a need for a DMZ. What you really want is a trusted (for your own use), untrusted (for devices that you're not certain about from a privacy standpoint) and maybe a guest network. Possibly the latter two can be the same.

I would very much urge you to have a separate mgmt vlan. Almost all attacks on MT devices (and for other manufacturers' devices as well) use some bug or deficiency in a management interface. Especially so of you use SwOS devices, because these don't provide a secure management interface, only isolation to a vlan.

You never know when the next 0-day hits, so basically the most effective thing to do is to restrict access to the management interfaces.

Once the devices are separated into vlans, the next suggestion from everyone here will be to create a default deny firewall, where you specify what's allowed and everything else is dropped. In such a system e.g. allowing the trusted vlan access to the mgmt one is a single rule, and enabling/disabling it is a single click.

Creating the isolation is the part that can be considered a project, but then what exactly to allow and when to revoke this is a few clicks.

Like CVE-2026-84411 just fixed in 7.23.8

Traffic that can be routed will be routed. Not all traffic can be routed.

If are using the standard defconf firewall that is "preconfigured" with ether1 as the WAN and ether ports 2-5 as part of the the bridge, that firewall blocks new connections coming in from the WAN. In other words, it is like a phone with all incoming calls blocked. You can still call someone, and since you initiated the call, you are able to hear them when they answer the phone. In networking terms the filewall is a stateful firewall, and it tracks the connections. Traffic coming from the internet is allowed to pass through the router if there was a previously established connection. This is very simplified, and as such is not completely accurate. There is also NAT so that devices on the LAN can share the single ip address you get from your ISP.

You can now add a second LAN network (even one like is described in Once and for all COMPLETE Offbridge Port setup. This will dedicate one of the ethernet ports for a new L3 interface (and create a virtual "direct connection" from the CPU to the ethernet port). The new interface is not part of the bridge, so if you want more than a single device connected to the subnet, you will need to connect a external switch to the dedicated "L3" ethernet interface (and port).

An alternative method is to turn on vlan-filtering on the bridge (to make it vlan-aware), and create a new vlan interface for a vlan of your choosing (a common convention is to use the third octet of the subnet so the vlan id matches it). Then you configure the bridge ports you want to have access to the vlan interface to be members of the vlan. For a high level overview see the VLANs section of the config gen manual This is also covered in the the second post of the "off bridge setup" thread. It was inspired by @CGGXANNX's post in the same thread. I prefer the CGGXANNX method; it is a lot more flexible than a dedicated port. And recent (7.16+) ROS versions make this a relatively easy thing to do without locking oneself out. For example see @Amm0's post. Learning both ways is a good thing.

The config gen tool makes it relatively easy to do it either way.

If you add the new interface (if a port removed from the bridge, the name of the ether4 interface; if using vlans, the name of the vlan interface) as a member of the LAN interface list, then a device connected to that port will have access to the internet. You can also plug a "dumb" unmanaged switch into the port and connect multiple devices to this new LAN subnet.

Without changing the firewall, the defconf firewall on the router will not block traffic between the LAN members of the LAN interface list. But that is only because by default a router will route any packets it receives that it knows a route to. If you don't want this ip traffic to be routed, you need to block the traffic. Here's one way to change the default so all traffic between LANs is blocked by default anav's firewall advice. Once that is in place, any traffic between LANs or vlans will be blocked until you explicitly allow it. It changes the behavior from allowed unless explicitly blocked, to blocked unless explicitly allowed. And if you are segmenting your network, you probably want block by default.

If you use the config generator, it makes it easy to control what is allowed or blocked. See the manual here. It is well written, and covers a lot of networking concepts in a concise manner, in addition to explaining how to use the config gen tool.

ahhh subnetting. love it.

Thanks for all the great links and advice so far. I need to dig into a bit deeper. Honestly I am at the point where I am not afraid to do something wrong, i have a backup, worst case factory reset and use backup. I have to deal with some personal stuff first and as you mentioned I am playing on the live hex :slight_smile: (i do not want to do any vmware stuff now :smiley: ) so I need to make sure first family is not using the net when I am playing with it. BUT i will start to setup something soon and let you know how it went. In this thread I collected so many good links and advice, again many thanks for that!

I managed to setup my VLANs on the hex S and also on the capAX (hex s managing the cap via capsman) Basically i followed this guide https://www.youtube.com/watch?v=TYUX7dGWK_E with a little bit of a tweak, as I do not have a HAP and I already had LAN setup, which I wanted to preserve.

So far so good, I am happy. I tested the guest wifi and it worked, I landed on the right IP range. I do not have any special firewall rules at the moment, this comes next.

Only one thing is not working, which I am now really sitting here for a while trying to figure out what did I screw up. I cannot login to hex s anymore via IP :smiley:

cable / wifi does not matter. I got my 192.168.2.23 for example via wifi to my laptop, router sits on 192.168.2.1, I can ping, but winbox is not connecting via 192.168.2.1. ( just to add more to the fun, cap AX is sitting on 192.168.2.3. i can connect without any issue.

Do you (or anybody :slight_smile: ) might know where shall I start to debug or at least dig ? My current connection to hex S is limited to MAC and a strange something, guessing IPv6 :smiley: so I am not 100% locked myself out at the moment, but I have no clue why the IP login not working.

Neighbors lists both hex S and capAX with IPs, MACs and still guessing IPv6s.

Thank you for your help!

Difficult to say without config, we can't possibly know what you did.

But my first guess would be to check input firewall rules and more specifically the part with the new VLANs/subnets.

Thank you! I enabled logging on some rules which I suspected with the vlan setup this rule somehow blocking winbox out.

This was the log, i assume:

drop_all_not_from_LAN input: in:vlan-MGMT-10 out:(unknown 0), connection-state:new src-mac 00:E0:CC:68:0E:88, proto TCP (SYN), 192.168.2.21:58904->192.168.2.1:8291, len 64

Here is the rule which was the wrong one as of now:

add action=drop chain=input comment="from default rule -- drop all not coming from LAN" in-interface=!bridge_LAN log-prefix=drop_all_not_from_LAN

If I disable that rule, I can login. Here is my full config:

2026-10-15 14:14:34 by RouterOS 7.24.5

software id = 2DI3-B6XG



model = E60iUGS

/interface bridge
add comment="MAIN LAN BRIDGE" frame-types=admit-only-vlan-tagged name=
bridge_LAN vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name="ether1[WAN]"
set [ find default-name=ether2 ] name="ether2[LINKSYS]"
set [ find default-name=ether3 ] name="ether3[capAX FENN]"
set [ find default-name=ether4 ] name="ether4[MGMT-EMPTY]"
set [ find default-name=ether5 ] name="ether5[SMBLIGHT 
\nSLZ-06 PoE]"
/interface wireguard
add comment="first Test Setup" listen-port=40618 mtu=1420 name=wg-firstsetup
/interface vlan
add comment=DMZ-50 interface=bridge_LAN name=vlan-DMZ-50 vlan-id=50
add comment=MGMT-10 interface=bridge_LAN name=vlan-MGMT-10 vlan-id=10
add comment=WiFi-40 interface=bridge_LAN name=vlan-WiFi-40 vlan-id=40
/interface list
add comment=internal-side name=LAN
add comment=public-side name=WAN
/interface wifi channel
add band=2ghz-ax disabled=no frequency=2412,2437,2462 name=2GHz::AUTO width=
20mhz
add band=2ghz-ax disabled=no frequency=2412 name=2GHz::CH1 width=20mhz
add band=2ghz-ax disabled=no frequency=2437 name=2GHz::CH6 width=20mhz
add band=2ghz-ax disabled=no frequency=2462 name=2GHz::CH11 width=20mhz
add band=5ghz-ax disabled=no frequency=5180 name=5GHz::CH36 width=20mhz
add band=5ghz-ax disabled=no frequency=5200 name=5GHz::CH40 width=20mhz
add band=5ghz-ax disabled=no frequency=5220 name=5GHz::CH44 width=20mhz
add band=5ghz-ax disabled=no frequency=5240 name=5GHz::CH48 width=20mhz
add band=5ghz-ax disabled=no frequency=5745 name=5GHz::CH149 width=20mhz
add band=5ghz-ax disabled=no frequency=5765 name=5GHz::CH153 width=20mhz
add band=5ghz-ax disabled=no frequency=5785 name=5GHz::CH157 width=20mhz
add band=5ghz-ax disabled=no frequency=5805 name=5GHz::CH161 width=20mhz
add band=5ghz-ax disabled=no frequency=5825 name=5GHz::CH165 width=20mhz
add band=5ghz-ax disabled=no frequency=
5180,5200,5220,5240,5745,5765,5785,5805,5825 name=5GHz::NON-DFS width=
20mhz
add band=5ghz-ax disabled=no frequency=5180,5220,5240 name=5GHz::UNII-1 
width=20/40mhz
add band=5ghz-ax disabled=no frequency=5745,5765,5785,5805,5825 name=
5GHz::UNII-3 width=20mhz
add band=5ghz-ax disabled=no frequency=5540,5580,5620 name=
"5GHz::UNII-2C (chn 108,116,124)" width=20/40mhz
add band=5ghz-ax disabled=no frequency=5620,5660,5700 name=
"5GHz::UNII-2C (chn 124, 132, 140)" width=20/40mhz

/interface wifi datapath
add bridge=bridge_LAN comment="From WiFi to LAN MGMT 10" disabled=no name=
datapath_WiFi vlan-id=10
add bridge=bridge_LAN comment="From Guest VLAN40 to INTERNET NO LAN" 
disabled=no name=datapath-guest vlan-id=40
/interface wifi security
add authentication-types=wpa2-psk,wpa3-psk comment="default security config" 
disabled=no encryption=ccmp,gcmp name=security_WiFi
add authentication-types=wpa2-psk,wpa3-psk comment=
"ONLY TO GUEST WIFI VLAN40 jlsz 12345678" disabled=no encryption=
ccmp,gcmp name=security-guest
/interface wifi configuration
add channel=2GHz::CH6 channel.reselect-time=02:00:00..04:00:00 comment=
"WiFi to LAN config" country=Germany datapath=datapath_WiFi disabled=no 
installation=indoor mode=ap name=config-2.4GHz security=security_WiFi 
security.ft=yes .ft-over-ds=yes ssid=havel-Telekom2.4Ghz
add channel="5GHz::UNII-2C (chn 108,116,124)" channel.reselect-time=
02:00:00..04:00:00 comment="WiFi to LAN config" country=Germany datapath=
datapath_WiFi disabled=no installation=indoor mode=ap name=config-5GHz 
security=security_WiFi security.ft=yes .ft-over-ds=yes ssid=havel-Telekom
add channel="5GHz::UNII-2C (chn 124, 132, 140)" channel.reselect-time=
04:00:00..06:00:00 comment="00 WiFi to LAN config _ LENNTRE" country=
Germany datapath=datapath_WiFi disabled=no installation=indoor mode=ap 
name="config-5GHz lentre" security=security_WiFi security.ft=yes 
.ft-over-ds=yes ssid=havel-Telekom
add channel=2GHz::CH11 channel.reselect-time=04:00:00..06:00:00 comment=
"00 WiFi to LAN config LENTRE" country=Germany datapath=datapath_WiFi 
disabled=no installation=indoor mode=ap name="config-2.4GHz lentre" 
security=security_WiFi security.ft=yes .ft-over-ds=yes ssid=
havel-Telekom2.4Ghz
add comment="X_ ONLY GUEST" country=Germany datapath=datapath-guest disabled=
no installation=indoor mode=ap name=GuestWifi-VLAN40 security=
security-guest ssid=havel-Telekom-Guest
/interface wifi

operated by CAP D0:EA:11:3C:01:A4%vlan-MGMT-10, traffic processing on CAP

add comment=FENN configuration=config-2.4GHz configuration.mode=ap disabled=
no name=cap-wifi1-2,4G-FENN radio-mac=D0:EA:11:3C:01:A7
add comment=LENN configuration="config-5GHz lentre" configuration.mode=ap 
disabled=no name=cap-wifi2-5G-LENN radio-mac=D0:EA:11:41:35:15

operated by CAP D0:EA:11:3C:01:A4%vlan-MGMT-10, traffic processing on CAP

add comment=FENN configuration=config-5GHz configuration.mode=ap disabled=no 
name=cap-wifi3-5G-FENN radio-mac=D0:EA:11:3C:01:A6
add comment=LENN configuration="config-2.4GHz lentre" configuration.mode=ap 
disabled=no name=cap-wifi4-2,4G-LENN radio-mac=D0:EA:11:41:35:16

operated by CAP D0:EA:11:3C:01:A4%vlan-MGMT-10, traffic processing on CAP

add comment="X_ GUEST 5G WiFi Interface" configuration=GuestWifi-VLAN40 
configuration.mode=ap disabled=no mac-address=00:00:00:00:00:00 
master-interface=cap-wifi3-5G-FENN name=cap-wifi-GUEST-5G-interface
/ip pool
add name="MAIN LAN POOL" ranges=192.168.2.225-192.168.2.254
add name=DMZ-50 ranges=192.168.50.100-192.168.50.200
add name=WiFi-40 ranges=192.168.40.100-192.168.40.200
/ip dhcp-server
add address-pool="MAIN LAN POOL" interface=vlan-MGMT-10 lease-time=8h30m 
name=MGMT-10
add address-pool=DMZ-50 interface=vlan-DMZ-50 name=DMZ-50
add address-pool=WiFi-40 interface=vlan-WiFi-40 name=WiFi-40
/interface bridge port
add bridge=bridge_LAN interface="ether2[LINKSYS]" pvid=10
add bridge=bridge_LAN interface="ether3[capAX FENN]" pvid=10
add bridge=bridge_LAN interface="ether4[MGMT-EMPTY]" pvid=10
add bridge=bridge_LAN interface="ether5[SMBLIGHT 
\nSLZ-06 PoE]"
add bridge=bridge_LAN interface=sfp1
/ip neighbor discovery-settings
set discover-interface-list=all
/interface bridge vlan
add bridge=bridge_LAN comment=DMZ tagged="ether3[capAX FENN],bridge_LAN" 
vlan-ids=50
add bridge=bridge_LAN comment=WiFi tagged="ether3[capAX FENN],bridge_LAN" 
vlan-ids=40
add bridge=bridge_LAN comment=MGMT tagged="bridge_LAN,ether3[capAX FENN]" 
vlan-ids=10
/interface list member
add interface="ether4[MGMT-EMPTY]" list=LAN
add interface=bridge_LAN list=LAN
add interface="ether1[WAN]" list=WAN
/interface wifi capsman
set ca-certificate=auto certificate=auto enabled=yes interfaces=vlan-MGMT-10
/interface wifi provisioning
add action=create-enabled comment=wifi2,4ghz_FENN disabled=no 
master-configuration=config-2.4GHz slave-configurations=GuestWifi-VLAN40 
supported-bands=2ghz-ax
add action=create-enabled comment=wifi2,4ghz_LENN disabled=no 
master-configuration="config-2.4GHz lentre" radio-mac=D0:EA:11:41:35:16 
supported-bands=2ghz-ax
add action=create-enabled comment=wifi5ghz_FENN disabled=no 
master-configuration=config-5GHz slave-configurations=GuestWifi-VLAN40 
supported-bands=5ghz-ax
add action=create-enabled comment=wifi5ghz_LENN disabled=no 
master-configuration="config-5GHz lentre" radio-mac=D0:EA:11:41:35:15 
supported-bands=5ghz-ax
/interface wireguard peers
add allowed-address=192.168.10.20/32 client-address=192.168.10.20/32 
client-dns=1.1.1.1 client-endpoint=XXXXXXXXXXXXX comment=
"TEST WIREGUARD - iPhone" endpoint-port=40618 interface=
wg-firstsetup name=wg-user1 public-key=
"XXXXXXXXXX"
add allowed-address=192.168.10.30/32 client-address=192.168.10.30/32 
client-dns=1.1.1.1 client-endpoint=XXXXXXXXXXXX comment=
"TEST WIREGUARD - macbook M4" endpoint-port=40618 interface=wg-firstsetup 
name=wg-user2 public-key="XXXXXXXXXXXXX"
/ip address
add address=192.168.2.1/24 comment="LAN FO IP CIM" interface=vlan-MGMT-10 
network=192.168.2.0
add address=192.168.10.1/24 comment=wireguard-TEST interface=wg-firstsetup 
network=192.168.10.0
add address=192.168.50.1/24 comment=DMZ interface=vlan-DMZ-50 network=
192.168.50.0
add address=192.168.40.1/24 comment=WiFi interface=vlan-WiFi-40 network=
192.168.40.0
add address=192.168.99.1/24 interface="ether4[MGMT-EMPTY]" network=
192.168.99.0
/ip arp
add address=192.168.2.3 interface=bridge_LAN mac-address=D0:EA:11:3C:01:A4
add address=192.168.2.20 interface=bridge_LAN mac-address=AC:07:75:3F:E5:C3
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add interface="ether1[WAN]" name="TELEKOM ROUTER"

/ip dhcp-server lease
add address=192.168.2.21 client-id=1:0:e0:cc:68:e:88 comment=
"Macbook Pro M4 LANon" mac-address=00:E0:CC:68:0E:88 server=MGMT-10
add address=192.168.2.3 comment="cap AX FENN" mac-address=D0:EA:11:3C:01:A4
add address=192.168.2.20 comment="Macbook Pro M4 WiFin" mac-address=
AC:07:75:3F:E5:C3 server=MGMT-10
add address=192.168.2.105 comment="Denon AVR X1700H" mac-address=
00:06:78:B5:F0:A2
add address=192.168.2.117 comment="QNAP NAS" mac-address=24:5E:BE:1F:BC:39
add address=192.168.2.110 comment="XBOX Series X" mac-address=
E8:A7:2F:1C:30:58
add address=192.168.2.49 comment="Toniebox Dexter" mac-address=
24:7D:4D:6D:EC:41
add address=192.168.2.48 comment="Toniebox Quinn" mac-address=
40:2E:71:61:B1:DD
add address=192.168.2.27 comment="Apple iPhone Robi" mac-address=
B8:01:1F:DB:87:DD server=MGMT-10
add address=192.168.2.28 comment="Apple iPhone Agi" mac-address=
7C:EC:B1:21:F6:46 server=MGMT-10

/ip dhcp-server network
add address=192.168.2.0/24 comment="MAIN LAN IP" gateway=192.168.2.1
add address=192.168.40.0/24 dns-none=yes gateway=192.168.40.1
add address=192.168.50.0/24 dns-none=yes gateway=192.168.50.1
/ip firewall filter
add action=accept chain=input comment="WIREGUARD TEST" dst-port=40618 
log-prefix=WGiphone- protocol=udp
add action=accept chain=input comment="Allow Winbox via WireGuard" dst-port=
8291 in-interface=wg-firstsetup protocol=tcp
add action=accept chain=input comment=
"from default rule -- accept established, related, untracked" 
connection-state=established,related,untracked
add action=drop chain=input comment="from default rule -- drop invalid" 
connection-state=invalid
add action=accept chain=input comment="from default rule -- accept ICMP" 
protocol=icmp
add action=accept chain=input comment=
"from default rule -- accept to local loopback (for CAPsMAN)" 
dst-address=127.0.0.1
add action=accept chain=input comment="mikrotik internet remote access -- CSAK
_AKKOR LEGYEN ENABLED HA NAGYON KELL!!!!" disabled=yes dst-port=8291 
in-interface="ether1[WAN]" log=yes log-prefix=PORTFORWARD protocol=tcp
add action=drop chain=input comment=
"from default rule -- drop all not coming from LAN" in-interface=
!bridge_LAN log-prefix=drop_all_not_from_LAN
add action=accept chain=forward comment=
"from default rule -- accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment=
"from default rule -- accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment=
"from default rule -- fasttrack" connection-state=established,related
add action=accept chain=forward comment=
"from default rule -- accept established, related, untracked" 
connection-state=established,related,untracked
add action=drop chain=forward comment="from default rule -- drop invalid" 
connection-state=invalid
add action=drop chain=forward comment=
"from default rule -- drop all from WAN not DSTNATed" 
connection-nat-state=!dstnat connection-state=new in-interface=
"ether1[WAN]"
/ip firewall nat
add action=masquerade chain=srcnat comment="LAN to INTERNET" out-interface=
"ether1[WAN]"
add action=dst-nat chain=dstnat comment="XBOX 3074 TCP" dst-address=
192.168.1.10 dst-port=3074 log=yes log-prefix=NAT-TCP3074 protocol=tcp 
to-addresses=192.168.2.110 to-ports=3074
add action=dst-nat chain=dstnat comment="XBOX 3074 UDP" dst-port=3074 
in-interface="ether1[WAN]" log=yes log-prefix=NAT-UDP3074 protocol=udp 
to-addresses=192.168.2.110 to-ports=3074
add action=dst-nat chain=dstnat comment="XBOX 88 UDP" dst-port=88 
in-interface="ether1[WAN]" protocol=udp to-addresses=192.168.2.110 
to-ports=88
add action=dst-nat chain=dstnat comment="XBOX 53 UDP" dst-port=53 
in-interface="ether1[WAN]" protocol=udp to-addresses=192.168.2.110 
to-ports=53
add action=dst-nat chain=dstnat comment="XBOX 500 UDP" dst-port=500 
in-interface="ether1[WAN]" protocol=udp to-addresses=192.168.2.110 
to-ports=500
add action=dst-nat chain=dstnat comment="XBOX 3544 UDP" dst-port=3544 
in-interface="ether1[WAN]" protocol=udp to-addresses=192.168.2.110 
to-ports=3544
add action=dst-nat chain=dstnat comment="XBOX 4500 UDP" dst-port=4500 
in-interface="ether1[WAN]" protocol=udp to-addresses=192.168.2.110 
to-ports=4500
add action=dst-nat chain=dstnat comment="XBOX 9002 UDP" dst-port=9002 
in-interface="ether1[WAN]" protocol=udp to-addresses=192.168.2.110 
to-ports=9002
add action=dst-nat chain=dstnat comment="XBOX 53 TCP" dst-port=53 
in-interface="ether1[WAN]" protocol=tcp to-addresses=192.168.2.110 
to-ports=53
add action=dst-nat chain=dstnat comment="XBOX 80 TCP" dst-port=80 
in-interface="ether1[WAN]" protocol=tcp to-addresses=192.168.2.110 
to-ports=80
/ip service
set ftp disabled=yes
set ssh disabled=yes
set telnet disabled=yes
set www disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface="ether1[WAN]" type=external
add interface=bridge_LAN type=internal
/system clock
set time-zone-name=Europe/Berlin
/system identity
set name="hEX S FENN"
/tool bandwidth-server
set enabled=no

I need to think a bit what do I need to change on the firewall rule, but if you see anything which is eyecatching please let me know :slight_smile: Thanks!

I would add it to LAN interface list as first step.
And then you can still see if you want to refine that further down or not.
But I would think everything being part of vlan-MGMT, could be trusted hence is allowed to access the router.
Also, I would suggest to change that firewall rule to use the proper interface list LAN.

And then you can enable that firewall rule again.

Why do you have MGMT-EMPTY as member of LAN ? Or is that on purpose ?

There was a lot of discussion with @Buckeye and @lurker888 on the theoretical side of my setup. So currently I am doing all my changes and setup live in the real environment while handling work / kids and wife in the same time :smiley: If i screw up something, soft reset and restore from backup.

This topic started like 10 days ago and today I felt i have the free time and knowledge to start.

Where do you see this ? I do not remember doing a MGMT-EMPTY...

Right now yes, in the past all my devices were MAC based static IP given and my local bridge was under 192.168.2.xxx / 24

What I did not based on the tutorial. I swapped my 168.2.xxx to VLAN=10 MGMT. This where currently everything is sitting. Mikrotik stuff, NAS, also not trusted stuff (so my aim was to tune the whole 192.168.2.xxx to VLAN 10 somehow). And with the tutorial I was also succesful created 2 more VLANS (DMZ 50 and WIFI GUEST 40 with their IP 168.40.xxx and 168.50.xxx) My main wifi however remained on MGMT.

In the future I would like to go and block, allow, play with firewall rules, but currently I am firefighting :smiley:

Ok, I did this and now it works again. Thank you! Quick question here: LAN interface list contains now Bridge + EHT4 MGM PORT + VLAN10MGMT. In the mean time ETH4 PORT is part of the Bridge... so I can remove ETH 4 PORT from the LAN interface list and nothing will happen, correct?

Hi @holvoetn ,

I found MGMT-EMPTY. That is just a name for me it says that should be the dedicated MGMT port and currently it is empty = nothing physically connected.

However I ran out of ports right now so it is not true anymore :DDDD

Basically MGMT-EMPTY = eth4 physical port :)))) and that’s where my question goes in my comment above. I think I can remove from the list as it is part of the bridge.

ether4 (regardless of the name you assign it) is currently a member of the bridge. This means you shouldn't add it to an interface list, because it is no longer an "interface", it is now a bridge-port.

So yes, you should remove the ether4 from the interface list. The only time an ether device should be in the interface list is when it is not part of the bridge, and in that case the interface will be directly connected to the specific port, and it will have it's own unique mac address and ip address.

The bridge is set to be vlan-aware because you specified vlan-filtering=yes . Where you have a vlan-aware bridge you will need to add the bridge (bridge_LAN in your case) and any vlan-interfaces (with bridge as the parent interface, e.g. vlan-MGMT-10) to your interface lists. E.g. in your case the "bridge_LAN" is the "interface" to the "routing engine" that is implemented in software in the router's CPU for traffic coming from the "router facing port of the virtual switch" part of the bridge, and routing engine's side of the bridge interface will receive any untagged traffic coming across the "internal hybrid trunk link between the CPU and the "virtual switch". The vlan interfaces will receive the tagged traffic (after the vlan tag has been removed by the vlan driver). One thing to note: You have blocked all untagged traffic from being received by the bridge_LAN (untagged bridge) interface. This shouldn't be a problem, as you don't have any ip address associated with bridge_LAN, so in your case, adding it to the interface list will only help mac-winbox) But if you ever turn off vlan-filtering all your ports will be connected to the bridge, and it does not have any ip address (although you should still be able to access with mac-winbox). You have a section /ip arp that I am not sure what the purpose is, but with only tagged traffic allowed, I don't see how it will "work" (unless the point is to blackhole traffic).

For more info about what the bridge device does in ROS, see RouterOS bridge mysteries explained for a discussion of the separate "personalities" of the MikrtoTik bridge. There is more (meandering) discussion in Vlan-aware bridge mysteries and a tread it spawned RouterOS bridge mysteries discussed - incl. diagrams.

The important point is that once an ethernet port is included in the bridge, it should no longer be treated as a distinct entity, it is now part of the "bridge" (it has been assimilated, and is now a part of a bigger thing). This is one disadvantage of MikroTik's ROS, it will allow you to apply an ip address to a ethernet port that is part of a bridge, and it may even appear to work, but it is a misconfiguration. Newer versions of ROS are getting more strick about what it will allow you to misconfigure without any warning.

I removed it, and for the future, i will check what would fit to me to separate management + others (currently everything is under MGMT-10 )

So this is left behind from another config or test. I wanted to check how I can limit physical connection to be allowed. So the aim was here: kids friends come over and if they are smart they plug a UTP cable + laptop in the wall plug what is in the kid room (which i am 98% doubt as everybody is doing wifi now and that will land ASAP in the separate VLAN) and in this case the router gives the device an IP and i have no clue what else... I read it somewhere if I play with the ARP on the bridge then i can shut off new cable connected devices. I tried it, but it did not really went well, then had no time to continue and simple the 2 slots left behind in the ARP table. Beside those statics, all my ARP is dynamic and I did not do that, the router did :slight_smile:

Give me a little time to read those, because this might be answering a question which I will post here.

OK so far I am kind of happy, and the family as well, but before I start to implement firewall rules ( i have limited end devices where I can ping + my setup is broken as the house is under construction :smiley: ) I would like to understand something.

As I mentioned i followed this tutorial: https://www.youtube.com/watch?v=TYUX7dGWK_E I also have VLAN on my capAX (that config is not included in this forum, i can if needed, let me know please!) What wonders me is the following:

on my hex S ether2 is a unmanaged linksys switch and behind sits currently most of the stuff (future this will be moved behind the CSS switchOS switch so i assume vlans will be better then. However... the bridge_LAN on the hexS is enabled and "admit only VLAN tagged", the bridge port eth2 is PVID=10 admit all (same as eth3capAX, or eth4MGMT) and in the bridge VLANs i see the following:

DMZ 50 tagged on bridge_LAN + eth3capAX / no untagged
WIFI40 tagged on bridge_LAN+ eth3capAX / no untagged
MGMT10 tagged on bridge_LAN+eth3capAX / no untagged
added by pvid Dynamically 10 bridge_LAN no tagged / untagged = eth2LINKSYS + eth4 MGMT

So i thought that eth2 will get tagged to MGMT10... I am wondering if there is a chance to check which end device sits currently under which VLAN? If I go to DHCP / Leases / there is a Server column, and non of the eth2LINKSYS devices are MGMT-10, but all of the wifi devices are :slight_smile: So this is the check?

In other words: this setup: bridge port eth2 is PVID=10 admit all is basically looks like this? : package leaving eth2 got a VLAN ID 10, arrives to linksys, moves further to the end device, (so far no way for me to check if end device recieves it as VLAN10 or linksys already did some magic (we discussed this above, I am aware of the magic and in the future, this will be fixed) end device replies back probably no VLAN ID 10 added, arrives to linksys passes through arrives eth2 on hexS but there is no VLAN ID 10, so it is just sitting there without MGMT-10... Am I seeing this correctly?

If I am correct, what do I need to tweak, that packets coming back to eth2 will be tagged to MGMT-10?

That is something which I need to set in the Bridge / VLANs / open MGMT-10 and right now it says: tagged on bridge_LAN+eth3capAX / no untagged, I just add eth2 to this and I am done, and then all traffic is under MGMT-10 correct?

Thank you for your answer!

in the /interface/bridge/vlan entry for vlan10 ether3 and the bridge link (the hybrid link between the switch and the routng engine/CPU) will be tagged for vlan10. ether2 isn't specified, so ROS will add a dynamic entry for it as untagged, because that is the PVID specified in /interface/bridge/port for ether2.

You can use the following CLI command so see what is in the vlan table.

/interface/bridge/vlan print

What I would expect to happen.

A vlan unaware (like a laptop) device plugged into the linksys unmanaged switch that is conntect to ether2 should get an ip address from the "MAIN LAN POOL" (or if there is a "reserved" ip address associated with the MAC address, that ip address).

Are you saying that if you plug in your XBOX it does not get an address? And it does not show up in the lease table?

To view the MAC address table (with vlan info when vlan-filtering is enabled) you can use the command:

/interface/bridge/host print

Here's an example from my lab RB760 (which was in default config) and then I turned vlan-filtering on.

[demo@MikroTik] > /interface/bridge export                                                                                                                                                     
# 2026-10-16 15:08:59 by RouterOS 7.23.8
# software id = ****-****
#
# model = RB760iGS
# serial number = ************
/interface bridge
add admin-mac=DC:2B:AD:4D:EC:F2 auto-mac=no comment=defconf name=bridge
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=sfp1
[demo@MikroTik] > /interface/bridge/host print                                                                                                                                                 
Flags: D - DYNAMIC; L - LOCAL; E - EXTERNAL
Columns: MAC-ADDRESS, ON-INTERFACE, BRIDGE
#     MAC-ADDRESS        ON-INTERFACE  BRIDGE
0 DL  DC:2B:AD:4D:EC:F2  bridge        bridge
1 DL  DC:2B:AD:4D:EC:F4  ether4        bridge
2 D E F8:DE:AD:BE:EF:46  ether4        bridge
[demo@MikroTik] > # this will reset switch and your connection will drop, but it should come back
[demo@MikroTik] > /interface bridge set [find name=bridge] vlan-filtering=yes 

After winbox reconnects

[demo@MikroTik] > /interface/bridge export                                                                                                                   
# 2026-10-16 15:11:58 by RouterOS 7.23.8
# software id = ****-****
#
# model = RB760iGS
# serial number = ************
/interface bridge
add admin-mac=DC:2B:AD:4D:EC:F2 auto-mac=no comment=defconf name=bridge vlan-filtering=yes
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=sfp1
[demo@MikroTik] > /interface/bridge/host print                                                                                                               
Flags: D - DYNAMIC; L - LOCAL; E - EXTERNAL
Columns: MAC-ADDRESS, VID, ON-INTERFACE, BRIDGE
#     MAC-ADDRESS        VID  ON-INTERFACE  BRIDGE
0 DL  DC:2B:AD:4D:EC:F2       bridge        bridge
1 DL  DC:2B:AD:4D:EC:F4       ether4        bridge
2 DL  DC:2B:AD:4D:EC:F2    1  bridge        bridge
3 DL  DC:2B:AD:4D:EC:F4    1  ether4        bridge
4 D E F8:DE:AD:BE:EF:46    1  ether4        bridge
[demo@MikroTik] > /interface/bridge/vlan print
Flags: D - DYNAMIC
Columns: BRIDGE, VLAN-IDS, CURRENT-UNTAGGED
#   BRIDGE  VLAN-IDS  CURRENT-UNTAGGED
;;; added by pvid
0 D bridge         1  bridge          
                      ether4          
[demo@MikroTik] >

Note that if you don't specify a pvid, the default pvid=1 is applied.

You can see this if you use /interface/bridge export verbose.

Because of ingress filtering, any tagged frames received by ether2 will be dropped because ether2 is only a member of vlan10 (due to the implicit inclusion because of pvid=10 on /interface/bridge/port for ether2). no /interface/bridge/vlan entries specify ether2, so only the dynamic vlan10 untagged entry is in effect for ether2. So if a frame tagged with vlan 40 is received on ether2, it will be dropped before it is allowed onto the switch.

A bit more detailed "journey" of a packet being sent by the router to a device in vlan 10 that is connected to the linksys router (and the end device is not vlan-aware, it it just a standard ethernet device like an Xbox). For this discussion we will assume the Xbox is plugged into port 4 of the linksys unmanaged switch and has a mac address of E8:A7:2F:1C:30:58 just referred to as Xbox and and ip address of 192.168.2.110. Also assume port 1 of the linksys is connected to ether2 on the E60UiGS.

From E60UiSG router cli prompt you issue a ping count=1 192.168.2.110

  1. Router sends packet to vlan-MGMT-10 interface.
  2. Vlan driver inserts vlan10 tag.
  3. driver/ethernet controller adds L2 header, and computes FCS (crc-32). Dst-Mac is MAC address of Xbox, Src-Mac is MAC address of bridge "MAIN LAN BRIDGE".
  4. frame is receive by internal switch in E60UiSG. Since frame is tagged and vlan10 is configured in switch, the frame is accepted and classified as being on vlan10.
  5. lookup is done by switch to determine what port Xbox:vlan10 is on. It sees that it is assocated with ether2.
  6. ether2 is a member of vlan 10, so it is allowed to be transmitted out of ether2.
  7. because the pvid of ether2 was specified as 10, the vlan table has a dynamic entry instructing it to send vlan 10 frames out of ether2 untagged, so the frame is transmitted out of ether2 as a standard ethernet frame without any vlan tag attached. But this traffic is still "in vlan 10" from the switches point of view.
  8. The frame arrives at the linksys switch port 1 with dst-mac Xbox and src-mac (E60UiGS bridge).
  9. The linksys looks in its mac address table for the Xbox mac and finds it on port 4.
  10. The frame is forwarded out port 4 of the linksys switch.
  11. The frame is received by the Xbox.
  12. The Xbox sees that the dst-mac is it own and accepts the frame. The Xbox ip stack sees it is a ping request (and assuming an Xbox will respond to pings) it will send an echo response back to the E60UiGS with a L2 header that has Dst-Mac E60UiGS bridge Src-Mac Xbox.
  13. The frame is transmitted out of the Xbox ethernet port toward to linksys switch. (the default route should be the ip address of E60UiGS vlan 10 interface that provided the ip address to the Xbox).
  14. The frame is received on port 4 of the linksys switch
  15. The linksys looks up E60UiGS mac in its mac address table and finds port 1.
  16. The frame is sent (unchanged) out port 1 (toward the E60UiGS)
  17. The frame is received by the E60UiGS ether2 port.
  18. Because ether2 has pvid=10, the frame is classified as vlan 10.
  19. The switch in the E60UiGS looks up the mac address associated with the bridge, and sees that is via the "internal hybrid" link to the E60UiGS CPU/routing engine.
  20. The switch sees that the "router facing port of the virtual switch" is a member of vlan 10, and the vlan 10 traffic should be tagged on that link.
  21. The switch inserts a vlan tag for vlan10, and recomputes the FCS frame check sequense (CRC-32) used for error detection.
  22. The switch forwards the frame to the E60UiGS CPU.
  23. The frame is received, and because it has a tag, it is not filtered out by "frame-types=admit-only-vlan-tagged".
  24. The vlan-aware bridge driver recognized the tag (for vlan10) and sends to the vlan-MGMT-10 interface.
  25. The vlan interface driver removes the tag to make it a "standard" representation for the IP stack and then hands it off to the ip stack on the E60UiGS.
  26. The ip stack receives it and processes it.
  27. The ping response is printed.

There is a lot of complexity hidden from the end users.

This may not be 100% correct, but in general it should be pretty close.

This is awesome many thanks for that command line hint:

I ran it and seems everything is sitting now in MGMT10. Originally I used the DHCP Lease table Server column, (because some IPs got MGMT10 some not) but soon i realised, that this is a user input, so can flexible change that, it is more like a note :slight_smile: or at least it does not do anything really if I change it, remove it, etc.. :slight_smile:

Now I have an additional question to that CMD line. Is there a way to include IP addresses / or DHCP name there with the matched MAC addresses? By default that command is running on layer 2, i have all IPs in the ARP table or in the DHCP Lease table (IP / MAC pairs i mean) and I would like to know if there is a way to show this directly?

Currently I am saving both DHCP Lease table and your cmd line to Excel and then vlookup them. As of right now this gives me the feedback that all devices are really sitting under the MGMT10 VLAN, even if they leave eth2LINKSYS port to an unmanaged switch.

NAME VLAN ID BRIDGE
Denon-AVR-X1700H 10 ether3[capAX
QNAPNAS 10 ether4[MGMT-EMPTY]
LibreELEC 10 ether2[LINKSYS]
siemens-dishwasher-015090394089004590 10 ether3[capAX
SLZB-06 10 ether2[LINKSYS]
cAP 10 ether3[capAX
LibreELECpi5 10 ether2[LINKSYS]
homeassistant 10 ether2[LINKSYS]
Samsung 10 ether3[capAX

I do not mind the Excel vlookup, i tried some other mikrotik forums where somebody posted about a runable script on the router, but that did not worked for me, so I left behind as of now and went with Excel :slight_smile:

Just to recap and that I got it right. This command:

will show me all MACs with what kind of VLAN they "sit"? Correct?

I don't know of any builtin ROS CLI command that does it in one line. It probably could be done with a script, but ROS scripting is not my area of expertise.

Your excel solution is a good work around, and unless you are moving device between ports frequently it should be reasonably static.

As you said the infomation is coming from several different places, the MAC address table (what .../host print displays), the ARP cache that has a mapping between ip addresses and mac addresses, and the dhcp lease table that also has what the last ip "offered" to a mac address was. Possibly a local DNS for name to ip mapping (but these don't necessarily corrrespond to what you will see in lease table).

As long as vlan-filtering=yes is active, then it will show the vlan and the port the mac address is on. Note that it is possible for a mac address to be on more than one port as long as the vlan is different. That's because the vlan aware bridge in MikroTik uses IVL instead of SVL. Google ivl vs svl

I already found some scripts where this should be possible, but honestly I am too young to start scripting in my router :smiley: as of now I am happy with the Excel. As said it takes 2 mins or so after the 2 CLI ran, and right now as you mentioned it is static. I am not going to shuffle ports around at all, I need to finish the renovation at the basement then I can finally install my mikrotik switch which is then capable to handle vlans. This linksys unmanaged will remain on 1 vlan as discussed in this forum and it will work just fine.

I will look up the google link what you provided and reading through forums and topics.

After this journey I still find my knowledge a bit weak especially when it comes untagged and tagged, but I believe it is just because I have not used it so often.

Mikrotik switch is under switchOS so it will be another thing to learn, but at least there I can 100% foster what I have learned so far in RouterOS.