OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: Sbbh on October 23, 2023, 12:53:37 AM

Title: WAN and LAN on single physical interface
Post by: Sbbh on October 23, 2023, 12:53:37 AM
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?

(https://i.imgur.com/Q5AXmlW.png)
Title: Re: WAN and LAN on single physical interface
Post by: bartjsmit on October 23, 2023, 07:45:31 AM
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...
Title: Re: WAN and LAN on single physical interface
Post by: Sbbh on October 23, 2023, 09:44:11 PM
Great, thanks. I'll give that a try.