Wireguard: Two containers (one server, one client) on the same host? #37
Replies: 4 comments
-
|
Yes you can. You can also add the client conf to the server container as a secondary config. The readme explains how it's handled. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your quick answer. I read the README beforehand already multiple times but did not find an explanation. It says in Client Mode:
That's why I thought I have to use two containers as my server container of course has this variable set. So the question concerning two containers mainly was because of the port which would be used for both containers, and I would guess that this would lead to problems. But if there is a way to use just one container, this would be my favourite approach. |
Beta Was this translation helpful? Give feedback.
-
|
The paragraph right above Client Mode section addresses multiple configs. You can drop the config you get from the other server in and it will be activated. Logs will tell you what's going on. |
Beta Was this translation helpful? Give feedback.
-
|
I invested some hours now into this but can't get it to work. I always get the following error when starting the container on the homelab server: wg1 is the client conf file which I did put into wg_confs. This is the wg1 conf file: I literally searched everywhere, but 10.100.0.0/24 is not anywhere used, neither on the host itself nor in any of the docker networks. What could be the problem? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running a Wireguard container as a server in my homelab since quite some time. Now I would like to run another Wireguard container that acts as a client to establish an outgoing connection from my homelab to a VPS on the internet. Can I run two Wireguard Containers on the same host?
Beta Was this translation helpful? Give feedback.
All reactions