This repository contain a simple docker setup for wireguard.
blat 2a309d4704 init | 1 year ago | |
---|---|---|
docker | 1 year ago | |
resources | 1 year ago | |
.env | 1 year ago | |
.gitignore | 1 year ago | |
.wg-docker_bash-completion | 1 year ago | |
Dockerfile | 1 year ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
TODO.md | 1 year ago | |
docker-compose.env.yml | 1 year ago | |
docker-compose.yml | 1 year ago | |
entrypoint.sh | 1 year ago | |
install.sh | 1 year ago | |
wg-docker | 1 year ago |
This repository contain a simple docker setup for wireguard.
requirements: debian|alpine, docker, wireguard, firefox, thunderbird, proxychains space requirements:
alpine, docker images:
debian, docker images:
docker build . -t wg-docker/alpine:0.0.1
docker build . -f Dockerfile.debian -t wg-docker/debian:0.0.1
The usage would be similar to wg-quick
usage: wg-docker [up|shell|firefox|thunderbird] [profile_name]
wg-docker up lattuga
wg-docker firefox lattuga
wg-docker shell lattuga
for now start the container and then proxychains every command
wg-docker up lattuga
proxychains git clone ...
ssh -ND 9999 root@172.20.0.10
-N : Do not execute a remote command. This is useful for just forwarding ports.
-D : Specifies a local “dynamic” application-level port forwarding.
This works by allocating a socket to listen to port on the local
side, optionally bound to the specified bind_address. Whenever a
connection is made to this port, the connection is forwarded over
the secure channel, and the application protocol is then used to
determine where to connect to from the remote machine. Currently
the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
as a SOCKS server.
In Firefox in about:profiles create a new profile and then go to 'settings', 'network settings' to manually setup the proxy to your choosen socks_port.
Use of healthcheck as scheduler to avoid installing crontab, and change configuration file every while (better would be a change of vpn-endpoint every firefox profile restart)
### Paste your public ssh key in ./authorized_keys or alternatively PermitRootLogin with password and initialize a password
sed -ie 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config;
echo 'test' | chpasswd
service ssh restart
Often I'm browsing some sites through torbrowser and I need at the same time to visit other sites, related to different contexts, and I prefer to open those pages with another network profile, es. via vpn.
I'm currently using mullvad as vpn provider so in this repository there are names of files related to mullvad, but it can be applied easily to other vpns providers that offer wireguard.
Common ways to visit a site that doesn't allow traffic from tor:
1.3G Whoonix size