docs: improve the wording, add targeted examples

This commit is contained in:
fufsob committed 2026-09-25 09:54:12 +00:00
1 parent 53fc86dd83
commit 63d9dffcae
61 files changed
+3422 -5861

No files matched your search

+9 -9
View File
@@ -5,36 +5,36 @@ let
in
{
options.services.proxy-suite.proxy.tproxy = {
enable = mkEnableOption "global TProxy mode (proxy-suite-tproxy)";
enable = mkEnableOption "global TProxy mode";
port = mkOption {
type = types.port;
default = 1085;
description = "Port of the TProxy inbound.";
description = "Local port that intercepted traffic is redirected to.";
};
fwmark = mkOption {
type = types.int;
default = 1;
description = "Mark of intercepted packets, routed through routeTable.";
description = "Firewall mark for intercepted packets.";
};
proxyMark = mkOption {
type = types.int;
default = 2;
description = "Mark of the backend's own traffic, so it is not intercepted again.";
description = "Firewall mark for the proxy's own traffic, so it is not intercepted again.";
};
routeTable = mkOption {
type = types.int;
default = 100;
description = "Policy-routing table for intercepted traffic.";
description = "Routing table for intercepted traffic.";
};
localSubnets = mkOption {
type = types.listOf types.str;
default = [ "192.168.0.0/16" ];
description = "Subnets that bypass interception (DNS excepted): your LAN, VM bridges. IPv6 CIDRs work too.";
description = "Subnets that skip the proxy, such as your LAN and VM bridges (DNS still goes through it). IPv6 works too.";
example = [
"192.168.0.0/16"
"10.0.0.0/8"
@@ -46,9 +46,9 @@ in
type = types.listOf types.str;
default = [ ];
description = ''
Interfaces whose forwarded TCP and UDP is taken through the proxy too: devices on them
that use this host as their gateway. Turns on IP forwarding for the rest (ping, the LAN
itself), which is routed as it is. Needs the nftables firewall on NixOS.
LAN interfaces whose devices use this host as their gateway. Their TCP and UDP goes through the
proxy; everything else is forwarded as usual. Turns on IP forwarding. Needs the nftables
firewall on NixOS.
'';
example = [ "br0" ];
};