START - NETFLIX - HULU - AMAZON VPN Bypass Script

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
sploit
DD-WRT User


Joined: 16 Apr 2016
Posts: 307
Location: California

PostPosted: Wed May 24, 2017 19:21    Post subject: START - NETFLIX - HULU - AMAZON VPN Bypass Script Reply with quote
@EIBGRAD

I created a Data Parser that parsed the Amazon JSON IP Ranges.

I can re-arange the data instantly as needed for different formats.

This list constitutes all Active Netflix and Amazon IP Ranges and it is accurate (ipv4).

We need to add this to a bypass list for the primary wan_gateway.

Once we get a working example I can do some fancy stuff with scripting to install it with 1 line of code.

For testing I loaded this into a NVRAM variable for easy access (later will install everything into JFFS so as not to blow up the NVRAM)

I am working on sending this to the IP Table 10 and actually did this but have not been able to route out. It has actually had the effect of completely firewalling the IP Ranges from all access. (I have only been working on this a few hours)


basically we need to take the below ip ranges and exclude them from the vpn route on startup and pass the traffic to the primary connection.


We need to basically create a Dual Gateway Whitelist routing setup. I have an active netflix, amazon and Hulu account for testing with.

This IP list is very large which means it will need to be forced onto JFFS in the end as a script to execute on startup.

_________________
My Karma ran over your Dogma
SploitWorks Custom Flashed Routers


Last edited by sploit on Wed May 31, 2017 10:49; edited 1 time in total
Sponsor
sploit
DD-WRT User


Joined: 16 Apr 2016
Posts: 307
Location: California

PostPosted: Thu May 25, 2017 5:04    Post subject: Filez Reply with quote
Here are 2 other versions of the data I parses.

1 Is the complete list in Linear Format with CIDR

and the second is converted to subnet masks

_________________
My Karma ran over your Dogma
SploitWorks Custom Flashed Routers
stangdriverdoug
DD-WRT Novice


Joined: 28 Mar 2013
Posts: 39

PostPosted: Sat May 27, 2017 13:46    Post subject: Reply with quote
This is amazing. Looks like you have done a lot of the heavy lifting to make this happen. I'm still stuck in a situation where I want to use Kodi on all my Fire TV's but because I use Netflix, Hulu, Amazon, ect.
sploit
DD-WRT User


Joined: 16 Apr 2016
Posts: 307
Location: California

PostPosted: Wed May 31, 2017 10:46    Post subject: Update Reply with quote
I wrote a small bash program to collect the netflix IP ranges and then converted them to CIDR ranges and used static routes to bypass the VPN.

I am going to let the program run for a few days on different servers I have and merge the data in case I missed any.


The online databases for Amazon, NetFlix and Hulu EC2 is not exhaustive and I will be manually mining these IP ranges.

_________________
My Karma ran over your Dogma
SploitWorks Custom Flashed Routers
stangdriverdoug
DD-WRT Novice


Joined: 28 Mar 2013
Posts: 39

PostPosted: Mon Jun 05, 2017 2:54    Post subject: Reply with quote
This is excellent. Thank you for trying to make this happen.
sploit
DD-WRT User


Joined: 16 Apr 2016
Posts: 307
Location: California

PostPosted: Mon Jun 05, 2017 6:14    Post subject: step Reply with quote
Saving myself some steps and contacted Netflix directly.

I requested all of their IP ranges and CIDR.

Told them what its for and stated I need ALL OF THEM for ALL of their servers to whitelist.

Should see whats up

_________________
My Karma ran over your Dogma
SploitWorks Custom Flashed Routers
Adamcarter
DD-WRT User


Joined: 09 Aug 2016
Posts: 235

PostPosted: Wed Jun 07, 2017 19:10    Post subject: Re: step Reply with quote
sploit wrote:
Saving myself some steps and contacted Netflix directly.

I requested all of their IP ranges and CIDR.

Told them what its for and stated I need ALL OF THEM for ALL of their servers to whitelist.

Should see whats up


hope they respond. Def looking forward to this.
sploit
DD-WRT User


Joined: 16 Apr 2016
Posts: 307
Location: California

PostPosted: Wed Jun 07, 2017 19:21    Post subject: Well Reply with quote
My script successfully collected all the west coast servers (Their locator assigns servers based on location) so I realized it wasn't gonna work for everyone.

Woulda taken me forever.

Part of their list is available because they use amazon.

