OPNsense Forum

English Forums => General Discussion => Topic started by: somanet on May 27, 2026, 03:00:26 PM

Title: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: somanet on May 27, 2026, 03:00:26 PM
WAN CONFIGURATION WITH PUBLIC IP AND VLAN

How can we configure a new firewall with on the WAN Port. WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: somanet on May 27, 2026, 03:10:49 PM
Quote from: somanet on May 27, 2026, 03:00:26 PMWAN CONFIGURATION WITH PUBLIC IP AND VLAN

How can we configure a new OPNSENSE firewall on the WAN Port. WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: Patrick M. Hausen on May 27, 2026, 03:12:21 PM
https://docs.opnsense.org/manual/other-interfaces.html#vlan
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: somanet on May 27, 2026, 03:19:56 PM
Hallo Patrick,

what is the most appropriate use of router mode or bridge mode ?
From the ISP side ?
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: nero355 on May 27, 2026, 03:45:57 PM
Quote from: somanet on May 27, 2026, 03:19:56 PMwhat is the most appropriate use of router mode or bridge mode ?
From the ISP side ?
The Modem or ONT your ISP supplies should not have any kind of Routing enabled : It should only convert Glassfiber or COAX or xDSL to Ethernet.

If your ISP gives out Modem/Router/WiFi a.k.a. "All-in-One" devices then ask them to put it in Bridge Mode so you don't have NAT behind NAT issues in the future!
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: somanet on May 27, 2026, 04:08:18 PM
We are new to OPNsesne firewalls.
Kindly share the steps to setting up the WAN port to allow users internet traffic though the LAN port.
Currently the WAN is on DHCP mode.
The ISP provided us with the public IP and VLAN number.
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: Patrick M. Hausen on May 27, 2026, 04:15:02 PM
Which one is the ISP using?

- DHCP
- PPPoE
- static configuration

Is the modem/ONT set to bridge mode?
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: somanet on May 27, 2026, 04:17:15 PM
Which one is the ISP using?


- static configuration
public ip with a VLAN

Is the modem/ONT set to bridge mode?
Yes
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: somanet on May 27, 2026, 04:18:56 PM
Quote from: Patrick M. Hausen on May 27, 2026, 04:15:02 PMWhich one is the ISP using?


- static configuration
Public IP with A VLAN number
Is the modem/ONT set to bridge mode?
Yes its on bridge mode
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: Patrick M. Hausen on May 27, 2026, 04:21:37 PM
Then you need the netmask and the gateway in addition to the IP.
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: somanet on May 27, 2026, 04:25:05 PM
Quote from: Patrick M. Hausen on May 27, 2026, 04:21:37 PMThen you need the netmask and the gateway in addition to the IP.
[/Yes the netmask and gateway we have . My only challenge are the steps to configure the IP and VLAN on the interface.
am new on opnsense  ]
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: nero355 on May 27, 2026, 04:31:23 PM
Quote from: somanet on May 27, 2026, 04:08:18 PMWe are new to OPNsesne firewalls.
Kindly share the steps to setting up the WAN port to allow users internet traffic though the LAN port.
All you need to know is @ https://docs.opnsense.org/ ;)

And if you can't do it yourself I am sure you can pay someone to do it for you in the country/city/region that you are from :)
Title: Re: WAN CONFIGURATION WITH PUBLIC IP AND VLAN
Post by: Patrick M. Hausen on May 27, 2026, 04:33:49 PM
1. Interfaces > Devices > VLAN - create VLAN
2. Interfaces > Assignments - assign "WAN" to the VLAN you created
3. Interfaces > WAN - enter IP address and mask/prefix-length
4. System > Gateways - add gateway

Done. All of this is well documented.