1. One approach is to use Cloudflare WARP, running WARP in proxy mode instead of taking over global traffic.
warp-cli register
# WARP listens on local port 11111
warp-cli set-proxy-port 11111

# WARP proxy mode
warp-cli set-mode proxy

# Always on
warp-cli enable-always-on
https_proxy=socks5://127.0.0.1:11111 http_proxy=socks5://127.0.0.1:11111 go run main.go
  1. Another approach is to use Cloudflare Workers, with requests forwarded by Workers.
export default {
	async fetch(request: Request): Promise {
		/**
		 * Replace `remote` with the host you wish to send requests to
		 */
		const remote = "https://example.com";

		return await fetch(remote, request);
	},
};