fix: overall tun/tproxy improvements
This commit is contained in:
29 files changed
+445
-149
No files matched your search
@@ -34,10 +34,11 @@ in
|
||||
localSubnets = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ "192.168.0.0/16" ];
|
||||
description = "Subnets that bypass interception (DNS excepted): your LAN, VM bridges.";
|
||||
description = "Subnets that bypass interception (DNS excepted): your LAN, VM bridges. IPv6 CIDRs work too.";
|
||||
example = [
|
||||
"192.168.0.0/16"
|
||||
"10.0.0.0/8"
|
||||
"fd00::/8"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
proxySuiteUpstream,
|
||||
...
|
||||
@@ -46,6 +47,19 @@ in
|
||||
example = "tun";
|
||||
};
|
||||
|
||||
ipv6 = mkOption {
|
||||
type = types.bool;
|
||||
default = config.networking.enableIPv6;
|
||||
defaultText = literalExpression "config.networking.enableIPv6";
|
||||
description = ''
|
||||
Carry IPv6 in the transparent modes: TProxy through a second listener on ::1, the TUNs
|
||||
(global and per-app) through an IPv6 address of their own. Off, TProxy leaves IPv6
|
||||
alone and the TUNs block it, so apps fall back to IPv4. On an uplink without IPv6,
|
||||
set proxy.dns.strategy = "ipv4_only" too: a direct IPv6 destination would otherwise
|
||||
fail after the connection seems open, instead of falling back to IPv4.
|
||||
'';
|
||||
};
|
||||
|
||||
listener = {
|
||||
address = mkOption {
|
||||
type = types.str;
|
||||
|
||||
Reference in new issue
Block a user