Created
March 27, 2016 00:06
-
-
Save 0ff/f93a8a6c2d7de9e90d07 to your computer and use it in GitHub Desktop.
iptables for OpenWrt to unlock netflix using getflix.com.au
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YOUR_GETFLIX_SERVER=1.2.3.4 # see https://www.getflix.com.au/setup/overview | |
YOUR_ATV_MAC=AA:BB:CC:DD:EE # see ”DHCP and DNS" in OpenWrt | |
iptables -A zone_lan_forward ! -d $YOUR_GETFLIX_SERVER/32 -p tcp -m tcp --dport 53 -m mac --mac-source $YOUR_ATV_MAC -m comment --comment "restrict dns" -j zone_wan_dest_REJECT | |
iptables -A zone_lan_forward ! -d $YOUR_GETFLIX_SERVER/32 -p udp -m udp --dport 53 -m mac --mac-source $YOUR_ATV_MAC -m comment --comment "restrict dns" -j zone_wan_dest_REJECT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment