Interface configuration — OPNsense documentation (2024)

  • »
  • Interfaces »
  • Interface configuration

All traffic in OPNsense travels via interfaces. By default, WAN and LAN are assigned, but many more are possible, likeGUESTNET (captive portal) and PFSYNC (high availability).

Note

For legacy compatibility WAN interfaces set to type DHCP or interfaces with an Upstream Gatewaysend reply packets to the corresponding gateway directly, also when the sender is on the same interface.This will break connectivity in some rare scenarios and can be disabled viaFirewall->Settings->Advanced->Disable reply-to.

Assignments

Most interfaces have to be assigned to a physical port. By default, LAN is assigned to port 0 and WAN is assigned toport 1. Assignments can be changed by going to Interfaces ‣ Assignments. This lists existinginterfaces, with the interface name on the left and the physical port selected in the dropdown. New ones can becreated here as well, using a non-occupied physical port.

When creating a new interface or changing an existing one (which can be done by clicking its name in the overview),the following options are available:

Option

Explanation

General configuration

Enable interface

Disable the interface without needing to remove its assignment altogether.

Prevent interface removal

Avoids accidentally removing an interface (has to be turned off and saved before an interface can be removed).

General configuration

Description

A short description for clarification, if the name does not suffice.

Block private networks

Block traffic claiming to come from private addresses. On WAN interfaces, this kind of traffic should not happen legitimately.

Block bogon networks

Block traffic claiming to come from invalid or reserved addresses (Martian packets). Note that this also includes multicast traffic using OSPF and RTMP.

IPv4 Configuration type

How to obtain the IPv4 address for this connection.

IPv6 Configuration type

How to obtain the IPv6 address for this connection.

MAC Address

Can be used to spoof the MAC address. Can usually be left blank (in which case it will use the actual MAC address of the hardware).

MTU

Maximum Transfer Unit.

MSS

Maximum Segment Size.

Speed and duplex

It is recommended to leave this on the default, unless you know what you are doing and the setting you pick matches the one on the physical port.

Dynamic gateway policy

If the destination is directly reachable via an interface requiring no intermediary system to act as a gateway,you can select this option which allows dynamic gateways to be created without direct target addresses. Some tunnel types support this.

Note

When configuring VPN clients without static tunnel addresses, you can use the “Dynamic gateway policy” option to automatically generate gateways to the device (without address).

In addition to these settings, the following blocks will be enabled depending on what is configured under“IPv4 Configuration type” and “IPv6 Configuration type”.

For IPv4:

Option

Explanation

Static IPv4 configuration

IPv4 address

IPv4 Upstream Gateway

When an Upstream Gateway is set, packets entering the interface will also sent out on the same interface when replied. In addition outbound nat will be set up automatically when mode is set to Automatic or Hybrid.

DHCP client configuration

Configuration Mode

Alias IPv4 address

Used as a fixed alias IPv4 address by the DHCP client.

Reject Leases From

Can be used to ignore DHCP leases from ISP-issued modems, for example.

Hostname

This value is sent as the DHCP client identifier and hostname when requesting a DHCP lease. Some ISPs may require this (for client identification).

Override MTU

An ISP may incorrectly set an MTU value which can cause intermittent network disruption. By default this value will be ignored. Unsetting this option will allow to apply the MTU supplied by the ISP instead.

PPP configuration

Service Provider

By selecting a country, provider and plan here, OPNsense can fill in the other fields for you. If your provider or plan not in the list, you have to set them manually.

Username

Password

Phone number

Access Point Name (APN)

Modem port

Advanced PPP

Will take you to the Point-to-Point device settings.

PPPoE configuration

Username

Password

Service name

Leave blank unless specified by provider.

Host-Uniq

See above.

Dial-on-demand

Only connect when traffic is sent over the interface

Idle timeout (seconds)

Advanced and MLPPP

Will take you to the Point-to-Point device settings.

PPTP/L2TP configuration

Username

Password

Local IP address

Remote IP address

Dial-on-demand

Only connect when traffic is sent over the interface

Idle timeout (seconds)

Advanced

Will take you to the Point-to-Point device settings.

For IPv6:

Option

Explanation

Static IPv6 configuration

IPv6 address

IPv6 Upstream Gateway

Use IPv4 connectivity

Set the IPv6 address on the IPv4 PPP connectivity link.

DHCPv6 client configuration

Configuration Mode

Setting this to “Advanced” will make the settings below “Use VLAN priority” visible.

Request only an IPv6 prefix

Only request an IPv6 prefix; do not request an IPv6 address.

Prefix delegation size

The delegated prefix length provided by the DHCPv6 server. Normally specified by the ISP.

Send IPv6 prefix hint

Send an IPv6 prefix hint to indicate the desired prefix size for delegation

Use IPv4 connectivity

Set the IPv6 address on the IPv4 PPP connectivity link.

Use VLAN priority

Certain ISPs may require that DHCPv6 requests are sent with a specific VLAN priority.

Interface Statement

Click the “i” to see what the four subfields do.

Identity Association

Prefix Interface

Authentication

Keyinfo

SLAAC configuration

Use IPv4 connectivity

Set the IPv6 address on the IPv4 PPP connectivity link.

6RD Rapid Deployment

6RD prefix

The 6RD IPv6 prefix assigned by your ISP. e.g. ‘2001:db8::/32’

6RD Border Relay

The 6RD IPv4 gateway address assigned by your ISP

6RD IPv4 Prefix length

