What's new

PBR rules going away

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Res Cogitans

New Around Here
I'm having a recurring problem with policy-based routing rules disappearing. My rules are set up by a simple openvpn client route-up script:

Code:
admin@RT-AC68U:/jffs/scripts# cat route-up.sh

#!/bin/sh

ip route add default via $route_vpn_gateway dev $dev table 42
ip rule add from 10.10.10.11 lookup 42

This works fine. The problem is that after a while, usually overnight, the ip rule just goes away:

Code:
admin@RT-AC68U:/jffs/scripts# ip rule
0:      from all lookup local
32765:  from 10.10.10.11 lookup 42
32766:  from all lookup main
32767:  from all lookup default
# --- overnight time gap here
admin@RT-AC68U:/jffs/scripts# ip rule
0:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default

The VPN connection stays up the whole time. Any ideas what might be going on?

3.0.0.4.376.48_1 on a RT-AC68U.

Thanks.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top