feat: per-app awg and custom via
This commit is contained in:
43 files changed
+2674
-197
No files matched your search
@@ -2,10 +2,17 @@
|
||||
{
|
||||
services.proxy-suite = {
|
||||
enable = true;
|
||||
amneziaWg.enable = true; # no profiles needed
|
||||
userControl = {
|
||||
proxy.enable = true;
|
||||
amneziaWg = {
|
||||
enable = true;
|
||||
scopes = [ "services" "amneziaWg" "outbounds" ]; # optional: no sudo for these
|
||||
profiles.de = {
|
||||
configFile = "/run/secrets/de-awg.conf";
|
||||
asOutbound = "interface";
|
||||
};
|
||||
};
|
||||
perAppRouting = {
|
||||
enable = true;
|
||||
profiles = [ { name = "games"; outbound = "de"; } ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.proxy-suite = {
|
||||
enable = true;
|
||||
amneziaWg.enable = true; # no profiles needed
|
||||
userControl = {
|
||||
enable = true;
|
||||
scopes = [ "services" "amneziaWg" "outbounds" ]; # optional: no sudo for these
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.proxy-suite = {
|
||||
enable = true;
|
||||
proxy = {
|
||||
enable = true;
|
||||
outbounds = [ { tag = "nl"; urlFile = "/run/secrets/nl-url"; } ];
|
||||
};
|
||||
perAppRouting = {
|
||||
enable = true;
|
||||
tun.enable = true;
|
||||
profiles = [ { name = "game"; route = "tun"; outbound = "nl"; } ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user