router: policyrouting for tunneld IPv6 prefix via pre-router
This commit is contained in:
parent
85d1c14561
commit
87b8d2f906
@ -1,6 +1,15 @@
|
||||
{ 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.uplinks = {
|
||||
uplink-a.table = "20001";
|
||||
|
Loading…
Reference in New Issue
Block a user