fix: awg & warp fixes
This commit is contained in:
17 files changed
+277
-7
No files matched your search
@@ -65,6 +65,7 @@ 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)
|
||||
- [serverUdpPorts](#services-proxy-suite-amneziawg-serverudpports)
|
||||
- [toolsPackage](#services-proxy-suite-amneziawg-toolspackage)
|
||||
- [userspacePackage](#services-proxy-suite-amneziawg-userspacepackage)
|
||||
- [wireproxyPackage](#services-proxy-suite-amneziawg-wireproxypackage)
|
||||
@@ -536,6 +537,18 @@ File with a vpn:// export\.
|
||||
**Type:** null or string\
|
||||
**Default:** `null`
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-serverudpports"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.serverUdpPorts
|
||||
|
||||
UDP ports of services on this host that others reach, whose packets a global profile
|
||||
leaves on the host’s own routes\. A reply from a socket bound to every address would
|
||||
otherwise leave through the tunnel, from the tunnel’s address\. The UDP inbound listeners
|
||||
and, on NixOS, the ports the firewall opens are included already\.
|
||||
|
||||
**Type:** list of (16 bit unsigned integer; between 0 and 65535 (both inclusive) or string matching the pattern \[0-9]±\[0-9]+)\
|
||||
**Default:** `[ ]`\
|
||||
**Example:** `[ 3478 "49152-65535" ]`
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-toolspackage"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.toolsPackage
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ services.proxy-suite = {
|
||||
enable = false;
|
||||
kernelModulePackage = ‹amneziawg from boot.kernelPackages on NixOS, null elsewhere›;
|
||||
profiles = { };
|
||||
serverUdpPorts = [ ];
|
||||
toolsPackage = ‹proxy-suite's patched amneziawg-tools (pkgs/amneziawg.nix)›;
|
||||
userspacePackage = ‹proxy-suite's patched amneziawg-go (pkgs/amneziawg.nix)›;
|
||||
wireproxyPackage = ‹proxy-suite's wireproxy-awg (pkgs/wireproxy-awg.nix)›;
|
||||
@@ -313,6 +314,7 @@ services.proxy-suite = {
|
||||
warp = {
|
||||
asAmneziaWg = false;
|
||||
asOutbound = null;
|
||||
autostart = false;
|
||||
configFile = null;
|
||||
enable = false;
|
||||
endpoint = null;
|
||||
|
||||
@@ -10,6 +10,7 @@ Part of the [proxy-suite options reference](./index.md).
|
||||
- [enable](#services-proxy-suite-warp-enable)
|
||||
- [asAmneziaWg](#services-proxy-suite-warp-asamneziawg)
|
||||
- [asOutbound](#services-proxy-suite-warp-asoutbound)
|
||||
- [autostart](#services-proxy-suite-warp-autostart)
|
||||
- [configFile](#services-proxy-suite-warp-configfile)
|
||||
- [endpoint](#services-proxy-suite-warp-endpoint)
|
||||
- [generatorUrl](#services-proxy-suite-warp-generatorurl)
|
||||
@@ -44,6 +45,15 @@ Add WARP as an outbound tagged “warp”\.
|
||||
**Type:** null or one of “singBox”, “userspace”, “interface”\
|
||||
**Default:** `null`
|
||||
|
||||
<a id="services-proxy-suite-warp-autostart"></a>
|
||||
## services\.proxy-suite\.warp\.autostart
|
||||
|
||||
Bring the “warp” AmneziaWG profile up at boot, as ` autostart ` of an ` amneziaWg ` profile
|
||||
does\. Needs ` asAmneziaWg `\. Only one global mode can autostart\.
|
||||
|
||||
**Type:** boolean\
|
||||
**Default:** `false`
|
||||
|
||||
<a id="services-proxy-suite-warp-configfile"></a>
|
||||
## services\.proxy-suite\.warp\.configFile
|
||||
|
||||
|
||||
@@ -33,6 +33,11 @@ proxy-ctl awg off
|
||||
Only one global tunnel runs at a time: an AmneziaWG profile, TUN or TProxy. Starting one
|
||||
stops the others.
|
||||
|
||||
Connections made to this machine from elsewhere (SSH, a web server, inbound listeners) are
|
||||
still answered the way they came in, not through the tunnel. For UDP that takes knowing the
|
||||
port: the inbound listeners and, on NixOS, the firewall's open ports are known; add others to
|
||||
`amneziaWg.serverUdpPorts`.
|
||||
|
||||
## As an outbound
|
||||
|
||||
```nix
|
||||
|
||||
@@ -86,7 +86,8 @@ services.proxy-suite = {
|
||||
still pin them.
|
||||
- autoProxy tries your exits, WARP included, for each blocked site and keeps the first one
|
||||
that works.
|
||||
- WARP can also run as a global VPN instead, through AmneziaWG: `warp.asAmneziaWg`.
|
||||
- WARP can also run as a global VPN instead, through AmneziaWG: `warp.asAmneziaWg`, with
|
||||
`warp.autostart` to bring it up at boot.
|
||||
|
||||
## See also
|
||||
|
||||
|
||||
Reference in new issue
Block a user