feat: outbound groups

This commit is contained in:
fufsob committed 2026-09-29 13:01:31 +00:00
1 parent c42bcb2f4f
commit fa0015d829
35 files changed
+2444 -210

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
{
services.proxy-suite = {
enable = true;
proxy = {
enable = true;
outbounds = [
{ tag = "de-vps"; urlFile = "/run/secrets/de-vps-url"; }
{ tag = "nl-vps"; urlFile = "/run/secrets/nl-vps-url"; }
];
groups.eu.outbounds = [ "de-vps" "nl-vps" ]; # de-vps first, nl-vps when it fails
};
};
}
+12
View File
@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
services.proxy-suite.proxy = {
enable = true;
subscriptions = [ { tag = "provider"; urlFile = "/run/secrets/provider-sub"; } ];
groups.fast = {
subscriptions = [ "provider" ]; # every entry the subscription holds
match = [ "de-*" ]; # and every outbound whose tag matches
strategy = "urltest";
};
};
}
+8
View File
@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
services.proxy-suite.proxy = {
enable = true;
selection = "failover";
priority = { eu = 10; warp = 20; };
};
}
+13
View File
@@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
services.proxy-suite = {
enable = true;
amneziaWg.enable = true;
proxy.enable = true;
warp = {
enable = true;
asOutbound = "interface";
instances = 2; # warp-1 (keeps an existing registration) and warp-2
};
};
}
+12
View File
@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
services.proxy-suite.warp = {
enable = true;
asOutbound = "interface";
devices = {
warp-a = { };
warp-b.endpoint = "162.159.193.10:500";
};
group.strategy = "failover";
};
}