_________________
My Karma ran over your Dogma
SploitWorks Custom Flashed Routers
Adamcarter
DD-WRT User


Joined: 09 Aug 2016
Posts: 235

PostPosted: Wed Jun 07, 2017 19:28    Post subject: Re: Well Reply with quote
sploit wrote:
My script successfully collected all the west coast servers (Their locator assigns servers based on location) so I realized it wasn't gonna work for everyone.

Woulda taken me forever.

Part of their list is available because they use amazon.


I am moving to LA, so it will likely work for me.

as it stands right now, a friend of mine who actually knows what he is doing created an iptable to exclude my xbox one which is my primary netflix watching device to bypass vpn, which I would do anyway, since I want my gaming to be as fast as possible, but I also use ipads and computers to watch netflix, and it would just make it easier. You sir are a gentleman and a scholar. And I appreciate it.

Would it be possible for you to explain how to add this to my existing setup? (complete n00b) here. Please and thank you.
sploit
DD-WRT User


Joined: 16 Apr 2016
Posts: 307
Location: California

PostPosted: Thu Jun 08, 2017 3:27    Post subject: The actual problem Reply with quote
The real problem is this.

https://arstechnica.com/information-technology/2016/02/netflix-finishes-its-massive-migration-to-the-amazon-cloud/

So I already have all the Amazon and Netflix EC2 Servers CIDR ranges. The nastier problem... The secondary problem is that as soon as I press Play it gets blocked because the play buttons are linked to non EC2 servers. I need all of those Non EC2 servers CIDR's. Its a big mess. A real big mess...I guarantee that if I had all of them I could fix this problem.

The problem is the openconnect that is used.

This is why using PBR on a specific device is better.

_________________
My Karma ran over your Dogma
SploitWorks Custom Flashed Routers
Adamcarter
DD-WRT User


Joined: 09 Aug 2016
Posts: 235

PostPosted: Thu Jun 08, 2017 4:04    Post subject: Reply with quote
yikes, def doesn't sound the least bit easy
Adamcarter
DD-WRT User


Joined: 09 Aug 2016
Posts: 235

PostPosted: Sat Jun 17, 2017 0:49    Post subject: Re: The actual problem Reply with quote
sploit wrote:
The real problem is this.

https://arstechnica.com/information-technology/2016/02/netflix-finishes-its-massive-migration-to-the-amazon-cloud/

So I already have all the Amazon and Netflix EC2 Servers CIDR ranges. The nastier problem... The secondary problem is that as soon as I press Play it gets blocked because the play buttons are linked to non EC2 servers. I need all of those Non EC2 servers CIDR's. Its a big mess. A real big mess...I guarantee that if I had all of them I could fix this problem.

The problem is the openconnect that is used.

This is why using PBR on a specific device is better.


Looks like ther are over 150,000 ip addresses

https://ipinfo.io/AS2906
Adamcarter
DD-WRT User


Joined: 09 Aug 2016
Posts: 235

PostPosted: Tue Jul 11, 2017 5:51    Post subject: Reply with quote
Just checkin in. Any luck?
neerav
DD-WRT Novice


Joined: 08 Jul 2010
Posts: 44

PostPosted: Fri Jul 14, 2017 2:48    Post subject: Reply with quote
So basically a PBR by device is our only solution. Just to understand correctly: that would mean I would have to have a dedicated Netflix/Hulu/etc device that bypasses VPN and then other device dedicated to just Kodi, right?

Wait, isn't there a setting in Kodi to setup the VPN for just Kodi? I'm thinking this device would bypass VPN (no PBR entry), but Kodi would establish is own VPN connection.

Problem solved? I feel that I'm still missing something that the OP was trying to do.

_________________
LinkSys E1000 ...... DD-WRT
LinkSys E2000 ...... DD-WRT
Netgear R8000 ...... Finally DD-WRT
TP-Link WR710N ..... Stock (considering DD-WRT)
sploit
DD-WRT User


Joined: 16 Apr 2016
Posts: 307
Location: California

PostPosted: Mon Jul 17, 2017 4:14    Post subject: wierd Reply with quote
Somehow I was unsubscribed to my own thread.

No update. Sorry am on vacation right now...
Will be back soon.

You know whats really interesting though.... I have nothing but PC's with 1080p - 4k video cards hooked up to my systems so this problem doesnt even effect me because I route through ethernet to each room and I only use the VPN for specific devices that never need to be disconnected.

_________________
My Karma ran over your Dogma
SploitWorks Custom Flashed Routers
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum