I have updated the OP with the iptables rules which work for me for Netflix Android app v3.8 and beyond
Last edited:
I saw a script on reddit that is currently working just fine in my tomato-based router. You can use it to redirect all traffic going out on TCP/UDP port 53 to a specific IP address:
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 192.168.1.1
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to 192.168.1.1
(assumes router IP is 192.168.1.1 - change accordingly or reroute to your smart DNS server of choice directly)
(assumes interface is br0 - change accordingly)
Were you able to find a solution to this problem.Hey Guys!
I have been using Unlocator for about the last 4 weeks. It's been like a dream compared to my previously already awesome solution, TunnelBear. Something must have changed this morning or yesterday on some side of things because I can no longer do what I was doing very easily for the last few weeks.
I'm located in the US.
I own a Chromecast w/ Firmware Version 19084 and country code US
I own a Netgear R6300 running DD-WRT setup with iptables as described here: http://goo.gl/JV0tRO
I own a Mac running OSX 10.10, Chromebook running the latest beta build, Android Phone running 4.4, and iPhone 4s running iOS 7.1. I am running Chrome 38.0.2125.111 on the Mac.
Previous to today, I could start watching content on any of my devices at www.bbc.co.uk/iplayer or the BBC iPlayer Apps AND when I clicked the Cast button it would successfully cast the content onto my Chromecast and continue playing. (I went out and bought a DD-WRT compatible router and paid for Unlocator even though I had 6 months left on Tunnelbear because I was tired of hooking up my computers via HDMI to our TV just so that we could watch BBC - when everything else we've been able to Cast. This was so awesome and felt like Magic when it all came together and worked.)
As of today, I can start watching content on all these devices, but when I try casting to the Chromecast, I get errors on the casting device and a Brain Freeze error on the Chromecast.
Chromecast: brain freeze
We're sorry, but something could not load
Activity Aborted
Android: Google Play Services Error. An error has occurred - please try again. (Error Code: 2002)
Chrome: Unable to cast to device.
An unexpected error occurred.
Please try the following:
Try to cast again
Verify your network connectivity
I have 3 Green Check marks at the Unlocator Dashboard. I visited the IP Updater link. I rebooted my router from within the DD-WRT GUI. I factory reset my Chromecast. I rebooted my Mac. I rebooted my Android phone. (I haven't been able to test on IOS but I suspect the same results). I sent a support email to Unlocator. What else do you guys think I could try out? Did Google or BBC take notice and make a change in the way they check geography? Anyone else experiencing this problem?
I really hope I can find a way to fix this!
iptables -t nat -A POSTROUTING -j MASQUERADE
Were you able to find a solution to this problem.
Also, add this iptables rule with the forwarding rule in your firewall setup:
This shows that the incoming traffic from your DNS server is coming from Google DNS. (According to what I have read)Code:iptables -t nat -A POSTROUTING -j MASQUERADE
Let us know if this works.
Also please mention what version of the iPlayer apps you are using, as that might make a difference if they have updated.
Another workaround is to use the Plex BBC channel and cast it to the Chromecast. That's currently working.
Also, add this iptables rule with the forwarding rule in your firewall setup:
This shows that the incoming traffic from your DNS server is coming from Google DNS. (According to what I have read)Code:iptables -t nat -A POSTROUTING -j MASQUERADE
Let us know if this works.
iptables -t nat -A PREROUTING --destination 8.8.8.8 -j DNAT --to 149.154.157.61
iptables -t nat -A PREROUTING --destination 8.8.4.4 -j DNAT --to 149.154.157.61
iptables -t nat -A POSTROUTING -j MASQUERADE
Hello,
I've been trying to setup iptables to use the netflix app on my tablet. For chromecasting it's pretty straight forward, my issue is that i can no longer play videos on the tablet. Here is my current setup:
Code:iptables -t nat -A PREROUTING --destination 8.8.8.8 -j DNAT --to 149.154.157.61 iptables -t nat -A PREROUTING --destination 8.8.4.4 -j DNAT --to 149.154.157.61 iptables -t nat -A POSTROUTING -j MASQUERADE
I've been trying to find out exactly what the masquerade line does, and how it affects other packets sent through the network. With the current setup I can barely open a movie on the tablet (i get error 12001) but if i keep trying it eventually works.
iptables -t nat -A PREROUTING -i br0 -s SOURCE(CHROMECAST)/32 -p udp --dport 53 -j DNAT --to (DESTINATION-DNS)
iptables -t nat -A PREROUTING -i br0 -s SOURCE(CHROMECAST)/32 -p tcp --dport 53 -j DNAT --to (DESTINATION-DNS)
Try the method posted above your post where you only forward the traffic from the chromecast:
Code:iptables -t nat -A PREROUTING -i br0 -s SOURCE(CHROMECAST)/32 -p udp --dport 53 -j DNAT --to (DESTINATION-DNS) iptables -t nat -A PREROUTING -i br0 -s SOURCE(CHROMECAST)/32 -p tcp --dport 53 -j DNAT --to (DESTINATION-DNS)
There's no need as watching netflix on chromecast works perfectly with any method. My only issue is with watching netflix with the latest app right on the tablet, without chromecasting.
Basically, the updated version of Netflix (=> 3.7.2) seems to be forcing the use of Google DNS.
Version 3.7.1 works fine-ish. It has a bug displaying subtitles correctly. If the subtitle has 2 lines it shrinks the first line and cuts it off. It's not game breaking, yet it does get annoying.Use version 3.7.1 of the Netflix app. It works fine.
Some of the DNS providers have researched the latest problem with the erratic behavior of Netflix, and they say that it is because Netflix is rotating between different servers that appear to react differently. That's why it fails a few times in a row and then suddenly succeeds. So probably not due to the iptables at our end, or a random timing glitch.
iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination 185.37.37.37
iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination 185.37.37.185
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to 185.37.37.37
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 185.37.37.37
Let me know if you get it working. I'll have an fritz 7390 with the same problems.
This looks interesting mate.
Do you have any idea if its possible on DDWRT / tomato?
Is it a firewall script like this one (that i have been using but no longer works. Presumably because of the return.
iptables -I PREROUTING -t nat -p udp -d 8.8.4.4 --dport 53 -j DNAT --to-destination
I re-direct the Google DNS requests in the Router, using Static Routes, which works quite well.