OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: galahadba on December 12, 2019, 04:00:28 pm

Title: dyndns getting wrong ip
Post by: galahadba on December 12, 2019, 04:00:28 pm
The Dyndns pluggin is updating the wrong ip to the no-ip service. it updates a 189.x.x.x, when it should be 100.x.x.x (this is the IP i can access from outside).
It does seens to be a problem with the the way the detection is made and some configuration in the provider as other "detectors" have the same problem (www.whatismyip.com for example).  In the no-ip APP i have the option to use the interface IP instead of the auto detection, but i cannot find this option in the pluggin. And install the app on another machine is not a solution becouse the moden is plugged in the router's interface, so another machine with the app would have the same auto detection problem.

 So the questions are:
      1 - There is a way to use the interface's IP instead of the auto detection with the dyndns pluggin?
      2 - If not, being opnsense built into a linux distribution there is any alternative app that i can install into it to update no-ip?  (i ask becouse i am not a linux guy, so any help would be welcome).
Title: Re: dyndns getting wrong ip
Post by: bartjsmit on December 13, 2019, 10:56:01 am
Does your ISP employ carrier grade NAT perhaps? OPNsense is based on FreeBSD, not Linux.

Can you open a shell on your firewall (either SSH or console) and run this please?

curl -4 https://ifconfig.co

See if that returns the 189 or the 100 address

Bart...
Title: Re: dyndns getting wrong ip
Post by: galahadba on December 17, 2019, 07:25:36 pm
Sorry for being late.

the command: curl -4 https://ifconfig.co
returns the 189.x.x.x

"Does your ISP employ carrier grade NAT perhaps?"  I don't know, the ISP have some odd configuration for sure, as this is the first time i have this problem. Anyways, the IP on the interface is a valid internet IP and is the one i can access from outside and send to the  no-ip service, if i can just make the dyndns pluggin send it instead of auto-resolve would solve the problem.
Title: Re: dyndns getting wrong ip
Post by: Maurice on December 19, 2019, 10:55:17 am
Is your WAN interface IPv4 address an RFC 6598 address (100.64.0.0/10)? If so, it's basically impossible that incoming connections from the Internet work. Did you test this?

(But you can use the Dynamic DNS Custom service type and configure the update URL to include the interface address: https://www.noip.com/integrate/request)

Cheers

Maurice