more internal updates
This commit is contained in:
11 files changed
+708
-1003
No files matched your search
@@ -545,44 +545,48 @@ in
|
||||
example = 1080;
|
||||
};
|
||||
|
||||
tproxyPort = mkOption {
|
||||
type = types.port;
|
||||
default = 1081;
|
||||
description = ''
|
||||
Listen port for the local sing-box TProxy inbound. Used by TProxy mode.
|
||||
'';
|
||||
example = 1081;
|
||||
};
|
||||
tproxyPort = mkOption {
|
||||
type = types.port;
|
||||
default = 1081;
|
||||
description = ''
|
||||
Local listen port for sing-box's TProxy inbound.
|
||||
nftables redirection created by proxy-suite-tproxy sends intercepted
|
||||
TCP/UDP traffic to this port.
|
||||
'';
|
||||
example = 1081;
|
||||
};
|
||||
|
||||
fwmark = mkOption {
|
||||
type = types.int;
|
||||
default = 1;
|
||||
description = ''
|
||||
Netfilter mark set on packets intercepted by TProxy so policy routing
|
||||
can send them to the local loopback route table. Used by TProxy mode.
|
||||
'';
|
||||
example = 1;
|
||||
};
|
||||
fwmark = mkOption {
|
||||
type = types.int;
|
||||
default = 1;
|
||||
description = ''
|
||||
Mark applied to intercepted packets in TProxy mode.
|
||||
A matching `ip rule` routes this mark to singBox.routeTable, which
|
||||
points traffic to loopback for local proxy processing.
|
||||
'';
|
||||
example = 1;
|
||||
};
|
||||
|
||||
proxyMark = mkOption {
|
||||
type = types.int;
|
||||
default = 2;
|
||||
description = ''
|
||||
Netfilter mark set on sing-box's own outbound packets so they bypass
|
||||
TProxy re-interception loops. Used by TProxy mode.
|
||||
'';
|
||||
example = 2;
|
||||
};
|
||||
proxyMark = mkOption {
|
||||
type = types.int;
|
||||
default = 2;
|
||||
description = ''
|
||||
Mark applied to sing-box egress packets in TProxy mode so they bypass
|
||||
re-interception and do not loop back into the transparent proxy path.
|
||||
'';
|
||||
example = 2;
|
||||
};
|
||||
|
||||
routeTable = mkOption {
|
||||
type = types.int;
|
||||
default = 100;
|
||||
description = ''
|
||||
Policy routing table used to redirect TProxy-marked packets to the
|
||||
loopback interface. Used by TProxy mode.
|
||||
'';
|
||||
example = 100;
|
||||
};
|
||||
routeTable = mkOption {
|
||||
type = types.int;
|
||||
default = 100;
|
||||
description = ''
|
||||
Policy-routing table number used for TProxy interception flow.
|
||||
The module installs a local default route in this table and binds it
|
||||
to singBox.fwmark.
|
||||
'';
|
||||
example = 100;
|
||||
};
|
||||
|
||||
proxyByDefault = mkOption {
|
||||
type = types.bool;
|
||||
@@ -1217,7 +1221,11 @@ in
|
||||
pollInterval = mkOption {
|
||||
type = types.int;
|
||||
default = 5;
|
||||
description = "Status polling interval in seconds for the tray application.";
|
||||
description = ''
|
||||
Tray status refresh interval in seconds.
|
||||
Lower values make UI state changes appear faster, while higher values
|
||||
reduce background polling overhead.
|
||||
'';
|
||||
example = 5;
|
||||
};
|
||||
|
||||
@@ -1238,14 +1246,22 @@ in
|
||||
port = mkOption {
|
||||
type = types.port;
|
||||
default = 1076;
|
||||
description = "Listen port for the tg-ws-proxy service.";
|
||||
description = ''
|
||||
TCP listen port for tg-ws-proxy.
|
||||
Telegram clients connect to this endpoint when using the local MTProto
|
||||
WebSocket proxy.
|
||||
'';
|
||||
example = 1076;
|
||||
};
|
||||
|
||||
host = mkOption {
|
||||
type = types.str;
|
||||
default = "127.0.0.1";
|
||||
description = "Address to bind tg-ws-proxy to.";
|
||||
description = ''
|
||||
Bind address for tg-ws-proxy.
|
||||
Keep `127.0.0.1` for local-only usage; bind to `0.0.0.0` only when you
|
||||
intentionally expose the proxy to other hosts.
|
||||
'';
|
||||
example = "127.0.0.1";
|
||||
};
|
||||
|
||||
@@ -1277,7 +1293,11 @@ in
|
||||
dcIps = mkOption {
|
||||
type = types.attrsOf types.str;
|
||||
default = { };
|
||||
description = "Map of Telegram DC ID to IP address for relay.";
|
||||
description = ''
|
||||
Mapping of Telegram DC IDs to relay IPs.
|
||||
Keys are DC IDs as strings and values are IPv4/IPv6 addresses used by
|
||||
tg-ws-proxy for MTProto relay selection.
|
||||
'';
|
||||
example = {
|
||||
"2" = "149.154.167.220";
|
||||
"4" = "149.154.167.220";
|
||||
|
||||
Reference in new issue
Block a user