Netflix

国外付费TV视频,原创视频厂商

1.代码

If you have a sharing ss-server which is not running sniproxy, you could use this method to let your vultr vps play netflix.

# 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

# 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 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-2.6.3 -c /opt/shadowsocks-libev/ss-ru.json  -b 0.0.0.0 -l 1234 -f /tmp/ss.pid

2.原理

ss client --> vps ss-server --> ss-server which is not blocked by netflix.

Last updated