What's new

Double NAT and External IP for OpenVPN Server

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

roundaway

Regular Contributor
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:
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

Latest threads

Sign Up For SNBForums Daily Digest

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