policy-based network routes not applied after major nixpkgs updates #60

Open
opened 2025-03-04 13:37:39 +08:00 by sb10q · 3 comments
Owner

Nixos should run these automatically but does not:

ip route add 192.168.12.0/24 dev wlp6s0 table 1
ip route add 192.168.12.0/24 dev wlp6s0 table 2
Nixos should run these automatically but does not: ``` ip route add 192.168.12.0/24 dev wlp6s0 table 1 ip route add 192.168.12.0/24 dev wlp6s0 table 2 ```
esavkin was assigned by sb10q 2025-03-04 20:43:41 +08:00
Contributor

What are the symptoms? From what I see in the systemd scripts, it does apply, but it does not appear in the routes table. Is that it?

What are the symptoms? From what I see in the systemd scripts, it does apply, but it does not appear in the routes table. Is that it?
Author
Owner

What are the symptoms?

E.g. Mattermost inaccessible while connected to the wifi (since the wifi client may choose the HKBN IP address which requires policy-based routing on the server).

> What are the symptoms? E.g. Mattermost inaccessible while connected to the wifi (since the wifi client may choose the HKBN IP address which requires policy-based routing on the server).
esavkin was unassigned by sb10q 2025-04-21 03:50:14 +08:00
atse was assigned by sb10q 2025-08-10 18:06:23 +08:00
Author
Owner

After renumbering

ip route add 192.168.0.0/24 dev wlp6s0 table 1
ip route add 192.168.0.0/24 dev wlp6s0 table 2
After renumbering ``` ip route add 192.168.0.0/24 dev wlp6s0 table 1 ip route add 192.168.0.0/24 dev wlp6s0 table 2 ```
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: M-Labs/it-infra#60