I have been using Vyos 1.3 rolling release up until this point and wireguard has been working well. Since the website isn’t offering 1.3 anymore, I decided to try 1.4 but with the same config… Wireguard is not working. Wireguard is the basis of the use of Vyos in this case.
$ show interfaces wireguard
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
wg01 10.11.19.1/32 u/u
$ show interfaces wireguard detail
wg01: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 10.11.19.1/32 scope global wg01
valid_lft forever preferred_lft forever
inet6 fe80::f588:4ff:fe11:5044/64 scope link
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
92 1 0 0 0 0
TX: bytes packets errors dropped carrier collisions
1403656 9490 0 485 0 0
$ sudo wg
interface: wg01
public key: 95xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2C/q2o=
private key: (hidden)
listening port: 48404
peer: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6EQ=
endpoint: <endpointIP>:443
allowed ips: 10.11.0.0/24
latest handshake: 16 hours, 39 minutes, 30 seconds ago
transfer: 92 B received, 1.34 MiB sent
persistent keepalive: every 25 seconds
Like you can see, the handshake has not been renewed for over 16 hours… that’s when the OS was last restarted. For some reason the initial handshake gets established and then nothing. No traffic gets passed through the tunnel.
Thanks for looking into this. I’m pinging 10.11.0.1. The two clients are not in the same subnet.
Server: 10.11.0.1/24
Client 10.11.19.1/32
Wireguard doesn’t require client’s to be on same subnet… same behavior as ppp connections.
I added a 1.3 image to the installation and booted from it… Didn’t get it to work. Took same image and installed from scratch and then in started working. I have made myself a checklist and maybe some configuration got lost when I applied some configuration to 1.4 that I didn’t notice that got lost, don’t know. But routes and keys were fine. Could be order of operation in 1.4 but I don’t know how to debug.
It only worked for a very short while (few seconds) on 1.3 and then stopped working. The local network seems to be doing something unexpected. I tried the same setup in a different location using 1.4 and it worked fine. This issue is invalid. Sorry for wasting your time.