Closed jaegerschnitzel closed 3 years ago
[Interface]
Address = 10.20.0.3/24
PrivateKey = xxxx
ListenPort = 51820
[Peer]
PublicKey = xxxxx
Endpoint = <iphere>:54321
AllowedIPs = 10.20.0.0/24, 10.1.0.0/16
That is my config, i would widen your allowed ips, also make sure it includes the whole range of your connections subnet. Notice how I allow the whole /16 to be routed. Also, I route the whole subnet for my address
Also your endpoint has no ip in front the port?
Also please update your on_boot.d script to the latest version in master. You'll notice the docker lable changed
One last thing, make sure you can connect to your endpoint and that all the firewall rules are open on the target. Use nc or telnet, your tool of choice to open a connection and send garbage over it.
Sorry my endpoint has an IP in front of the port, this was a display problem with Markdown ;) Widen allowed IPs and update on_boot.d script didn't help. Yes I verified that my firewall rules are in place and my request via nc arrives.
I looks as if Wireguard does not create the wg0 interface after executing "podman exec -it wireguard wg-quick up wg0".
send me your latest config
also does syslog have any stuff in the container or host?
Not sure if this is the same problem, but I found I was having a similar issue. I found that although podman exec -it wireguard wg-quick up wg0
would show the correct "expected" output what was actually required was the following:
podman exec -it wireguard bash
then
wg-quick up wg0
Alternatively, I found that you could simply run podman exec wireguard wg-quick up wg0
. For me, there seemed to be two issues that came up. 1) My configuration file was not named wg0.conf. 2) I had a pair of configuration files for multiple interfaces. I need to dig into this further, but I found I simply appended podman exec wireguard wg-quick up <interface name>
for each interface in the /mnt/data/on_boot.d/20-wireguard.sh file.
I am unable to get Wireguard running. The logs don't show any errors.
To Reproduce Steps to reproduce the behavior:
Expected behavior See the Wireguard Interface
UDM Information
Additional context
Here is my wg0.conf: