Hi
First of all thank you for all your exceptional work!! It is highly appreciated!!
Now I suppose I have a configuration problem I fail to solve or find anybody running into the same problem on the internet.
Behaviour
I can set up docker-wireguard and it is working for one device at a time although several peers are specified in the docker compose file.
Expected Behaviour
I would like to provide a VPN solution for my family. Hence several people would simoutaneusly connect to my server using their individual config.
Config
wg0.conf
[Interface]
Address = 10.13.13.1
ListenPort = 51820
PrivateKey = <very-secret-key-1>
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
[Peer]
# peer_ELITEBOOKFP
PublicKey = <public-key-elitebookfp>
PresharedKey = <preshared-key-elitebookfp>
AllowedIPs = 10.13.13.6/32
[Peer]
# peer_URS
PublicKey = <public-key-urs>
PresharedKey = <preshared-key-urs>
AllowedIPs = 10.13.13.7/32
... 3 more
peer_ELITEBOOKFP.conf
[Interface]
Address = 10.13.13.6
PrivateKey = <private-key-interface-elitebookfp>
ListenPort = 51820
DNS = <mydns>
[Peer]
PublicKey = <public-key-peer-1>
PresharedKey = <preshared-key-elitebookfp>
Endpoint = <myip>:51820
AllowedIPs = 0.0.0.0/0
peer_URS.conf
[Interface]
Address = 10.13.13.7
PrivateKey = <private-key-urs>
ListenPort = 51820
DNS = <mydns>
[Peer]
PublicKey = <public-key-peer-1> --> same as in peer-ELITEBOOKFP.conf
PresharedKey = <preshared-key-urs>
Endpoint = <myip>:51820
AllowedIPs = 0.0.0.0/0
Suspects
I suspect there is a problem with the publicKey
in the peer config, as it is always the same.
Important
I have never touched these files. They were all autogenerated. I would not want to touch those files in order to keep everything automated.
Questions:
-
Is my suspicion correct. If yes, what can be done about it?
-
If that is not the problem: what is?
Thank you for your help
akrea