mtrpoxy and socks5
This commit is contained in:
parent
1b500e928e
commit
6727103797
|
@ -0,0 +1,5 @@
|
|||
Para generar un nuevo secreto
|
||||
|
||||
```bash
|
||||
head -c 16 /dev/urandom | xdd -ps
|
||||
```
|
|
@ -0,0 +1,13 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
mtproxy:
|
||||
image: ghcr.io/dofamin/mtproxy-docker:main
|
||||
init: true
|
||||
container_name: mtproxy
|
||||
environment:
|
||||
- MTPROTO_REPO_URL
|
||||
- SECRET
|
||||
- WORKERS
|
||||
- TZ
|
||||
ports:
|
||||
- 8388:8889
|
|
@ -0,0 +1,4 @@
|
|||
SECRET=5f8cee25790f122f05fd4
|
||||
WORKERS=1
|
||||
MTPROTO_REPO_URL=https://github.com/TelegramMessenger/MTProxy
|
||||
TZ=Europe/Madrid
|
|
@ -0,0 +1,26 @@
|
|||
# Instalación
|
||||
|
||||
```
|
||||
git clone https://github.com/atareao/self-hosted.git
|
||||
cd self-hosted/socks5
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
El archivo `.env` tiene el siguiente contenido,
|
||||
|
||||
```bash
|
||||
PROXY_USER=yi9eiThei%qu3Ahv
|
||||
PROXY_PASSWORD=pequ5Ez,oo6io6ae
|
||||
PROXY_PORT=8388
|
||||
```
|
||||
|
||||
Cambia las credenciales. Por ejemplo, puedes utilizar `pwgen` para ello.
|
||||
|
||||
Recuerda que tienes que tener abierto el puerto que definas en tu firewall.
|
||||
|
||||
Por último, simplemente,
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
version: "3.7"
|
||||
|
||||
services:
|
||||
socks5:
|
||||
image: serjs/go-socks5-proxy
|
||||
init: true
|
||||
container_name: socks5
|
||||
environment:
|
||||
- PROXY_USER
|
||||
- PROXY_PASSWORD
|
||||
- PROXY_PORT
|
||||
volumes:
|
||||
- ./config.json:/etc/shadowsocks-rust/config.json
|
||||
ports:
|
||||
- "8388:8388"
|
|
@ -0,0 +1,3 @@
|
|||
PROXY_USER=someuser
|
||||
PROXY_PASSWORD=somepass
|
||||
PROXY_PORT=8388
|
Loading…
Reference in New Issue