https://github.com/onionj/simple-proxy
WebSocket Multiplexing Proxy
https://github.com/onionj/simple-proxy
Last synced: about 1 month ago
JSON representation
WebSocket Multiplexing Proxy
- Host: GitHub
- URL: https://github.com/onionj/simple-proxy
- Owner: onionj
- License: gpl-3.0
- Created: 2024-04-16T10:04:40.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-16T11:53:18.000Z (about 1 year ago)
- Last Synced: 2024-04-16T13:56:36.265Z (about 1 year ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# WebSocket Multiplexing Proxy
## Without TLS _(It's not safe)_:
### Run Server
```bash
./simpleproxy -server -bind :8080 -token mypass1234
```### Run client
```bash
./simpleproxy -client -bind :1080 -server-address ws://127.0.0.1:8080 -token mypass1234
```## With TLS
You have to get an **SSL/TLS certificate**, you can use **Certbot**; Certbot is a free, open source software tool for automatically using Let's Encrypt certificates on manually-administrated websites to enable HTTPS
On a linux distribute run this commands:
```bash
sudo apt install certbot
sudo certbot certonly --standalone --agree-tos -d [YOUR DOMAIN]
```**Certbot** give you public-key (`fullchain.pem`) and private-key (`privkey.pem`), now use them to run **simple proxy** with SSL/TLS support.
### Run Server
```bash
./simpleproxy -server -bind :8080 -token mypass1234 -public-key /etc/letsencrypt/live/[YOUR DOMAIN]/fullchain.pem -private-key /etc/letsencrypt/live/[YOUR DOMAIN]/privkey.pem
```### Run client
```bash
./simpleproxy -client -bind :1080 -server-address wss://[YOUR DOMAIN]:8080 -token mypass1234
```On local system, **Simple Proxy** run's socks4, socks5 and http proxy on port 1080