https://github.com/zpoint/wireguard_socks5_docker
Create a wireguard docker container and socks5 the connection proxy to host
https://github.com/zpoint/wireguard_socks5_docker
Last synced: 6 months ago
JSON representation
Create a wireguard docker container and socks5 the connection proxy to host
- Host: GitHub
- URL: https://github.com/zpoint/wireguard_socks5_docker
- Owner: zpoint
- Created: 2023-02-02T08:36:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T14:08:42.000Z (over 2 years ago)
- Last Synced: 2025-01-12T23:22:37.572Z (about 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wireguard SOCKS5 Proxy
Host <-> socks5 <-> Docker container <-> Wireguard
---
## Setup
Build the container
bash ./build.sh
## Usage
Pasted your `wg0.conf` config file in the `./config/wg0.conf`.
Consult your vpn vendor for config file, mine is [PureVPN](https://support.purevpn.com/article-categories/getting-started/linux)
Start the container and runs the server
bash ./start.sh
Test if it works on your **host** after starts the server
bash ./test.sh
Stop the container and stop the server
bash ./stop.sh
---
## Implementation
The container simply has an OpenVPN installation and a network interface `wg0` for it.
[Dante SOCKS Server](https://www.inet.no/dante/) is used. It listens on `eth0` (the network from the host PC) and connects to this `wg0` network (the OpenVPN network).
## Troubleshooting
Attach to container
bash ./shell.sh
Check `danted`'s log
vim /var/log/danted/danted.log
Check if `wg0` in `ifconfig` list, if not, manually start wireguard
sudo wg-quick up wg0
and stop
sudo wg-quick down wg0
to see the error output