libp2p-proxy
http&socks5 proxy service on libp2p peers.
libp2p-proxy creates a http and socks5 proxy service using libp2p peers.
Build
> cd libp2p-proxy
> make build
Install
go install github.com/p2pdao/libp2p-proxy/cmd/libp2p-proxy@latest
Usage
- Generate peer keys for server and client:
libp2p-proxy -key
- Update server.json with server peer key and start remote peer first with:
libp2p-proxy -config server.json
- Then update client.json with server peer multiaddress and start the local peer with:
libp2p-proxy -config client.json
Then you can do something like:
export http_proxy=http://127.0.0.1:1082 https_proxy=http://127.0.0.1:1082
or:
export http_proxy=socks5://127.0.0.1:1082 https_proxy=socks5://127.0.0.1:1082
then:
curl "https://github.com"