Here is some quick settings if you want ddns, but you are double NAT'd (example you don't have access to the edge device, or its missing dynamic ddns ). The problem is when your double NAT'd is your lan address gets reported ex. 192.168.0.1. You can see the line "use=web" below, thats what is needed to get your public ip. Use ddclient to update DNS-O-MATIC. DNS-O-MATIC is like a middleman who then updates your other dynamic dns services your are subscribed to. I couldn't find what I needed on 16.7 DynDNS GUI, so I went with the following:
1) Make a account at DNS-O-MATIC
2) SSH into your Opnsense box
pkg install ddclient
pkg install nano
3)Edit the config file:
nano /usr/local/etc/ddclient.conf
Use your email address (not your login name for DNS-O-MATIC) for the conf file below. (important)
Here is my conf:
##
## DNS-O-Matic account-configuration
##
ssl=yes
daemon=300
use=web, web=myip.dnsomatic.com
server=updates.dnsomatic.com, \
protocol=dyndns2, \
login=yourEMAILaddress, \
password=yourPASS \
all.dnsomatic.com
5) edit rc.conf
nano /etc/rc.conf
add the line:
ddclient_enable="YES"
6) test ddclient with:
ddclient -daemon=0 -debug -verbose -noquiet
7) Start the client with:
service ddclient start
You should be all set.
What took me the longest to figure out was to use my email instead of username. Hope this is helpful.
thanks