Liu Song’s Projects


~/Projects/clash-pro

git clone https://code.lsong.org/clash-pro

Commit

Commit
bd526ad0a1480360e06ed49526f7cd28701a8dff
Author
cubemaze <117334465+[email protected]>
Date
2022-11-07 18:08:33 +0800 +0800
Diffstat
 docs/config.yaml | 30 ++++++++++++++++++++++++++++++

chore: adjust tun config

Update config.yaml

chore: adjust tun demo


diff --git a/docs/config.yaml b/docs/config.yaml
index 61fb319a41039ec71c8859fa9c0b6661335d27ee..6c8c7c26fb590f61e6e605ca87dfaab5c9f99bee 100644
--- a/docs/config.yaml
+++ b/docs/config.yaml
@@ -41,12 +41,42 @@ # Tun 配置
 tun:
   enable: false
 mixed-port: 10801 # HTTP(S) 和 SOCKS 代理混合端口
+allow-lan: true # 允许局域网连接
 mixed-port: 10801 # HTTP(S) 和 SOCKS 代理混合端口
   dns-hijack:
     - 198.18.0.2:53 # 需要劫持的 DNS
   # auto-detect-interface: true # 自动识别出口网卡
   # auto-route: true # 配置路由表
+  # mtu: 9000 # 最大传输单元
+#ebpf配置
 
+  inet4_route_address: # 启用 auto_route 时使用自定义路由而不是默认路由
+    - 0.0.0.0/1
+    - 128.0.0.0/1
+  inet6_route_address: # 启用 auto_route 时使用自定义路由而不是默认路由
+    - '::/1'
+    - '8000::/1'
+  # endpoint_independent_nat: false # 启用独立于端点的 NAT
+  # include_uid: # UID 规则仅在 Linux 下被支持,并且需要 auto_route
+    # - 0
+  # include_uid_range: # 限制被路由的的用户范围
+    # - 1000-99999
+  # exclude_uid: # 排除路由的的用户
+    #- 1000
+  # exclude_uid_range: # 排除路由的的用户范围
+    # - 1000-99999
+    
+  # Android 用户和应用规则仅在 Android 下被支持
+  # 并且需要 auto_route
+  
+  # include_android_user: # 限制被路由的 Android 用户
+    # - 0
+    # - 10
+  # include_package: # 限制被路由的 Android 应用包名
+    # - com.android.chrome
+  # exclude_package: # 排除被路由的 Android 应用包名
+    # - com.android.captiveportallogin
+  
 #ebpf配置
 ebpf:
   auto-redir: # redirect 模式,仅支持 TCP