WAN and LAN on single physical interface

Started by Sbbh, October 23, 2023, 12:53:37 AM

Previous topic - Next topic
Hi all,

I currently have OPNsense working as seen in the image below on the left.

Due to the layout of my apartment, I'm going to have to move my servers and OPNsense box to another room from where my modem is. Therefore, there is only one physical link between the OPNsense box and the modem/AP/devices.

In the diagram on the right, is it possible to have the WAN connection going straight from the modem to the OPNsense box, and have the Wifi AP and other devices on the first switch use OPNsense as the router with VLANs?


Yes, create a VLAN 5 for the WAN, create an access (untagged) VLAN 5 port for the modem on the switch and a trunk (multiple tags) for OPNsens with VLAN 1, 2 and 5.

Similarly, on the innermost switch, create a trunk for VLAN 1 and 2 to OPNsense.

In the GUI, add the same VLAN interfaces under the two physical interfaces.

Bart...