What's new

Merlin - feature request

  • 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!

Cake

Senior Member
Merlin - Just flashed your firmware to AC68U, and OpenVPN client works flawlessly, My Thanx Merlin and others involved.
Is it possible in the future to add "I'm behind NAT" option to ddns. My router sits behind another nat device, and I just retired my trusty ancient linksys wrt54gl with dd-wrt on it. I remember it had some kind of option to make ddns work when the wan has a private ip address (behind another nat).
Maybe there is work around I am missing.
 
Hey Cake. Does your edge device have the ability to config the DDNS/DNS servers directly? I'm just wondering if it makes sense to have the device that get's the IP from the ISP be the one to config the ddns provider.

As info, I make use of afraid.org as a free and robust dns management tool (http://i.imgur.com/rKSasS2.png), then I use the Asus ddns client with dnsomatic to update all of the afraid.org sub/domains that I want updated and pointing to my IP (http://i.imgur.com/eE7wWmy.png). But then, my Asus is my edge device, so I don't have to jump thru the hoops that it looks like you're faced with.
 
Hey Tod, Im not sure what is the best way to go about it. My ISP flashed thier own firmware to my edge device (Ubiquity NanoBridge M5). They neutered the heck out of it, just about all settings are greyed out, even to upload and reflash with stock firmware, also SSH is disabled.

The AC68U-
My goal is to use a VPN to provide Internet to all devices on my network. That works flawlessly thanks to RMerlin's firmware!! I am very happy camper on that. OpenVPN works great.

I also want to be able to use OpenVPN on my laptop when away to connect to the router (another instance running) and thus access the lan and network shares, with out using a middleman/nsa lol. (gotomypc.com etc.)

So its the last part I would like to get setup, and am guessing I need to get ddns up and running on the router. Is such as setup even possible? Im a little slow in the head using the terminal and writing scripts :)
 
Hey Tod, Im not sure what is the best way to go about it. My ISP flashed thier own firmware to my edge device (Ubiquity NanoBridge M5). They neutered the heck out of it, just about all settings are greyed out, even to upload and reflash with stock firmware, also SSH is disabled.

The AC68U-
My goal is to use a VPN to provide Internet to all devices on my network. That works flawlessly thanks to RMerlin's firmware!! I am very happy camper on that. OpenVPN works great.

I also want to be able to use OpenVPN on my laptop when away to connect to the router (another instance running) and thus access the lan and network shares, with out using a middleman/nsa lol. (gotomypc.com etc.)

So its the last part I would like to get setup, and am guessing I need to get ddns up and running on the router. Is such as setup even possible? Im a little slow in the head using the terminal and writing scripts :)

Code:
#!/bin/sh

SERVICE="dnsomatic"
USER="****"
PASS="****"
HOST="all.dnsomatic.com"
IP="`curl http://icanhazip.com`"

ez-ipupdate -S $SERVICE -u $USER:$PASS -h $HOST -a $IP

This shell script is configured for DNS o Matic. You can update No-IP and others that way by pulling your external IP instead of what the router thinks your WAN IP is. I run this script twice a day via cron and on my dhcpc-event script. Use the while loop from the wiki article if you wish.
 
Thanx owine
I had to remove
Code:
 IP="`curl http://icanhazip.com`"
from your script and tried
Code:
 IP=$(wget -qO - [url]http://cfaj.freeshell.org/ipaddr.cgi[/url])
from janosek's example and it worked.

So mine looks like this-
Code:
#!/bin/sh


SERVICE="dnsomatic"
USER="******"
PASS="******"
HOST="all.dnsomatic.com"
IP=$(wget -qO - http://cfaj.freeshell.org/ipaddr.cgi)

sleep 10

ez-ipupdate -S $SERVICE -u $USER:$PASS -h $HOST -a $IP

exit 0

seems to do the trick, I'm off to google to see how to use cron job on the script. It gives the IP from the vpn, (I am ok with that I think).
Thanx everyone
 
Last edited:
Here is a update on the cron for any other newbee's or ex windows/apple users like myself looking for a quick fix.lol
(aka shortcut)
Use putty or linux terminal and accomplish the following:

vi

Code:
#!/bin/sh


cru a ddns "2 * * * * /jffs/scripts/up.sh"

and name the file: init-start and make sure its in /jffs/scripts/

So far it seems to work for me and reoccurring ever 2 minutes past the hour.
 
Thanx owine
I had to remove
Code:
 IP="`curl http://icanhazip.com`"
from your script and tried
Code:
 IP=$(wget -qO - [url]http://cfaj.freeshell.org/ipaddr.cgi[/url])
from janosek's example and it worked.

So mine looks like this-
Code:
#!/bin/sh


SERVICE="dnsomatic"
USER="******"
PASS="******"
HOST="all.dnsomatic.com"
IP=$(wget -qO - http://cfaj.freeshell.org/ipaddr.cgi)

sleep 10

ez-ipupdate -S $SERVICE -u $USER:$PASS -h $HOST -a $IP

exit 0

seems to do the trick, I'm off to google to see how to use cron job on the script. It gives the IP from the vpn, (I am ok with that I think).
Thanx everyone

Yes, sorry curl is not installed by default. Swapping out for wget solves that.

Here is a update on the cron for any other newbee's or ex windows/apple users like myself looking for a quick fix.lol
(aka shortcut)
Use putty or linux terminal and accomplish the following:

vi

Code:
#!/bin/sh


cru a ddns "2 * * * * /jffs/scripts/up.sh"

and name the file: init-start and make sure its in /jffs/scripts/

So far it seems to work for me and reoccurring ever 2 minutes past the hour.

I'd suggest putting the raw command into other user scripts for "instant" updates if you get a new IP. wan-start and dhcpc-event are good ones to use.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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