feat: split tunnel THU TUNA mirror through mullvad

This commit is contained in:
Youwen Wu 2025-07-25 13:09:23 +08:00
parent 6ea5b24de4
commit 05321b4ed8
Signed by: youwen
GPG key ID: 865658ED1FE61EC3

View file

@ -50,6 +50,22 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.openssh.enable = true; services.openssh.enable = true;
networking.nftables = {
enable = true;
ruleset = ''
define EXCLUDED_IPS = {
101.6.15.130
}
table inet excludeTraffic {
chain excludeOutgoing {
type route hook output priority 0; policy accept;
ip daddr $EXCLUDED_IPS ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
}
}
'';
};
networking.firewall = { networking.firewall = {
enable = true; enable = true;
allowedTCPPorts = universalAllowedPorts; allowedTCPPorts = universalAllowedPorts;