Friday, May 17, 2019

Policy Based Routing

Hi All,

I have an Edgemax Pro ubiquiti.

I have 3 IPSEC/GRE Tunnels setup with OSPF running. Works great.

However i have setup PBR Routing to go over one of the GRE links as a next hop, and works a treat!

However if i disable that Tunnel, OSPF Kicks in flips all the routes over to the next best route, (works fine) But the clients with PBR applied start using the main routing table which goes out directly to the internet. This is most likely by design, understood.

If i re-enable the tunnel OSPF again kicks in, and changes the routes back! great! However the PBR dont change and the devices carry on using table main and using the local ISP internet.

What are the commands i need to run in order to reset the routing? I have tried flushing conntrack to no avail.

In order to get the PBR routes back i have to restart the router. Annoying.

I have put this on the UBNT forums, but i wanted to get it out there on Reddit as well, as i know there are some good guys on the networking forums on reddit.

Cheers all!

Craig



No comments:

Post a Comment