Point-to-Point mode OSPF with WireGuard met routing issue

Hi, Guys

Follow the article [OSPF over Wireguard with VyOS - Eliseo Martelli](https://OSPF over Wireguard with VyOS)
When I setup 3 VyOS routers , the ospf routing tables will automatically routing the WAN network range routing into the wireguard interface. then the wireguard connection will disconnected or packet loss. how to did let the WAN address automatically included into the OSPF routing table. ?

Here is my settings

Node 1 configure


set interfaces wireguard wg01 ip ospf network 'point-to-point'
set interfaces wireguard wg02 ip ospf network 'point-to-point'
set protocols ospf area 0.0.0.0 network '172.16.100.0/30'
set protocols ospf area 0.0.0.0 network '172.16.100.4/30'
set protocols ospf redistribute connected

SVR01 configuration

set interfaces wireguard wg01 ip ospf network 'point-to-point'
set interfaces wireguard wg03 ip ospf network 'point-to-point'
set protocols ospf area 0.0.0.0 network '172.16.100.0/30'
set protocols ospf area 0.0.0.0 network '172.16.100.8/30'
set protocols ospf redistribute connected

SVR02 configuration

set interfaces wireguard wg02 ip ospf network 'point-to-point'
set interfaces wireguard wg03 ip ospf network 'point-to-point'
set protocols ospf area 0.0.0.0 network '172.16.100.4/30'
set protocols ospf area 0.0.0.0 network '172.16.100.8/30'
set protocols ospf redistribute connected

Hi @echowings , I think you have to use more specific routes to your WG neighbours, as an example

set protocols static route x.x.x.x/32 next-hop y.y.y.y

where x.x.x.x/32 address to your WG peer connection and y.y.y.y - GW for WAN interface.

1 Like

Hi Dmitry
Thanks a lot! it works!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.