Skip to content

Instantly share code, notes, and snippets.

@b3rs3rk
b3rs3rk / Netflix_OpenVPN_Ranges.php
Last active April 23, 2017 16:09
Simple PHP script to retrieve all Netflix ranges for EU\US\SA banks and export to file as OpenVPN config routes
<?php
/**
* Simple script to parse Amazon EC2 IP Range JSON file and Netflix ASN blocks into OpenVPN routes
*
* Running the script with the tunnel argument changes the routes to not have net_gateway added to them
* in the event you are specifically routing certain traffic over the tunnel
*
* Created by PhpStorm.
* User: b3rs3rk
* Date: 11/26/2016