mirror of
https://github.com/atareao/self-hosted.git
synced 2024-06-03 06:15:18 +02:00
mtrpoxy and socks5
This commit is contained in:
parent
1b500e928e
commit
6727103797
5
mtproxy/README.md
Normal file
5
mtproxy/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Para generar un nuevo secreto
|
||||||
|
|
||||||
|
```bash
|
||||||
|
head -c 16 /dev/urandom | xdd -ps
|
||||||
|
```
|
13
mtproxy/docker-compose.yml
Normal file
13
mtproxy/docker-compose.yml
Normal 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
4
mtproxy/sample.env
Normal 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
26
socks5/README.md
Normal 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
15
socks5/docker-compose.yml
Normal 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
3
socks5/sample.env
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PROXY_USER=someuser
|
||||||
|
PROXY_PASSWORD=somepass
|
||||||
|
PROXY_PORT=8388
|
Loading…
Reference in New Issue
Block a user