OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: fantom on March 26, 2018, 02:23:07 pm

Title: OpenDNS Autoupdate?
Post by: fantom on March 26, 2018, 02:23:07 pm
Hi, I am trying to setup an OPNSense firewall for the first time and having issues with OpenDNS. Everything seems to be setup correctly (I think), but when the router gets a new IP (VDSL with PPPoE) I need to go and manually hit the "Test" button before the IP address is updated with OpenDNS. Is the IP supposed to be automatically updated by the router or I need to run an IP address updater on one of my PCs?
Thx in advance.
Title: Re: OpenDNS Autoupdate?
Post by: elektroinside on March 26, 2018, 02:49:14 pm
It should automatically update your IP address stored and used by your OpenDNS account.

Do you have "Filter DNS requests using OpenDNS" checked?
Title: Re: OpenDNS Autoupdate?
Post by: JasMan on June 30, 2018, 04:18:47 pm
Hey,
I'm having the same issue with OPNsense 18.1.10.

My public IP address is located on an DSL modem, because it don't allow PPPoE passthrough. Therefore the WAN interface of my OPNsense has an privat address within the LAN subnet of the DSL modem.

Every time the WAN address has changed, I need to press the "Test/Update" button to update the address in OpenDNS. A reboot of OPNsense don't update the address as well.

Is this a normal behaviour because the public address is not located to the WAN interface of the OPNsense? If yes, can I cron the update process of the OpenDNS plugin?

Thanks.
Jas Man
Title: Re: OpenDNS Autoupdate?
Post by: hjint on July 23, 2018, 10:28:09 pm
I'm using 18.1.12 and having the same problem. The solution that is working for me is with a cron job to do a Dynamic DNS Update every minute
Title: Re: OpenDNS Autoupdate?
Post by: andreab on November 06, 2018, 02:54:56 am
Hi,

I confirm that I'm having the same issue.

In my case I don't actually want to check "Filter DNS requests using OpenDNS" as i want to have the flexibility to use OpenDNS on some specific networks only.

To work around the lack of automatically updating my dynamic IP in "/services_opendns.php", I've installed the "os-dyndns" plugin, which looks great but unfortunately I could not get it to work to update OpenDNS as my WAN interface does not have a public IP address.


What I ended doing (as suggested above) is writing a cron for the following command:
curl -s -u 'username@gmail.com:myPassword' https://updates.opendns.com/nic/update?hostname=myServiceUsername

In case it helps anyone else:
1) create the cron file as: /usr/local/opnsense/service/conf/actions.d/actions_update_opendns.conf,
with content similar to:
Code: [Select]
[update]
command:/usr/local/bin/curl
parameter:-s -u 'username@gmail.com:myPassword' https://updates.opendns.com/nic/update?hostname=myServiceUsername
type:script
message:Updating Dynamic DNS for OpenDNS
description:Update Dynamic DNS for OpenDNS

2) service configd restart

3) Find your newly added cron in the "/ui/cron" add menu, and set it up to run every 10 minutes or so.

Hope it helps.

Regards,
Andrea