OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: cake on January 02, 2017, 02:25:27 am

Title: DDNS with ddclient if you are Double NAT'd guide
Post by: cake on January 02, 2017, 02:25:27 am
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
Code: [Select]
pkg install ddclient
pkg install nano

3)Edit the config file:
Code: [Select]
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:
Code: [Select]
##
## 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
Code: [Select]
nano /etc/rc.confadd the line:
Code: [Select]
ddclient_enable="YES"
6) test ddclient with:
Code: [Select]
ddclient -daemon=0 -debug -verbose -noquiet7) Start the client with:
Code: [Select]
service ddclient startYou should be all set.

What took me the longest to figure out was to use my email instead of username. Hope this is helpful.
Title: Re: DDNS with ddclient if you are Double NAT'd guide
Post by: zitlo on June 25, 2021, 12:40:10 am
thanks