1
0

router: policyrouting for tunneld IPv6 prefix via pre-router

This commit is contained in:
clerie 2022-07-17 14:04:54 +02:00
parent 85d1c14561
commit 87b8d2f906

View File

@ -1,6 +1,15 @@
{ config, pkgs, ... }: { 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; }
];
clerie.uplink-selector.enable = true; clerie.uplink-selector.enable = true;
clerie.uplink-selector.uplinks = { clerie.uplink-selector.uplinks = {
uplink-a.table = "20001"; uplink-a.table = "20001";