Yesterday I discovered the free TVUnblock.com service and was suprised how easy it is to use. Configuring my OpenWRT router to get access to US Netflix content only took me about 5 minutes. Being a free service, TVUnblock requires users to register their IP with them to unlock the unblocking functionality. For internet connections with dynamic IP adresses, this means that you have to regularly re-register your IP address, else you’re back to the local program, or none at all if you use it for services that aren’t available outside the US.
To automate this process, I have written a small IP update script:
Installation on OpenWRT
Before installing the script, make sure that the DNS is configured and the unblocking service is working correctly.
To get this script to work on OpenWRT, copy it to some directory on the router. In this example, we copy it to /root/tvunblock.sh
, and add execution rights by issuing chmod +x tvunblock.sh
. We then tell cron
to run the script every 10 minutes by adding the following line to etc/crontabs/root,
or through LuCI in System > Schedules Tasks:
*/10 * * * * /root/tvunblock.sh
Restart cron (System > Startup > cron > Restart) afterwards. That’s it!
Vlad
Hi Mario,
Thanks for this great contribution, I especially appreciate the fact that you first check for an IP change before sending the update out to tvunblock. The 1-hour per update is a soft limit and is used to discourage abuse but is rarely enforced. If you would like access to a complimentary dashboard please send me an email.
Cheers,
Vlad
Pingback
[…] to make sure that TVUnblock does not block me, I use this cron script to notify them whenever my dynamic IP […]