The 6RD IPv4 prefix length. Normally specified by the ISP. A value of 0 means we embed the entire IPv4 address in the 6RD prefix.

6RD IPv4 Prefix address

The 6RD IPv4 prefix address. Optionally overrides the automatic detection.

Track IPv6 interface

IPv6 Interface

This selects the dynamic IPv6 WAN interface to track for configuration.

IPv6 Prefix ID

The delegated IPv6 prefix ID. This determines the configurable /64 network ID based on the dynamic IPv6 connection.

Manual Configuration

If this option is set, you will be able to manually set the DHCPv6 and Router Advertisem*nts service for this interface. Use with care.

Mobile Networking

OPNsense supports 3G and 4G (LTE) cellular modems as failsafe or primary WANinterface. Both USB and (mini)PCIe cards are supported.

Supported Devices

While all devices supported by FreeBSD will likely function under OPNsense theirconfiguration depends on a AT command string that can differ from device to device.To make thing easier some of these strings are part of a easy selectable profile.

Tested devices by the OPNsense team include:

  • Huaweu M909S-120 (device cuaUx.0) (Requires separate SIM card holder/adapter) [Tested: OPNsense 21.1]

  • Huawei ME909u-521 (device cuaUx.0)

  • Huawei E220 (device cuaUx.0)

  • Sierra Wireless MC7304 (device cuaUx.2) [as of OPNsense 16.7]

Note

If you have tested a cellular modem that is not on this list, but does work thenplease report it to the project so we can list it and inform others.

Configure Cellular modems

Setting up and configuring a cellular modem is easy, see: Configuring Cellular Modems

3G - 4G Cellular Failover

To setup Cellular Failover, just follow these two how-tos:

  1. Configuring Cellular Modems

  2. Multi WAN

Note

Treat the cellular connection the same as a normal WAN connection.

Interface configuration — OPNsense  documentation (2024)

FAQs

What is the default WAN interface in Opnsense? ›

By default, LAN is assigned to port 0 and WAN is assigned to port 1. Assignments can be changed by going to Interfaces ‣ Assignments. This lists existing interfaces, with the interface name on the left and the physical port selected in the dropdown.

How do I add an interface in OpnSense? ›

Go to Interfaces ‣ Assignments And use the + to add a new interface. Press Save. The new interface will be called OPT1, click on [OPT1] in the left menu to change its settings. Press Save and then Apply changes.

What is the default Web interface of Opnsense? ›

The GUI is accessible at https://192.168.1.1/ using Username: root Password: opnsense by default (unless a previous configuration was imported). Using SSH we can access the firewall at IP 192.168. 1.1 . Both the root and installer users are available with the password specified above.

How do I configure WAN network settings? ›

Access the WAN settings
  1. Connect a device to your network over WiFi or using an Ethernet cable connected to your modem. This works best on a tablet or computer. ...
  2. Sign in to the modem settings (GUI) using your Admin Username and Admin Password, printed on the sticker.
  3. Select Advanced Setup in the main menu.

What is WAN interface setup? ›

WAN is a telecommunications network or computer network that extends over a large geographical distance. configuration of the branch gateways. To configure a WAN interface, complete the following steps: In the WAN tab, turn on the Enable health checks toggle switch.

What is the default login for OPNsense? ›

User Login

The default user is root and the password is opnsense.

What is better, OPNsense or pfSense? ›

If you want high customizability and a large support community, pfSense is a good option. If you prioritize an easy-to-use interface and frequent updates, instead, OPNsense may be better. Ultimately, pfSense offers more flexibility for seasoned users, but OPNsense provides a more polished out-of-box experience.

How do I connect to my interface? ›

How to Connect an Audio Interface to a PC/Mac
  1. Download and install any necessary drivers or software. Most audio interfaces require a driver or other piece of software to function on your machine. ...
  2. Connect your audio interface to your machine. ...
  3. Select your interface as your audio device in your system or desired software.

What is the underlying operating system of OPNsense? ›

OPNsense is an open source, FreeBSD-based firewall and routing software developed by Deciso, a company in the Netherlands that makes hardware and sells support packages for OPNsense. It is a fork of pfSense, which in turn was forked from m0n0wall built on FreeBSD.

Can I SSH into OPNsense? ›

User accounts can be used for logging in to the web frontend, as well as for logging in to the console (via VGA, serial or SSH).

What is the IP address of OPNsense web GUI? ›

To gain access to the web interface (default IP: 192.168. 1.1 ) use the following credentials: user : root. password : opnsense.

What is the default gateway of a WAN? ›

The Default Gateway is your gateway (usually a router) on the LAN side of your network. The WAN IP address is the public IP address that is given to you by your ISP provider.

What is my WAN interface? ›

A WAN type interface is an interface through which the Internet can be reached, directly or indirectly. The firewall treats any interface with a gateway selected on its interface configuration as a WAN type interface.

What is the default WAN port number? ›

Port 4 is the default WAN port in Router Mode, and the default port connecting to the router in Simple/DHCP Mode.

What is my WAN access type? ›

If you use a non-DSL modem, such as cable, wireless, or satellite, to connect to your Internet service provider, your WAN type is probably Dynamic IP Address. You may be able to determine your WAN type by inspecting the IP properties on your computer.

Top Articles
How To Make Real Money Playing RuneScape As A Beginner - Top Entrepreneurs Podcast | Enterprise Podcast Network
Stylish and Spacious Single-Section Manufactured Homes
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Umn Biology
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 6080

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.