Setup wireguard config file (to use in file http_config.conf
in the next step)
Make sure it has the following in [Peer]
section
PersistentKeepalive = 25
git clone https://github.com/octeep/wireproxy
cd wireproxy
make
echo """
WGConfig=../wireguard_conf.conf
[http]
BindAddress = 127.0.0.1:25345
[http]
BindAddress = 127.0.0.1:25345
[Socks5] # To experiment
BindAddress = 127.0.0.1:25344
""" > http_config.conf
./wireproxy -c http_config.conf
With http proxy
curl -x http://127.0.0.1:25345 ifconfig.me
With sock5 proxy
curl -x socks5h://127.0.0.1:25344 ifconfig.me
For some reason, only the sock5 one works, but only once or twice and I have to wait for some time between the 2 requests.