This guide shows how to set up Cloudflare WARP in Termux and expose it as a local SOCKS5 proxy using wireproxy.
- Termux installed from F-Droid: https://f-droid.org/packages/com.termux/
- A working internet connection
- Basic familiarity with Termux commands
Run these commands one by one:
pkg update && pkg upgrade -y
pkg install golang git -y
termux-setup-storageClone the repository and build the binary:
git clone https://github.com/ViRb3/wgcf.git
cd wgcf
go build -o wgcf .
chmod +x wgcf
mv wgcf $PREFIX/bin/wgcfRun the following commands:
wgcf register
wgcf generateThis creates a file named wgcf-profile.conf.
cp wgcf-profile.conf ~/storage/downloads/Now open wgcf-profile.conf from your Downloads folder in a text viewer.
Create and edit the configuration file:
nano wireproxy.confPaste the following content into the file and fill in the values from wgcf-profile.conf:
[Interface]
PrivateKey = ...
Address = ...
DNS = 1.1.1.1, 1.0.0.1, 2606:4700:4700::1111, 2606:4700:4700::1001
MTU = ...
[Peer]
PublicKey = ...
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = ...
[Socks5]
BindAddress = 0.0.0.0:1180In Termux Nano, press:
CTRL+X- then press
Enter
go install github.com/windtf/wireproxy/cmd/wireproxy@latestAdd Go binaries to your PATH:
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.profile
. ~/.profile
hash -rRun:
wireproxy -c wireproxy.conf -d -s
termux-wake-lockYour SOCKS5 proxy should now be available at:
127.0.0.1:1180
To stop it, run:
pkill wireproxy
termux-wake-unlock
exit- Disable any kind of power optimization for Termux.
- Proxy will not work if VPN is active.