RouterOS supports tap mode and tun mode, working on layer 2 and layer 3 respectively.
I'm trying to build a remote access VPN, for employees to connect to the office network and access LAN resources. Specifically, I hope they can use the same IP range and be treated as if they were plugged in the office LAN.
For example, their laptops are usually plugged in VLAN 1 through a switch in the office, and use 192.168.1.0/24 addresses. Printer is at 192.168.1.221 and NAS is at 192.168.1.240. They can access the printer and NAS without routing.
Now they are working remotely, connecting through OpenVPN. I hope they are still allocated an IP address within 192.168.1.0/24 and still in VLAN 1, so that they are still able to access the printer and NAS the same way.
Feels like TAP mode is more suitable, but why do most guides on internet recommend TUN mode? What mode do you use in a production environment? And why?