EeK
Regular Contributor
Hello,
I just got an Asus RT-AC87U and flashed it with Merlin's most recent firmware, mainly because of the DNS-based filtering. I live in Brazil and use the services of Borderless Internet and Unlocator to have access to US content from Netflix and HBO Now, among others.
Except for Netflix on my nVidia Shield TV, the DNS-based filtering worked flawlessly (I had to manually hard code the DNS servers on that device, even if HBO Now was working great). After that, I started reading about cron jobs, since both services I use have Dynamic DNS.
Unfortunately, I'm not a programmer, so even trying to write the simplest script caused me a huge headache. Therefore, I'd like to kindly ask you experts if you could guide me step-by-step on this task, as if you were talking to a 5-year-old.
I got as far as enabling SSH and JFFS on the router, opening Terminal (I'm on a Mac - OS X El Capitan) and doing the following:
ssh MyUserName@MyRouterIP
password
cd /jffs/scripts
vi ddns-start
Then I proceeded to type the script I wrote combining information from Borderless Internet and Unlocator (but using the servers of only one of them, obviously):
#!/bin/sh
0 * * * * root wget https://borderlessinternet.com/updateip?remote=MyID
esc
:w q
chmod a+rx /jffs/scripts/ddns-start
And that's it. I don't know if I had to use quotation marks for the script, or even if I did everything right up to this point. When trying to run the script (./ddn-start), I get a "line not found" error.
It would be great if my router could update my IP automatically so I don't have to do it myself everyday (my ISP uses dynamic IPs).
Thank you in advance!
I just got an Asus RT-AC87U and flashed it with Merlin's most recent firmware, mainly because of the DNS-based filtering. I live in Brazil and use the services of Borderless Internet and Unlocator to have access to US content from Netflix and HBO Now, among others.
Except for Netflix on my nVidia Shield TV, the DNS-based filtering worked flawlessly (I had to manually hard code the DNS servers on that device, even if HBO Now was working great). After that, I started reading about cron jobs, since both services I use have Dynamic DNS.
Unfortunately, I'm not a programmer, so even trying to write the simplest script caused me a huge headache. Therefore, I'd like to kindly ask you experts if you could guide me step-by-step on this task, as if you were talking to a 5-year-old.
I got as far as enabling SSH and JFFS on the router, opening Terminal (I'm on a Mac - OS X El Capitan) and doing the following:
ssh MyUserName@MyRouterIP
password
cd /jffs/scripts
vi ddns-start
Then I proceeded to type the script I wrote combining information from Borderless Internet and Unlocator (but using the servers of only one of them, obviously):
#!/bin/sh
0 * * * * root wget https://borderlessinternet.com/updateip?remote=MyID
esc
:w q
chmod a+rx /jffs/scripts/ddns-start
And that's it. I don't know if I had to use quotation marks for the script, or even if I did everything right up to this point. When trying to run the script (./ddn-start), I get a "line not found" error.
It would be great if my router could update my IP automatically so I don't have to do it myself everyday (my ISP uses dynamic IPs).
Thank you in advance!