Skip to content

Instantly share code, notes, and snippets.

@CyprienRicque
Last active August 5, 2024 21:01
Show Gist options
  • Save CyprienRicque/6f071b2c99c5b59593f4fefff3cd9f16 to your computer and use it in GitHub Desktop.
Save CyprienRicque/6f071b2c99c5b59593f4fefff3cd9f16 to your computer and use it in GitHub Desktop.
Wireproxy with http

Wireguard config

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

Wireproxy

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

Get using the proxy

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
@CyprienRicque
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment