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.
1
# set in dnsmasq.conf
2
ipset=/fast.com/netflix
3
ipset=/nflxext.com/netflix
4
ipset=/nflximg.com/netflix
5
ipset=/nflximg.net/netflix
6
ipset=/nflxso.net/netflix
7
ipset=/nflxvideo.net/netflix
8
ipset=/nflxvideo.net/netflix
9
ipset=/nflxvideo.com/netflix
10
ipset=/netflix.com/netflix
11
12
# netflix
13
ipset create netflix hash:ip hashsize 4096
14
setenforce 0
15
service dnsmasq restart
16
17
# new nat tables, redirect all netflix package which come from output chian to 1234 port, and then send to ss server.
18
iptables -t nat -N NETFLIX
19
iptables -t nat -A NETFLIX -p tcp -m set --match-set netflix dst -j REDIRECT --to-ports 1234
20
iptables -t nat -I OUTPUT -p tcp -m multiport --dports 80,443 -j NETFLIX
21
22
/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
23
Copied!

2.原理

ss client --> vps ss-server --> ss-server which is not blocked by netflix.
Last modified 10mo ago
Copy link