OSPF (on WAN) and outbound policies interworking

Hi,

Could please somebody explain how exactly a combination of OSPF routes from WAN interfaces and rules from outbound policies are working together ? As I see now (BR2 Pro, 8.5.0), as soon as default route is received via OSPF on WAN interface - router start ignoring all outbound policies and sends all traffic using OSPF default route only.

The problem I’m trying to solve - use router’s own connectivity to Internet (for example, Starlink, cellular and so on) as long as possible, but when this connectivity finally fail - route all traffic via some “last resort gateway”. There could be several “last resort gateways” with different IP addresses behind the same WAN interface. That’s why I can’t use static default gateway and trying to play with OSPF.

I’m quite new to Peplink equipment and that’s why I have a strong feeling that I may miss some core concepts while trying to use approach from, let’s say, Cisco world :slight_smile: So any help is really appreciated.

Use different wan connection. From what i experience Peplink wan connection usually use 1 wan for 1 internet access. If you want to use 1 wan for multiple source buy virtual wan license (note : it will use another port) . That way you can add vlan for different ip that will act as different wan. The routing itself like rip, bgp and other mainly use for lan. Pepvpn use ospf for tunneling.

It’s different from cisco world, but there is much more benefit that cisco hard to do. like wan smoothing, fec, and other algorithm for outbond policy.