Skip to content

PBR does not apply rules to the restarted interface #56

@swing-nn

Description

@swing-nn

PBR 1.2.1-r21 , OpenWRT 24.10.4
OpenVPN multiple clients with fixed device names.

Occasionally, one of two ovpn interfaces restarts on a link loss that causes PBR not applying rules to it.

In the log, PBR notes it applies rules

Fri Nov  7 11:07:20 2025 daemon.notice netifd: Interface 'whr' is enabled
Fri Nov  7 11:07:20 2025 daemon.notice openvpn(whr_kk)[4069]: net_addr_v4_add: 10.245.0.2/24 dev tun1
Fri Nov  7 11:07:20 2025 daemon.notice netifd: Network device 'tun1' link is up
Fri Nov  7 11:07:20 2025 daemon.notice netifd: Interface 'whr' has link connectivity
Fri Nov  7 11:07:20 2025 daemon.notice netifd: Interface 'whr' is setting up now

Fri Nov  7 11:07:20 2025 daemon.notice netifd: Interface 'whr' is now up

Fri Nov  7 11:07:21 2025 user.notice firewall: Reloading firewall due to ifup of whr (tun1)
Fri Nov  7 11:07:23 2025 user.notice pbr [14083]: Processing environment (on_interface_reload) [✓]
Fri Nov  7 11:07:23 2025 user.notice pbr [14083]: Reloading routing for 'whr/tun1/10.245.0.2' [✓]

whereas it looks as

Image Image

PBR restart is required as a workaround. On PBR restart all rules are being properly applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions