Align tun auto-redirect DNS hijack and default marks with sing-tun

This commit is contained in:
世界
2026-11-24 22:45:25 +08:00
parent eacdf91f16
commit 7dc9c39a27
3 changed files with 46 additions and 23 deletions
+6 -6
View File
@@ -88,9 +88,9 @@ icon: material/new-box
"iproute2_table_index": 2022,
"iproute2_rule_index": 9000,
"auto_redirect": true,
"auto_redirect_input_mark": "0x2023",
"auto_redirect_output_mark": "0x2024",
"auto_redirect_reset_mark": "0x2025",
"auto_redirect_input_mark": "0x04000000",
"auto_redirect_output_mark": "0x08000000",
"auto_redirect_reset_mark": "0x10000000",
"auto_redirect_nfqueue": 100,
"auto_redirect_iproute2_fallback_rule_index": 32768,
"exclude_mptcp": false,
@@ -363,7 +363,7 @@ Conflict with `route.default_mark` and `[dialOptions].routing_mark`.
Connection input mark used by `auto_redirect`.
`0x2023` is used by default.
`0x04000000` is used by default.
#### auto_redirect_output_mark
@@ -371,7 +371,7 @@ Connection input mark used by `auto_redirect`.
Connection output mark used by `auto_redirect`.
`0x2024` is used by default.
`0x08000000` is used by default.
#### auto_redirect_reset_mark
@@ -379,7 +379,7 @@ Connection output mark used by `auto_redirect`.
Connection reset mark used by `auto_redirect` pre-matching.
`0x2025` is used by default.
`0x10000000` is used by default.
#### auto_redirect_nfqueue
+6 -6
View File
@@ -88,9 +88,9 @@ icon: material/new-box
"iproute2_table_index": 2022,
"iproute2_rule_index": 9000,
"auto_redirect": true,
"auto_redirect_input_mark": "0x2023",
"auto_redirect_output_mark": "0x2024",
"auto_redirect_reset_mark": "0x2025",
"auto_redirect_input_mark": "0x04000000",
"auto_redirect_output_mark": "0x08000000",
"auto_redirect_reset_mark": "0x10000000",
"auto_redirect_nfqueue": 100,
"auto_redirect_iproute2_fallback_rule_index": 32768,
"exclude_mptcp": false,
@@ -356,7 +356,7 @@ TUN 接口上 DNS 的处理方式。
`auto_redirect` 使用的连接输入标记。
默认使用 `0x2023`。
默认使用 `0x04000000`。
#### auto_redirect_output_mark
@@ -364,7 +364,7 @@ TUN 接口上 DNS 的处理方式。
`auto_redirect` 使用的连接输出标记。
默认使用 `0x2024`。
默认使用 `0x08000000`。
#### auto_redirect_reset_mark
@@ -372,7 +372,7 @@ TUN 接口上 DNS 的处理方式。
`auto_redirect` 预匹配使用的连接重置标记。
默认使用 `0x2025`。
默认使用 `0x10000000`。
#### auto_redirect_nfqueue