Just tried to get wireguard up and running on my OMV 5. Used the guide from the forum and Portainer 2.11.1. I have the following error and google is showing any useful info on this error.
Code
Deployment error
failed to deploy a stack:
Container wireguard Creating Container wireguard Created Container wireguard Starting Error response from daemon:
driver failed programming external connectivity on endpoint wireguard (9a47df36fabb47ec02da8d928a3d6469a5e2872b413594a138018e4e6f0d5503):
Error starting userland proxy: listen udp4 0.0.0.0:51820: bind: address already in use
Below is my stack in portainer:
Code
version: "2.1"
services:
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000 #See point 1.
- PGID=100 #See point 1.
- TZ=America/New_York #Should be adjusted according to your location
- SERVERURL=MyextIP #See point 2.
- SERVERPORT=51820 #To change see next post
- PEERS=2 #See point 2. Number of clients you want to configure
- PEERDNS=auto
- INTERNAL_SUBNET=10.13.13.0 #Only change if it conflicts
- ALLOWEDIPS=0.0.0.0/0
volumes:
- /srv/dev-disk-by-uuid-1c0dc0b4-d37c-4a43-b9ed-597a8dd4f64f/Docker-Config:/config #See point 1.
- /srv/dev-disk-by-uuid-1c0dc0b4-d37c-4a43-b9ed-597a8dd4f64f/Docker-Config:/lib/modules
ports:
- 51820:51820/udp #To change see next post
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
Alles anzeigen
I added the port forwarding as follows:
Code
# Service Name External Port External IP Address Internal Port Internal IP Address
3 Wireguard UDP: 51820 Any UDP: 51820 OMV server IP
Any guesses as to what is wrong?