12
12
"interface_name" : " tun0" ,
13
13
"inet4_address" : " 172.19.0.1/30" ,
14
14
"inet6_address" : " fdfe:dcba:9876::1/128" ,
15
- "mtu" : 1500 ,
15
+ "mtu" : 9000 ,
16
16
"auto_route" : true ,
17
17
"strict_route" : true ,
18
18
"endpoint_independent_nat" : false ,
@@ -80,6 +80,10 @@ Set the default route to the Tun.
80
80
81
81
To avoid traffic loopback, set `route.auto_detect_interface` or `route.default_interface` or `outbound.bind_interface`
82
82
83
+ !!! note "Use with Android VPN"
84
+
85
+ By default, VPN takes precedence over tun. To make tun go through VPN, enable `route.override_android_vpn`.
86
+
83
87
#### strict_route
84
88
85
89
Enforce strict routing rules in Linux when ` auto_route ` is enabled:
@@ -92,6 +96,10 @@ not be accessible by others.
92
96
93
97
#### endpoint_independent_nat
94
98
99
+ !!! info ""
100
+
101
+ This item is only available on the gvisor stack, other stacks are endpoint-independent NAT by default.
102
+
95
103
Enable endpoint-independent NAT.
96
104
97
105
Performance may degrade slightly, so it is not recommended to enable on when it is not needed.
@@ -104,10 +112,11 @@ UDP NAT expiration time in seconds, default is 300 (5 minutes).
104
112
105
113
TCP/IP stack.
106
114
107
- | Stack | Upstream | Status |
108
- | ------------------| -----------------------------------------------------------------------| -------------------|
109
- | gVisor (default) | [ google/gvisor] ( https://github.com/google/gvisor ) | recommended |
110
- | LWIP | [ eycorsican/go-tun2socks] ( https://github.com/eycorsican/go-tun2socks ) | upstream archived |
115
+ | Stack | Description | Status |
116
+ | ------------------| --------------------------------------------------------------------------------| -------------------|
117
+ | gVisor (default) | Based on [ google/gvisor] ( https://github.com/google/gvisor ) | recommended |
118
+ | system | Less compatibility and sometimes better performance. | recommended |
119
+ | LWIP | Based on [ eycorsican/go-tun2socks] ( https://github.com/eycorsican/go-tun2socks ) | upstream archived |
111
120
112
121
!!! warning ""
113
122
0 commit comments