igancev / install-wireguard-docker

Bash script for simple and fast install wireguard vpn on ubuntu
MIT License
4 stars 3 forks source link

Just cool! #1

Open palansher opened 1 year ago

palansher commented 1 year ago

Thank you soo much for article and this simple solution!

Just, to avoid the error

Couldn’t connect to Docker daemon at http+docker://localhost - is it running?

you can add current user to docker group: sudo usermod -aG docker $USER

Also, pls consider in your acrtcle: how to use this Wireguard docker solution with browser - by some browser extension or using browser proxy settings.

Respect!

igancev commented 1 year ago

Greetings! I am very glad that my work has been useful for you.

you can add current user to docker group: sudo usermod -aG docker $USER

You are right, now the script works only from the root user. Other users must first be added to the docker group. The script does not pretend to be universal, but I will try to fix it.

Also, pls consider in your article: how to use this Wire guard docker solution with browser - by some browser extension or using browser proxy settings.

After starting wireguard on the client device, all traffic is wrapped through a vpn. If you want to let the browser traffic through a proxy, then you need to deploy a proxy server on the vps, make its settings in the browser in the proxy section. Wiregiard won't help here.

Simple way to up proxy server from docker is tinyproxy:

version: '3'
services:
  tinyproxy:
    image: vimagick/tinyproxy
    ports:
      - "8888:8888"

But this configuration not contain any auth, be careful