mtrpoxy and socks5

This commit is contained in:
Lorenzo Carbonell 2024-03-24 13:06:12 +01:00
parent 1b500e928e
commit 6727103797
No known key found for this signature in database
GPG Key ID: B5E8FC9484B82CA9
6 changed files with 66 additions and 0 deletions

5
mtproxy/README.md Normal file
View File

@ -0,0 +1,5 @@
Para generar un nuevo secreto
```bash
head -c 16 /dev/urandom | xdd -ps
```

View File

@ -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

4
mtproxy/sample.env Normal file
View File

@ -0,0 +1,4 @@
SECRET=5f8cee25790f122f05fd4
WORKERS=1
MTPROTO_REPO_URL=https://github.com/TelegramMessenger/MTProxy
TZ=Europe/Madrid

26
socks5/README.md Normal file
View File

@ -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
```

15
socks5/docker-compose.yml Normal file
View File

@ -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"

3
socks5/sample.env Normal file
View File

@ -0,0 +1,3 @@
PROXY_USER=someuser
PROXY_PASSWORD=somepass
PROXY_PORT=8388