1
0
vcp-bula-nixfiles/hosts/router/uplink-selector.nix

19 lines
445 B
Nix
Raw Normal View History

2022-07-15 01:16:51 +02:00
{ config, pkgs, ... }:
{
networking.localCommands = ''
ip -6 route add default via 2a01:4f8:1c0c:8221::25 dev net-services table 20003
'';
clerie.policyrouting.enable = true;
clerie.policyrouting.rules6 = [
{ rule = "from 2a01:4f8:1c0c:8221::/64 lookup 20003"; prio = 19000; }
];
2022-07-15 01:16:51 +02:00
clerie.uplink-selector.enable = true;
clerie.uplink-selector.uplinks = {
uplink-a.table = "20001";
uplink-b.table = "20002";
};
}