Skip to content

Instantly share code, notes, and snippets.

@0neday
Last active November 8, 2021 18:28
Show Gist options
  • Save 0neday/b571d00ddfebe0a9f1333f8817f582a1 to your computer and use it in GitHub Desktop.
Save 0neday/b571d00ddfebe0a9f1333f8817f582a1 to your computer and use it in GitHub Desktop.
If you have a sharing ss-server which is not running sniproxy, you could use this method to let your vultr vps play netflix.
#### for shadowsocks-libev 2.3.6 +, using ipset
# set in dnsmasq.conf
ipset=/fast.com/netflix
ipset=/nflxext.com/netflix
ipset=/nflximg.com/netflix
ipset=/nflximg.net/netflix
ipset=/nflxso.net/netflix
ipset=/nflxvideo.net/netflix
ipset=/nflxvideo.net/netflix
ipset=/nflxvideo.com/netflix
ipset=/netflix.com/netflix
# fix tvq-pm-102 error on nvidia shield andriod tv
ipset=/amazonaws.com/netflix
# netflix
ipset create netflix hash:ip hashsize 4096
setenforce 0
service dnsmasq restart
# new nat tables, redirect all netflix package which come from output chian to 1234 port, and then send to unblock ss-server.
iptables -t nat -N NETFLIX
iptables -t nat -A NETFLIX -p tcp -m set --match-set netflix dst -j REDIRECT --to-ports 1234
iptables -t nat -I OUTPUT -p tcp -m multiport --dports 80,443 -j NETFLIX
/opt/shadowsocks-libev/bin/ss-redir -c /opt/shadowsocks-libev/ss-ru.json -b 0.0.0.0 -l 1234 -f /tmp/ss.pid
@0neday
Copy link
Author

0neday commented Oct 30, 2020

This method could let netflix play on vultr by using a ss-server which is not blocked by netflix.


 ss-local --> your vultr vps ss-server --> ss-redir -->  ss-server which is not blocked by netflix.

@0neday
Copy link
Author

0neday commented Feb 22, 2021

for fix tvq-pm-102 error on nvidia shield andriod tv
add

ipset=/amazonaws.com/netflix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment