feat: allow using suite on non-nixos systems
This commit is contained in:
63 files changed
+3572
-523
No files matched your search
@@ -64,6 +64,7 @@ Part of the [proxy-suite options reference](./index.md).
|
||||
- [vpnFile](#services-proxy-suite-amneziawg-profiles-name-vpnfile)
|
||||
- [toolsPackage](#services-proxy-suite-amneziawg-toolspackage)
|
||||
- [userspacePackage](#services-proxy-suite-amneziawg-userspacepackage)
|
||||
- [wireproxyPackage](#services-proxy-suite-amneziawg-wireproxypackage)
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-enable"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.enable
|
||||
@@ -141,13 +142,18 @@ always runs, leaves the host’s routes and resolver alone, and is not listed by
|
||||
|
||||
- “singBox”: a WireGuard endpoint in its own sing-box process, reached as a loopback SOCKS
|
||||
hop\. sing-box speaks plain WireGuard: AmneziaWG obfuscation is dropped with a warning\.
|
||||
- “userspace”: the same hop served by wireproxy on AmneziaWG’s userspace implementation, so
|
||||
obfuscation works\. It needs no interface or root: the only AmneziaWG mode on
|
||||
home-manager and nix-on-droid\. A declared or profile ListenPort is used as is\. An
|
||||
Endpoint hostname resolves through the system resolver: give an address where that
|
||||
resolver cannot reach the name\.
|
||||
- “interface”: the AmneziaWG interface comes up without routes (Table = off), and the
|
||||
outbound binds to it, so obfuscation works\. With the sing-box backend its DNS goes
|
||||
through the interface too (proxy\.dns\.remote); XRay resolves as usual\.
|
||||
Either way the tunnel itself reaches the peer over the uplink, past TUN and TProxy\.
|
||||
|
||||
*Type:*
|
||||
null or one of “singBox”, “interface”
|
||||
null or one of “singBox”, “userspace”, “interface”
|
||||
|
||||
*Default:*
|
||||
|
||||
@@ -912,3 +918,17 @@ package
|
||||
```nix
|
||||
<derivation amneziawg-go-3.1.20260828>
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-wireproxypackage"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.wireproxyPackage
|
||||
|
||||
wireproxy build with AWG 3\.1 and FwMark, which runs profiles with asOutbound = “userspace”\.
|
||||
|
||||
*Type:*
|
||||
package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
<derivation wireproxy-awg-1.0.18>
|
||||
```
|
||||
@@ -29,6 +29,7 @@ services.proxy-suite = {
|
||||
profiles = { };
|
||||
toolsPackage = pkgs.amneziawg-tools;
|
||||
userspacePackage = pkgs.amneziawg-go;
|
||||
wireproxyPackage = pkgs.wireproxy-awg;
|
||||
};
|
||||
enable = false;
|
||||
geodata = {
|
||||
|
||||
@@ -55,11 +55,13 @@ Add WARP as an outbound tagged “warp”\.
|
||||
endpoint on 127\.0\.0\.1:18538, as the proxy-suite-daemon user\. The tunnel starts again on a
|
||||
new source port when WARP does not answer within 15 seconds of a start, or misses three
|
||||
probes later on, unless the uplink itself is down\.
|
||||
- “userspace”: an AmneziaWG profile named “warp” with asOutbound = “userspace”, which honours
|
||||
the AmneziaWG lines of the profile without an interface or root\. Requires amneziaWg\.enable\.
|
||||
- “interface”: an AmneziaWG profile named “warp” with asOutbound = “interface”, which honours
|
||||
the AmneziaWG lines of the profile\. Requires amneziaWg\.enable\.
|
||||
|
||||
*Type:*
|
||||
null or one of “singBox”, “interface”
|
||||
null or one of “singBox”, “userspace”, “interface”
|
||||
|
||||
*Default:*
|
||||
|
||||
|
||||
Reference in new issue
Block a user