https://github.com/bsdf/wgproxy
WIREGUARD XXX-POSED as a socks5 proxy in a docker container
https://github.com/bsdf/wgproxy
Last synced: 6 months ago
JSON representation
WIREGUARD XXX-POSED as a socks5 proxy in a docker container
- Host: GitHub
- URL: https://github.com/bsdf/wgproxy
- Owner: bsdf
- License: gpl-3.0
- Created: 2022-02-13T23:46:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-15T20:30:41.000Z (over 4 years ago)
- Last Synced: 2025-05-14T02:10:30.307Z (about 1 year ago)
- Language: Dockerfile
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
wgproxy
=======
this container exposes a wireguard connection through a socks5 proxy.
[kizzx2/docker-wireguard-socks-proxy](https://github.com/kizzx2/docker-wireguard-socks-proxy)
rebased onto
[linuxserver/wireguard](https://github.com/linuxserver/docker-wireguard).
## cli
```sh
docker run -d --rm --name wgproxy \
--cap-add NET_ADMIN \
--cap-add SYS_MODULE \
--sysctl net.ipv4.conf.all.src_valid_mark=1 \
-v /lib/modules:/lib/modules \
-v /etc/wireguard/my-wireguard-config.conf:/config/wg0.conf \
-p 1080:1080 \
ghcr.io/bsdf/wgproxy:latest
```
## swarm
```yaml
version: "3.3"
secrets:
config:
file: /etc/wireguard/my-wireguard-config.conf
services:
app:
image: ghcr.io/bsdf/wgproxy:latest
ports:
- 1080:1080
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
volumes:
- /lib/modules:/lib/modules
secrets:
- source: config
target: /config/wg0.conf
deploy:
placement:
constraints: [ node.hostname==raspberrypi ]
```