Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
smolgroot committed Sep 24, 2023
1 parent 57aae8f commit cde72cc
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
# kubo-socks-plugin
A Kubo plugin allowing to use SOCKS proxy over the IPFS network

## Build

You can build the plugin using

```
go build . -o kubo-socks
```

And then run it with

```
# Be sure to have a kubo node already running
./kubo-socks
```

## SOCKS5 Proxy

The plugin is running a local SOCKS5 proxy on port `tcp/1080`.
It is not supposed to be used as it, but buy a remote client coming from another `kubo-socks` node.

## API

The plugin serves an HTTP API that can be requested from the frontend

- GET `/ping` ↔ Just ping the backend
- GET `/streams` ↔ List all active libp2p streams on the Kubo node
- GET `/listeners` ↔ List all listeners on the Kubo node
- GET `/peers` ↔ Show directly connected peers of Kubo node
- GET `/forward/<nodeID>` ↔ Open a port locally listening to SOCKS5 clients and forwarding connections to the node <nodeID>
- GET `/streams/close` ↔ Close **all** libp2p streams on the Kubo node
- GET `/id` ↔ Return the local nodeID

## We're hacking on IPFS <3

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)

0 comments on commit cde72cc

Please sign in to comment.