Double NAT and External IP for OpenVPN Server

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

roundaway

Occasional Visitor
Requesting help. I'm using an RT-AC-56U with Merlin 384.5 and the WAN shows a private IP address. The ISP just placed us in a double NAT situation with the external IP changing every 5 minutes or so. If the WAN-->DDNS is placed to "Custom" and the following script is placed in ddns-start, will that allow an external client to reach the OpenVPN Server? I would create a cron job to run the script every 5 minutes.

#!/bin/sh
#FreeDNS updater script

UPDATEURL="http://freedns.afraid.org/dynamic/update.php?_YOURAPIKEYHERE_"
DOMAIN="_YOURDOMAINHERE_"

registered=$(nslookup $DOMAIN|tail -n2|grep A|sed s/[^0-9.]//g)

current=$(wget -q -O - http://checkip.dyndns.org|sed s/[^0-9.]//g)
[ "$current" != "$registered" ] && {
wget -q -O /dev/null $UPDATEURL
echo "DNS updated on:"; date
}

Thank you,
Chris
 
Last edited:

Pila

Regular Contributor
If you do not have a modem (box from your priovder but which you cotntrol) which holds public address in your home and attached to your router, you will not be able to use someone's else public address to connect back to your system.

You would need to be able to set port forwards on your provider computer to do so.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top