Dynamic DNS obtaining wrong IP
-
I am using pfsense v2.1.4, I tried 2 free trial ddns sites (no-ip and freedns) but I get both the same IP "1.9.107.128" which
is not my WAN IP at that moment. Not sure where is that IP coming from?
FYI, my setting of my ADSL modem is on "bridge mode" and I have my PPPoE setup in pfsense. Connection to Internet is fine.Below is the log from pfsense.
Aug 6 22:54:00 php: /services_dyndns_edit.php: DynDns: updatedns() starting
Aug 6 22:54:00 check_reload_status: Syncing firewall
Aug 6 22:54:06 php: /services_dyndns_edit.php: DynDns (niitkch.ddns.net): 1.9.107.128 extracted from checkip.dyndns.org
Aug 6 22:54:06 php: /services_dyndns_edit.php: DynDNS (niitkch.ddns.net): DynDns _update() starting.
Aug 6 22:54:06 php: /services_dyndns_edit.php: DynDNS (niitkch.ddns.net): Processing dummy update on No-IP free account. IP temporarily set to 192.168.1.1
Aug 6 22:54:07 php: /services_dyndns_edit.php: DynDNS (niitkch.ddns.net): DynDns _checkStatus() starting.
Aug 6 22:54:07 php: /services_dyndns_edit.php: DynDNS (niitkch.ddns.net): Current Service: noip-free
Aug 6 22:54:13 php: /services_dyndns_edit.php: DynDns (niitkch.ddns.net): 1.9.107.128 extracted from checkip.dyndns.org
Aug 6 22:54:13 php: /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wannoip-free'niitkch.ddns.net'1.cache: 1.9.107.128
Aug 6 22:54:13 php: /services_dyndns_edit.php: phpDynDNS (niitkch.ddns.net): (Success) DNS hostname update successful.
Aug 6 22:54:23 php: /services_dyndns_edit.php: DynDNS (niitkch.ddns.net): DynDns _update() starting.
Aug 6 22:54:23 php: /services_dyndns_edit.php: DynDNS (niitkch.ddns.net): DynDns _checkStatus() starting.
Aug 6 22:54:23 php: /services_dyndns_edit.php: DynDNS (niitkch.ddns.net): Current Service: noip-free
Aug 6 22:54:24 php: /services_dyndns_edit.php: DynDns (niitkch.ddns.net): 1.9.107.128 extracted from checkip.dyndns.org
Aug 6 22:54:24 php: /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wannoip-free'niitkch.ddns.net'1.cache: 1.9.107.128
Aug 6 22:54:24 php: /services_dyndns_edit.php: phpDynDNS (niitkch.ddns.net): (Success) DNS hostname update successful. -
If your WAN address is in a private range, the firewall contacts an external site to check what your perceived actual public address is at the moment.
If that's not accurate, your ISP may be pushing your traffic through a proxy server or some other carrier-grade NAT.
-
The WAN IP is allocated by ISP 10.x.x.x which is the private range of IP, is this means that the DDNS will not get this address
as the public IP?On the other hand, if I uses the modem and connect direct to ISP without the pfsense, I am able to get the actual IP from ISP 10.x.x.x to update the 3rd parties domain name like xxx.dyndns.org will resolve to the 10.x.x.x
Attached herewith what I got from pfsense
![Screen Shot 08-07-14 at 11.17 AM.PNG](/public/imported_attachments/1/Screen Shot 08-07-14 at 11.17 AM.PNG)
![Screen Shot 08-07-14 at 11.17 AM.PNG_thumb](/public/imported_attachments/1/Screen Shot 08-07-14 at 11.17 AM.PNG_thumb)
![Screen Shot 08-07-14 at 11.18 AM.PNG](/public/imported_attachments/1/Screen Shot 08-07-14 at 11.18 AM.PNG)
![Screen Shot 08-07-14 at 11.18 AM.PNG_thumb](/public/imported_attachments/1/Screen Shot 08-07-14 at 11.18 AM.PNG_thumb) -
A 10.x IP address is not public. That is a private IP, but it could be coming from your modem or from your ISP.
You cannot reach a 10.x address from anywhere outside of that network, so using that 10.x IP address for DynDNS is rather useless.
-
Thanks for your advice.
The ISP is allocating the private range of IP for each connect and I believed they did some routing or "something" within
country and within different ISP so that everyone can reach this private IP but not outside the country.Questions.
1. Is there anywhere I can change the pfsense behavior with custom configuration?
2. If #1 is impossible, is there anyway I can run a cron to update via script manually
or which php script file in pfsense that I can change to submit only this private IP?