feat/wip: better awg to outbounds config
This commit is contained in:
26 files changed
+805
-218
No files matched your search
@@ -10,6 +10,7 @@ Part of the [proxy-suite options reference](./index.md).
|
||||
- [profiles](#services-proxy-suite-amneziawg-profiles)
|
||||
- `<name>`
|
||||
- [allowConfigHooks](#services-proxy-suite-amneziawg-profiles-name-allowconfighooks)
|
||||
- [asOutbound](#services-proxy-suite-amneziawg-profiles-name-asoutbound)
|
||||
- [autostart](#services-proxy-suite-amneziawg-profiles-name-autostart)
|
||||
- [configFile](#services-proxy-suite-amneziawg-profiles-name-configfile)
|
||||
- [interfaceName](#services-proxy-suite-amneziawg-profiles-name-interfacename)
|
||||
@@ -131,6 +132,29 @@ boolean
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-asoutbound"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.asOutbound
|
||||
|
||||
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\.
|
||||
|
||||
*Type:*
|
||||
null or one of “singBox”, “interface”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-autostart"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.autostart
|
||||
|
||||
|
||||
@@ -255,7 +255,7 @@ services.proxy-suite = {
|
||||
};
|
||||
warp = {
|
||||
asAmneziaWg = false;
|
||||
asOutbound = false;
|
||||
asOutbound = null;
|
||||
configFile = null;
|
||||
enable = false;
|
||||
generatorUrl = null;
|
||||
|
||||
+12
-7
@@ -49,25 +49,30 @@ false
|
||||
<a id="services-proxy-suite-warp-asoutbound"></a>
|
||||
## services\.proxy-suite\.warp\.asOutbound
|
||||
|
||||
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\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
null or one of “singBox”, “interface”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-warp-configfile"></a>
|
||||
## services\.proxy-suite\.warp\.configFile
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user