OPNsense Forum

English Forums => General Discussion => Topic started by: kermitxyz on August 04, 2026, 05:47:24 PM

Title: Static IP on WAN side
Post by: kermitxyz on August 04, 2026, 05:47:24 PM
Hi

I have just changed FTTP provider and entered new username and password.  Connection is working.  I have ordered static IP.

myip.dk reports the static IP as expected (84.x.x.x)
OPNsense dashboard shows WAN gateway address as (212.x.x.x)

With the old ISP both were the same.  I cannot connect to my VPN now so I suspect something is wrong.

Any ideas please?
Title: Re: Static IP on WAN side
Post by: Patrick M. Hausen on August 04, 2026, 06:24:22 PM
The gateway address is not your IP address but the one of the gateway on the other end of the WAN link. Your address is shown e.g. in the Interfaces widget.
Title: Re: Static IP on WAN side
Post by: kermitxyz on August 04, 2026, 09:21:58 PM
Thanks.  It's strange because with the previous ISP the IP address shown on the dashboard gateway widget was the same as my actual static IP.  With the second ISP it is not.

The service is now working (incoming traffic too) so perhaps it just needed to settle.  But I would be interested to know the reason for the difference between the two?
Title: Re: Static IP on WAN side
Post by: viragomann on August 04, 2026, 10:40:10 PM
Quote from: kermitxyz on August 04, 2026, 05:47:24 PMmyip.dk (https://myip.dk/) reports the static IP as expected (84.x.x.x)
OPNsense dashboard shows WAN gateway address as (212.x.x.x)

With the old ISP both were the same.  I cannot connect to my VPN now so I suspect something is wrong.
WAN IP and gateway IP must differ at all, otherwise you would not be able to access anything on the internet.

The site displays the public IP, which you're using to access it. So it should be the same as the WAN IP OPNsense displays on the dashboard, but not the gateway.
Title: Re: Static IP on WAN side
Post by: meyergru on August 05, 2026, 08:58:00 AM
In fact, there can even be three different IPs in play. With CG-NAT or another NAT router in front, you have:

a. your WAN IP as visible in the interfaces overview (with CG-NAT, it would probably start with 100, with a NAT router, it could be from the RFC1918 range).
b. the IP of your upstream gateway as shown on the dashboard.
c. the IP your requests apparently come from when asking myip.dk or similar sites. This can be either your WAN IP, or with NAT, the WAN IP of whatever router does it (with CG-NAT, from you ISP's ASN).

You need to understand which is which to interpret the results right.