DEV Community

Mehdi mFat
Mehdi mFat

Posted on • Edited on

How to use Cloudflare Warp as a socks proxy on your local computer

Cloudflare Warp is a wonderful VPN. It's very fast and with the Plus account you can enjoy virtually unlimited traffic.

One great thing about Warp is that you can run it in proxy mode. This is useful if you don't want your entire traffic to go through the Warp network.

In order to use Cloudflare warp in socks proxy mode you can use Wireproxy.

Wireproxy is a wireguard client that exposes itself as a socks5/http proxy or tunnels.

There is a very handy script to automatically install and configure Wireproxy with Cloudflare Warp on either a vps or your local machine.

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/api.sh && bash api.sh [option]

Enter fullscreen mode Exit fullscreen mode

Just run and follow the steps. In the end you'll have a locally running socks proxy that you can use in your web browsers, Telegram and other apps.

The default host:port is 127.0.0.1:40000.

The script creates a systemd service for controlling wireproxy.

To change Wireguard/warp parameters you can edit this files:

nano /etc/wireguard/proxy.conf
Enter fullscreen mode Exit fullscreen mode

For example you can change the dns to 162.159.36.1 (recommended) and modify the endpoint as well.

To find a fast endpoint you can run this script as root:

wget -N https://gitlab.com/Misaka-blog/warp-script/-/raw/main/files/warp-yxip/warp-yxip.sh && bash warp-yxip.sh
Enter fullscreen mode Exit fullscreen mode

If you prefer to run warp in VPN mode instead of proxy mode, check out the following:

https://gitlab.com/Misaka-blog/warp-script

WGCF:https://replit.com/@misaka-blog/wgcf-profile-generator
WARP-GO:https://replit.com/@misaka-blog/warpgo-profile-generator
Sing-box:https://replit.com/@misaka-blog/warpgo-sbfile-generator

Top comments (0)