# SOCKS5 with login/password auth
$ docker compose -f socks5.yml up -d
# WireGuard with QR code
$ docker compose -f wireguard.yml up -d
$ docker logs wireguard
# OpenVPN with ovpn file
$ docker compose -f openvpn.yml up -d
$ docker cp openvpn:/opt/Dockovpn_data/clients/$ID/client.ovpn ./client.ovpn
# Shadowsocks with login/password auth
$ docker compose -f shadowsocks.yml up -d
Last active
September 3, 2024 20:01
-
-
Save binakot/17f0ead65152de46f52c2d07d58c6287 to your computer and use it in GitHub Desktop.
PROXY + VPN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
volumes: | |
openvpn_config: | |
driver: local | |
services: | |
openvpn: | |
image: alekslitvinenk/openvpn:latest | |
container_name: openvpn | |
restart: unless-stopped | |
environment: | |
- HOST_ADDR=$HOST_IP | |
volumes: | |
- openvpn_config:/opt/Dockovpn_data | |
ports: | |
- 1194:1194/udp | |
cap_add: | |
- NET_ADMIN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
shadowsocks: | |
image: shadowsocks/shadowsocks-libev:latest | |
container_name: shadowsocks | |
restart: unless-stopped | |
ports: | |
- 8388:8388 | |
environment: | |
- PASSWORD=$PASSWORD | |
- METHOD=aes-256-gcm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
socks5: | |
image: xkuma/socks5:latest | |
container_name: socks5 | |
restart: unless-stopped | |
environment: | |
- PROXY_USER=$USER | |
- PROXY_PASSWORD=$PASSWORD | |
- PROXY_SERVER=0.0.0.0:1080 | |
ports: | |
- 1080:1080/tcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
volumes: | |
wireguard_config: | |
driver: local | |
wireguard_modules: | |
driver: local | |
services: | |
wireguard: | |
image: lscr.io/linuxserver/wireguard:latest | |
container_name: wireguard | |
restart: unless-stopped | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Europe/Moscow | |
- SERVERURL=$HOST_IP | |
- PEERS=1 | |
- PEERDNS=9.9.9.9 | |
volumes: | |
- wireguard_config:/config | |
- wireguard_modules:/lib/modules | |
ports: | |
- 51820:51820/udp | |
cap_add: | |
- NET_ADMIN | |
- SYS_MODULE | |
sysctls: | |
- net.ipv4.conf.all.src_valid_mark=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment