Skip to content

Create a wireguard docker container and socks5 the connection proxy to host

Notifications You must be signed in to change notification settings

zpoint/wireguard_socks5_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

Create a wireguard docker container and socks5 the connection proxy to host

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published