feat: awg runtime add

This commit is contained in:
fufsob committed 2026-09-28 18:51:47 +00:00
1 parent cd3aa5a53f
commit 364bed8d51
39 files changed
+1581 -190

No files matched your search

+22
View File
@@ -66,6 +66,9 @@ Part of the [proxy-suite options reference](./index.md).
- [vpn](#services-proxy-suite-amneziawg-profiles-name-vpn)
- [vpnContainer](#services-proxy-suite-amneziawg-profiles-name-vpncontainer)
- [vpnFile](#services-proxy-suite-amneziawg-profiles-name-vpnfile)
- runtime
- [enable](#services-proxy-suite-amneziawg-runtime-enable)
- [interfaceName](#services-proxy-suite-amneziawg-runtime-interfacename)
- [serverUdpPorts](#services-proxy-suite-amneziawg-serverudpports)
- [toolsPackage](#services-proxy-suite-amneziawg-toolspackage)
- [userspacePackage](#services-proxy-suite-amneziawg-userspacepackage)
@@ -548,6 +551,25 @@ File with a vpn:// export\.
**Type:** null or string\
**Default:** `null`
<a id="services-proxy-suite-amneziawg-runtime-enable"></a>
## services\.proxy-suite\.amneziaWg\.runtime\.enable
Let ` proxy-ctl ` add configs and ` vpn:// ` links without a rebuild: ` proxy-ctl awg add `
for a global profile (root hosts only), and ` proxy-ctl proxy outbounds add ` for an
outbound, which runs in wireproxy (needs ` proxy.enable `)\. wg-quick hooks such as
` PostUp ` are always refused in them\. With this on, ` profiles ` may be empty\.
**Type:** boolean\
**Default:** `true`
<a id="services-proxy-suite-amneziawg-runtime-interfacename"></a>
## services\.proxy-suite\.amneziaWg\.runtime\.interfaceName
Interface of the global profiles added at runtime\. Only one of them runs at a time, so they share it\.
**Type:** string matching the pattern ^\[A-Za-z0-9_\.-]{1,15}$\
**Default:** `"awg-rt"`
<a id="services-proxy-suite-amneziawg-serverudpports"></a>
## services\.proxy-suite\.amneziaWg\.serverUdpPorts
+14
View File
@@ -122,6 +122,7 @@ Part of the [proxy-suite options reference](./index.md).
- [via](#services-proxy-suite-inbounds-routing-via)
- [zapretDirect](#services-proxy-suite-inbounds-routing-zapretdirect)
- [serverAddress](#services-proxy-suite-inbounds-serveraddress)
- [serverAliases](#services-proxy-suite-inbounds-serveraliases)
- [shareLinks](#services-proxy-suite-inbounds-sharelinks)
- subscriptions
- [enable](#services-proxy-suite-inbounds-subscriptions-enable)
@@ -1137,6 +1138,19 @@ Public address for share links\. ` null `: detect the uplink IPv4\.
**Default:** `null`\
**Example:** `"vpn.example.com"`
<a id="services-proxy-suite-inbounds-serveraliases"></a>
## services\.proxy-suite\.inbounds\.serverAliases
Other names and IPs of this host that clients reach through the tunnel, such as a
TURN relay’s name beside the site on ` serverAddress `\. Like ` serverAddress `, they go
direct on the listener ports instead of looping back through ` routing.via `, which
often cannot reach this host at all\. List the IPs too: a client that resolves a name
itself hands XRay the address, which no name rule matches\.
**Type:** list of string matching the pattern \[^\[:space:]]+\
**Default:** `[ ]`\
**Example:** `[ "turn.example.com" "203.0.113.10" "2001:db8::10" ]`
<a id="services-proxy-suite-inbounds-sharelinks"></a>
## services\.proxy-suite\.inbounds\.shareLinks
+5
View File
@@ -43,6 +43,10 @@ services.proxy-suite = {
enable = false;
kernelModulePackage = ‹amneziawg from boot.kernelPackages on NixOS, null elsewhere›;
profiles = { };
runtime = {
enable = true;
interfaceName = "awg-rt";
};
serverUdpPorts = [ ];
toolsPackage = ‹proxy-suite's patched amneziawg-tools (pkgs/amneziawg.nix)›;
userspacePackage = ‹proxy-suite's patched amneziawg-go (pkgs/amneziawg.nix)›;
@@ -81,6 +85,7 @@ services.proxy-suite = {
zapretDirect = true;
};
serverAddress = null;
serverAliases = [ ];
shareLinks = true;
subscriptions = {
baseUrl = null;
+4 -1
View File
@@ -41,7 +41,10 @@ What the group may do\. Empty allows everything\.
- “zapret”: change zapret2’s learned sites, and ` zapret cutoff probe `\.
- “stats”: ` inbounds stats `\.
- “whitelistBypass”: everything under ` proxy-ctl wl `\.
- “amneziaWg”: add and remove global AmneziaWG profiles (` proxy-ctl awg add `, ` awg rm `)\.
A global profile takes over the host’s routes and DNS\. Starting and stopping one is
“services”; an AmneziaWG outbound is “outbounds”\.
**Type:** list of (one of “services”, “perApp”, “routing”, “outbounds”, “secrets”, “autoProxy”, “zapret”, “stats”, “whitelistBypass”)\
**Type:** list of (one of “services”, “perApp”, “routing”, “outbounds”, “secrets”, “autoProxy”, “zapret”, “stats”, “whitelistBypass”, “amneziaWg”)\
**Default:** `[ ]`\
**Example:** `[ "services" "routing" ]`