The officially official Devuan Forum!

You are not logged in.

#1 Documentation » Wireguard server with Docker on Devuan » 2023-09-24 18:20:19

Koratsuki84
Replies: 0

This is a tutorial to get up and running Wireguard VPN on Devuan using Docker.

First, Docker:

sudo apt install -y docker.io docker-compose
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

Next, Composer:

cd /opt
nano docker-compose.yml

Inside:

version: "2.1"
services:
  wireguard:
    container_name: wg-manager
    image: perara/wg-manager
    restart: always
#    sysctls:
#      net.ipv6.conf.all.disable_ipv6: 0  # Required for IPV6
    cap_add:
      - NET_ADMIN
    ports:
       - 51800-51900:51800-51900/udp
       - 8888:8888
    volumes:
      - ./wg-manager:/config
    environment:
      HOST: 0.0.0.0
      PORT: 8888
      ADMIN_USERNAME: admin
      ADMIN_PASSWORD: MyS3curEPa$sw0Rd*-+
      WEB_CONCURRENCY: 1

Save and close.

Run it:

docker-compose up -d

On the browser:

http://URL_of_your_Server:8888

Remember:

ADMIN_USERNAME: admin
ADMIN_PASSWORD: MyS3curEPa$sw0Rd*-+

Enter web interface and generate as many profiles as you might need. Don't use IPv6 or enable it on compose, but in my experience, has some issues with connection. At least, on Linode.

Enabling it on KDE network manager over console:

nmcli connection import type wireguard file ./Downloads/wireguard_profile.conf

Done. Adjust and enjoy. Hope that helps. 😎👍

#2 Re: Devuan » Debian has fallen. What now? » 2020-09-21 19:25:26

Sad to read responses like that one. I hope common sense is not dead yet, and when @larsH gets home and drinks a beer[or a tea it doesn't matter], think about his way to write others.

We are not trolling, we just want to try to understand, and need a little help from de admins. Not trolling, we are not kids, come on...

Having a forum on the internet and doing support from a linux distro, comes with certain responsability and attachment to users, never forget that. Kind regards to all.

Board footer

Forum Software