Using WARP as a Proxy Egress on CentOS (Bypassing Netflix IP Restrictions)
· / 0
AI TranslationSimplified ChineseEnglish
WARP
Cloudflare WARP is a network privacy service from Cloudflare. Adding WARP as an egress can help bypass streaming services’ blocks on proxy IP addresses, such as Netflix’s. (Cloudflare’s official introduction)
On first use, register an account and generate the configuration files:
Shell
./wgcf register
./wgcf generate
The program directory will now contain two new files, wgcf-account.toml and wgcf-profile.conf.
Configure wgcf
wgcf-account.toml contains your WARP account details. If you have WARP+, replace these with the details for your own account. wgcf-profile.conf is the WireGuard configuration file; download a copy to your local machine.
Modify wgcf-profile.conf
WireGuard runs in the kernel and creates its own virtual network interface. WARP clients use private addresses behind NAT. If WireGuard takes over both IPv4 and IPv6 routing, the server may no longer be reachable at its original IP address. In this setup, we therefore leave one address family outside the tunnel to avoid losing access.
You can resolve engage.cloudflareclient.com to an IP address yourself, then use an IPv4 or IPv6 address for Endpoint and save the file.
There are two configuration options:
Change the last line Endpoint=engage.cloudflareclient.com:2048 to 162.159.192.1:2408, and delete AllowedIPs = 0.0.0.0/0 so that WireGuard does not take over local IPv4 routing.
Change the last line Endpoint=engage.cloudflareclient.com:2048 to [2606:4700:d0::a29f:c001]:2408, and delete AllowedIPs = ::/0 so that WireGuard does not take over local IPv6 routing.
WARP
Cloudflare WARP is a network privacy service from Cloudflare. Adding WARP as an egress can help bypass streaming services’ blocks on proxy IP addresses, such as Netflix’s. (Cloudflare’s official introduction)
WGCF
WGCF is an unofficial CLI client for WARP.
With WGCF, you can add IPv4 and IPv6 proxy egresses to a VPS to access Netflix.
Install wgcf
Run the following commands:
On first use, register an account and generate the configuration files:
The program directory will now contain two new files, wgcf-account.toml and wgcf-profile.conf.
Configure wgcf
wgcf-account.toml contains your WARP account details. If you have WARP+, replace these with the details for your own account. wgcf-profile.conf is the WireGuard configuration file; download a copy to your local machine.
Modify wgcf-profile.conf
WireGuard runs in the kernel and creates its own virtual network interface. WARP clients use private addresses behind NAT. If WireGuard takes over both IPv4 and IPv6 routing, the server may no longer be reachable at its original IP address. In this setup, we therefore leave one address family outside the tunnel to avoid losing access.
You can resolve engage.cloudflareclient.com to an IP address yourself, then use an IPv4 or IPv6 address for Endpoint and save the file.
There are two configuration options:
Install the WireGuard client
CentOS 7:
For installation commands on other systems, see the official website
After installation is complete, restart the VPS.
Configure WireGuard
Upload the modified wgcf-profile.conf file to /etc/wireguard, and rename it to wgcf.conf.
Start wgcf
Use these commands to bring the tunnel up or down:
If the VPS is not using IPv6 for outbound connections, edit /etc/gai.conf (create the file if necessary) and use the following contents:
Check whether you can access Netflix:
Test result: