feat/wip: better awg to outbounds config
This commit is contained in:
26 files changed
+805
-218
No files matched your search
@@ -269,6 +269,26 @@ let
|
||||
default = false;
|
||||
description = "Whether to start this profile at boot. At most one profile may autostart.";
|
||||
};
|
||||
asOutbound = mkOption {
|
||||
type = types.nullOr (
|
||||
types.enum [
|
||||
"singBox"
|
||||
"interface"
|
||||
]
|
||||
);
|
||||
default = null;
|
||||
description = ''
|
||||
Make the profile a proxy outbound tagged with its name instead of a global profile. It then
|
||||
always runs, leaves the host's routes and resolver alone, and is not listed by
|
||||
`proxy-ctl awg`. Requires proxy.enable.
|
||||
- "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.
|
||||
- "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.
|
||||
'';
|
||||
};
|
||||
allowConfigHooks = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
||||
@@ -12,7 +12,8 @@ in
|
||||
default = null;
|
||||
description = ''
|
||||
Runtime path to a WireGuard profile for WARP, as written by `wgcf register && wgcf generate`.
|
||||
AmneziaWG lines (Jc, S1-S4, H1-H4, I1-I5, AWG 3 timing) are honoured by the AmneziaWG profile only.
|
||||
AmneziaWG lines (Jc, S1-S4, H1-H4, I1-I5, AWG 3 timing) are honoured by the AmneziaWG profile
|
||||
(asAmneziaWg, asOutbound = "interface") only.
|
||||
|
||||
When null, proxy-suite-warp registers a device with wgcf (accepting Cloudflare's terms)
|
||||
into /var/lib/proxy-suite/warp, through the local proxy when proxy.enable is set, and
|
||||
@@ -35,13 +36,21 @@ in
|
||||
};
|
||||
|
||||
asOutbound = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
type = types.nullOr (
|
||||
types.enum [
|
||||
"singBox"
|
||||
"interface"
|
||||
]
|
||||
);
|
||||
default = null;
|
||||
description = ''
|
||||
Add WARP as an outbound tagged "warp": a SOCKS hop to proxy-suite-warp-tunnel, which
|
||||
runs WARP as a sing-box WireGuard 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.
|
||||
Add WARP as an outbound tagged "warp".
|
||||
- "singBox": a SOCKS hop to proxy-suite-warp-tunnel, which runs WARP as a sing-box WireGuard
|
||||
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.
|
||||
- "interface": an AmneziaWG profile named "warp" with asOutbound = "interface", which honours
|
||||
the AmneziaWG lines of the profile. Requires amneziaWg.enable.
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user