If you're using wireguard please refer to v2ray+wireguard to bypass GFW and netflix/spotify/hulu
Two things need to be paid
- vps(such as bandwagonhost)
- If you are using China Telecom, a CN2 network is required, or you may get stuck when streaming video
- For bandwagonhost, you need to login, click Client Area -> Services -> Order New Services to get CN2 server
- vpn vendor to unblock netflix(a openvpn connection that can unblock netflix)
The basic idea is setup a socks5 proxy to forawrd all network traffic from the socks5 to a specific openvpn, in v2ray, forward all the netflix traffic to the socks5 proxy
The openvpn connection is highly unstable or slow due to GFW
You can easily get a fast VPS(CN2) from various provider, but most of them can't combined the fast and stable connection from China && unblock from the netflix
So, I decide to do it myself
-
install v2ray
bash <(curl -s -L https://git.io/v2ray.sh) -
config openvpn connection inside a docker container
In most case the following command can't set up properly, please read the Notice part to change the configuration if there's something wrong
git clone https://github.com/zpoint/openvpn_socks5_docker.git
cd openvpn_socks5_docker
./build.sh
./start.sh
launch *.ovpn
-
exit the docker container, change your v2ray configure file to forward the netflix traffic to the openvpn connection inside the container, this is part of my configure file located in
/etc/v2ray/config.json"inbounds": [ { "port": 8888, "protocol": "vmess", "settings": { "clients": [ { // private config } ] }, "streamSettings": { "network": "ws" }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } } ] "outbounds": [ { "protocol": "socks", "settings": { "servers": [{ "port": 9050, "address": "localhost" }] }, "streamSettings": { "tcpSettings": { "header": { "type": "none" } }, "network": "tcp", "security": "none" }, "tag": "streaming" } ] "routing": { "domainStrategy": "IPOnDemand", "rules": [ { "type": "field", "domain": [ "domain:btstatic.com", "domain:netflix.com", "domain:netflix.net", "domain:nflxext.com", "domain:nflximg.com", "domain:nflximg.net", "domain:nflxsearch.net", "domain:nflxso.net", "domain:nflxvideo.net", "domain:ipaddress.com" ], "outboundTag": "streaming" } ] }


I asked
How to config v2ray to proxy netflix to a sock5 proxy and other traffic to other server side proxyGPT4generated answer:To configure V2Ray for proxying Netflix traffic to a SOCKS5 proxy and other traffic to a different server-side proxy, you need to set up routing rules in your V2Ray configuration file. The following is a step-by-step guide to help you achieve this:
Install V2Ray: If you haven't already, install V2Ray on your device by following the official installation guide: https://www.v2ray.com/en/welcome/install.html
Create a V2Ray configuration file: Create or modify your V2Ray configuration file (
config.json). This file is usually located in/etc/v2ray/config.jsonor/usr/local/etc/v2ray/config.json, depending on your installation.Setup the V2Ray configuration: In the
config.jsonfile, create or modify the configuration with the following structure:{ "inbounds": [ { "port": 1080, "protocol": "socks", "listen": "0.0.0.0", "settings": { "auth": "noauth", "udp": true, "ip": "127.0.0.1" }, "sniffing": { "enabled": true, "destOverride": ["http", "tls"] } } ], "outbounds": [ { "protocol": "freedom", "settings": {}, "tag": "direct" }, { "protocol": "socks", "settings": { "servers": [ { "address": "your_socks5_proxy_ip", "port": your_socks5_proxy_port, "users": [ { "user": "your_socks5_username", "pass": "your_socks5_password" } ] } ] }, "tag": "socks5" }, { "protocol": "vmess", "settings": { "vnext": [ { "address": "your_other_proxy_ip", "port": your_other_proxy_port, "users": [ { "id": "your_user_id", "alterId": your_alter_id, "security": "auto" } ] } ] }, "tag": "other_proxy" } ], "routing": { "rules": [ { "type": "field", "domain": ["geosite:netflix"], "outboundTag": "socks5" }, { "type": "field", "ip": ["geoip:private"], "outboundTag": "direct" }, { "type": "field", "network": "udp,tcp", "outboundTag": "other_proxy" } ] } }your_socks5_proxy_ip: Replace with your SOCKS5 proxy IP address.your_socks5_proxy_port: Replace with your SOCKS5 proxy port number.your_socks5_username: Replace with your SOCKS5 proxy username, if required.your_socks5_password: Replace with your SOCKS5 proxy password, if required.your_other_proxy_ip: Replace with the IP address of your other server-side proxy.your_other_proxy_port: Replace with the port number of your other server-side proxy.your_user_id: Replace with your user ID for the other server-side proxy.your_alter_id: Replace with your alter ID for the other server-side proxy.or
Now, your V2Ray client is configured to proxy Netflix traffic to your specified SOCKS5 proxy, and other traffic is routed to your other server-side proxy.