Hi,
I have after 2 hours of messing around with wireguard on VyOS 1.2.0 and i cannot get VyOS routers to connect to eachother anymore after updating.
The routers work fine with non vyos routers/clients such as the official android app but as soon as i try to replicate the config for the 2 VyOS routers i am unable to get them to even ping between eachother over the tunnel.
Setup used with config, route table and tcpdumps:
**router 1 - vals1me2dk** Wireguard Config set interfaces wireguard wg3 address '10.0.90.1/24' set interfaces wireguard wg3 description 'glos1ce1dk' set interfaces wireguard wg3 peer glos1ce1dk allowed-ips '10.0.0.0/8' set interfaces wireguard wg3 peer glos1ce1dk allowed-ips '172.20.1.0/24' set interfaces wireguard wg3 peer glos1ce1dk endpoint '85.204.X.X:54321' set interfaces wireguard wg3 peer glos1ce1dk pubkey 'secret=' set interfaces wireguard wg3 port '54321' set protocols static interface-route 10.0.1.0/24 next-hop-interface wg3 set protocols static interface-route 10.0.100.0/24 next-hop-interface wg3 **ROUTE TABLE - vals1me2dk** fma@vals1me2dk:~$ show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route S>* 0.0.0.0/0 [1/0] via 83.151.X.X, eth0, 01:49:54 S>* 10.0.1.0/24 [1/0] is directly connected, wg3, 01:49:55 C>* 10.0.90.0/24 is directly connected, wg3, 01:49:57 S>* 10.0.100.0/24 [1/0] is directly connected, wg3, 01:49:55 C>* 10.0.190.0/24 is directly connected, wg1, 01:49:57 S>* 10.0.200.0/24 [1/0] is directly connected, wg1, 01:49:54 C>* 10.20.30.0/24 is directly connected, eth1, 01:50:01 S>* 10.201.201.0/24 [1/0] is directly connected, wg2, 01:49:54 C>* 10.202.202.0/24 is directly connected, wg2, 01:49:58 C>* 83.151.X.X/27 is directly connected, eth0, 01:50:02 S>* 172.20.1.0/24 [1/0] is directly connected, wg2, 01:49:54 S>* 192.168.1.0/24 [1/0] is directly connected, wg2, 01:49:54 fma@vals1me2dk:~$ sudo ip route default via 83.151.X.X dev eth0 proto static metric 20 10.0.1.0/24 dev wg3 proto static metric 20 10.0.90.0/24 dev wg3 proto kernel scope link src 10.0.90.1 10.0.100.0/24 dev wg3 proto static metric 20 10.0.190.0/24 dev wg1 proto kernel scope link src 10.0.190.1 10.0.200.0/24 dev wg1 proto static metric 20 10.20.30.0/24 dev eth1 proto kernel scope link src 10.20.30.40 10.201.201.0/24 dev wg2 proto static metric 20 10.202.202.0/24 dev wg2 proto kernel scope link src 10.202.202.1 83.151.X.X/27 dev eth0 proto kernel scope link src 83.151.X.X 172.20.1.0/24 dev wg2 proto static metric 20 192.168.1.0/24 dev wg2 proto static metric 20 **TCPDUMP - vals1me2dk** fma@vals1me2dk:~$ sudo tcpdump -i eth0 | grep 54321 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes 00:26:01.156016 IP 83.151.X.X.54321 > customer-85-204-X-X.ip4.gigabit.dk.54321: UDP, length 148 00:26:06.532024 IP 83.151.X.X.54321 > customer-85-204-X-X.ip4.gigabit.dk.54321: UDP, length 148 ------------------------------------------------------------------------------------------------ **router 2 - glos1ce1dk** Wireguard Config set interfaces wireguard wg3 address '10.0.100.1/24' set interfaces wireguard wg3 description 'vals1me2dk' set interfaces wireguard wg3 peer vals1me2dk allowed-ips '10.0.0.0/8' set interfaces wireguard wg3 peer vals1me2dk allowed-ips '172.20.1.0/24' set interfaces wireguard wg3 peer vals1me2dk endpoint '83.151.X.X:54321' set interfaces wireguard wg3 peer vals1me2dk pubkey 'secret=' set interfaces wireguard wg3 port '54321' set protocols static interface-route 10.0.0.0/8 next-hop-interface wg3 set protocols static interface-route 10.0.90.0/24 next-hop-interface wg3 **ROUTE TABLE - glos1ce1dk** fma@glos1ce1dk:~$ show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric, > - selected route, * - FIB route S>* 0.0.0.0/0 [1/0] via 85.204.X.X, bond0.200, 01:48:46 S>* 10.0.0.0/8 [1/0] is directly connected, wg3, 01:48:47 C>* 10.0.1.0/24 is directly connected, bond0.101, 01:48:49 S>* 10.0.90.0/24 [1/0] is directly connected, wg3, 01:48:47 C>* 10.0.100.0/24 is directly connected, wg3, 01:48:47 C>* 85.204.X.X/26 is directly connected, bond0.200, 01:48:49 fma@glos1ce1dk:~$ sudo ip route default via 85.204.X.X dev bond0.200 proto static metric 20 10.0.0.0/8 dev wg3 proto static metric 20 10.0.1.0/24 dev bond0.101 proto kernel scope link src 10.0.1.1 10.0.90.0/24 dev wg3 proto static metric 20 10.0.100.0/24 dev wg3 proto kernel scope link src 10.0.100.1 85.204.X.X/26 dev bond0.200 proto kernel scope link src 85.204.X.X **TCPDUMP - glos1ce1dk** fma@glos1ce1dk:~$ sudo tcpdump -i bond0.200 | grep 54321 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on bond0.200, link-type EN10MB (Ethernet), capture size 262144 bytes 00:25:47.901837 IP customer-85-204-X-X.ip4.gigabit.dk.54321 > 83.151.X.X.54321: UDP, length 148 00:25:53.021926 IP customer-85-204-X-X.ip4.gigabit.dk.54321 > 83.151.X.X.54321: UDP, length 148
I am kinda at a loss for a solution here since it used to work with above config.
I have also tried rebooting both routers and removing reapplying the config.