Photo by Thomas Jensen / Unsplash

Setting up PPPoE and Static IP in OPNsense

opnsense Feb 10, 2024

When I first started homelabbing, accessing my services when am not in home was a huge roadblock to me. Thanks to Cloudflare tunnels and numerous Wireguard tutorials online, I was happy with Cloudflare tunnels for publicly hosted services (Added benefit of Cloudflare security). Whereas I used a Wireguard hosted on a VPS which then allowed me to connect to my home remotely.

This was pretty much good setup and worked for a while. Parallelly, I was also in touch with my ISP to get a Static IP since many years. Finally after years of waiting, to my surprise, when I randomly checked with them about it, they said its possible 🥳

I am from India and my ISP is Airtel. I raised a request to them and it costed me INR 200/month to get Static IP along with my existing Fiber Connection. This was a good deal, but to my luck, the Engineers from my ISP took literally a week to get me setup with Static IP.

Initially, I wanted to setup Port Forwarding with my ISP modem and Forward traffic to my OPNsense router. Then I would further again forward it to my Nginx Proxy Manager. This would be a Double NAT Setup. The technicians struggled to port forward it in my ISP Modem (Zyxel). Some technicians didn't even knew what to do here. After 3/4 days of nothing and my research, I decided to ask them to make ISP Modem in Bridge mode and I would assign Static IP directly with my PPPoE Credentials.

Since this was not supported in my existing Zyxel Modem provided by Airtel, they changed it to a Nokia modem. This had option to convert it to Bridge Mode and BAM! I was able to setup Static IP in OPNsense.

To get started, I got my PPPoE Credentials from ISP along with the Static IPv4 address assigned to me. Once I had this, I logged in to OPNsense by opening the WebUI in browser( or something else if you have changed it)

OPNsense Admin Panel

Once logged in, I went to Interfaces > Point-to-Point > Devices. Hit the '+' to create a new device.

Select Link Type as PPPoE from the list. In Link Interfaces, I chose my WAN interface, which is igc0. Put in a beautiful description. Then added my PPPoE Credentials here and saved it.

NOTE: If your ISP has a specific MTU size, you can configure it in the Advanced section on the same page. I didn't need to anything here.

Adding PPPoE Credentials

Once this is added, its as simple as changing WAN configuration to Static IP. I went to Interfaces > WAN

  1. Tick Prevent Interface Removal (Just to make sure I accidentally don't remove it)
  2. Change IPv4 Configuration Type to Static IPv4
  3. Change IPv6 Configuration Type to None (Since I am not using IPv6, I am disabling it)
  4. Now at the very bottom, in Static IPv4 Configuration section, I added my Static Public IPv4 details. I had to add a gateway manually since the Auto-Detect didn't work for me. I used the + button to add a new Gateway as per my subnet mask. If you are unsure, just check with your ISP.
WAN Configuration

That's it! I saved the configuration and BOOM! Static IP was configured for my router.

To verify, go to Lobby > Dashboard, Add Interfaces Widget and you should see your static IP with UP status.

WAN Status UP