{"id":372,"date":"2024-04-27T01:16:33","date_gmt":"2024-04-26T17:16:33","guid":{"rendered":"https:\/\/blog.laning.org\/?p=372"},"modified":"2024-11-24T10:19:13","modified_gmt":"2024-11-24T02:19:13","slug":"sing-box-tun%e6%a8%a1%e5%bc%8f%e9%80%8f%e6%98%8e%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/","title":{"rendered":"sing-box TUN\u6a21\u5f0f\u900f\u660e\u4ee3\u7406"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u524d\u8a00<\/h2>\n\n\n\n<p>\u4f60\u7684\u8f6f\u8def\u7531\u5230\u5e95\u662f\u7528\u6765\u505a\u65c1\u8def\u7531\u8fd8\u662f\u4e3b\u8def\u7531\uff1f\u5982\u679c\u662f\u65c1\u8def\u7531\u7684\u8bdd\uff0c\u53ea\u7528\u79d1\u5b66\u4e0a\u7f51\u4e0d\u59a8\u8bd5\u8bd5Linux\u65c1\u8def\u7531\u7f51\u5173<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">docker\u955c\u50cf\u6784\u5efa<\/h2>\n\n\n\n<p>\u539f\u672c\u662f64\u4f4d\u7684\u5904\u7406\u5668\uff0c\u53ef\u60dc\u4e4b\u524d\u88c5\u768432\u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6240\u4ee5\u53ea\u80fd\u4eceDockerfile\u81ea\u5df1\u6784\u5efa\u55bd<\/p>\n\n\n\n<ul>\n<li>\u62c9\u6e90\u7801<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/SagerNet\/sing-box.git<\/code><\/pre>\n\n\n\n<ul>\n<li>\u6784\u5efa\u955c\u50cf<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>docker build --no-cache -t laningya\/sing-box:v1 .<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">docker-compose.yml\u6587\u4ef6<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>version: \"3.3\"<br>services:<br>sing-box:<br>&nbsp; image: laningya\/sing-box:v1<br>&nbsp; container_name: sing-box<br>&nbsp; restart: always<br>&nbsp; network_mode: \"host\"<br>&nbsp; volumes:<br>&nbsp; &nbsp; - .\/conf:\/etc\/sing-box\/<br>&nbsp; devices:<br>&nbsp; &nbsp; - \/dev\/net\/tun:\/dev\/net\/tun<br>&nbsp; cap_add:<br>&nbsp; &nbsp; &nbsp; - ALL<br>&nbsp; command: -D \/var\/lib\/sing-box -C \/etc\/sing-box\/ run<\/code><\/pre>\n\n\n\n<p>\u8981\u5f00\u542ftun\u6a21\u5f0f\uff0cdevices\u548ccap_add\u5b57\u6bb5\u975e\u5e38\u91cd\u8981<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u4e2a\u4e0d\u9519\u7684sing-box\u914d\u7f6e\u6a21\u677f<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>{<br>&nbsp;\"dns\": {<br>&nbsp; &nbsp;\"servers\": &#91;<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"dns_proxy\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"address\": \"https:\/\/1.1.1.1\/dns-query\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"address_resolver\": \"dns_resolver\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"strategy\": \"ipv4_only\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"detour\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"dns_direct\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"address\": \"h3:\/\/dns.alidns.com\/dns-query\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"address_resolver\": \"dns_resolver\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"strategy\": \"ipv4_only\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"dns_block\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"address\": \"rcode:\/\/refused\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"dns_resolver\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"address\": \"223.5.5.5\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"strategy\": \"ipv4_only\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"detour\": \"direct\"<br>&nbsp; &nbsp; }<br>&nbsp; ],<br>&nbsp; &nbsp;\"rules\": &#91;<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"any\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_resolver\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"clash_mode\": \"direct\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"clash_mode\": \"global\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_proxy\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"process_name\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"TencentMeeting\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"NemoDesktop\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"ToDesk\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"ToDesk_Service\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"WeChat\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Tailscale\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"wireguard-go\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Tunnelblick\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"softwareupdated\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"kubectl\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"domain_suffix\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"icloudnative.io\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"fuckcloudnative.io\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"sealos.io\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"cdn.jsdelivr.net\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"process_name\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"DropboxMacUpdate\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Dropbox\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_proxy\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"package_name\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"com.google.android.youtube\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"com.android.vending\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"org.telegram.messenger\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"org.telegram.plus\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_proxy\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": \"geosite-geolocation-!cn\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_proxy\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": \"Global\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_proxy\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"YouTube\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Telegram\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Netflix\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"geoip-google\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"geoip-telegram\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"geoip-twitter\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"geoip-netflix\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server\": \"dns_proxy\"<br>&nbsp; &nbsp; }<br>&nbsp; ],<br>&nbsp; &nbsp;\"final\": \"dns_direct\"<br>},<br>&nbsp;\"ntp\": {<br>&nbsp; &nbsp;\"enabled\": true,<br>&nbsp; &nbsp;\"server\": \"time.apple.com\",<br>&nbsp; &nbsp;\"server_port\": 123,<br>&nbsp; &nbsp;\"interval\": \"30m0s\",<br>&nbsp; &nbsp;\"detour\": \"direct\"<br>},<br>&nbsp;\"inbounds\": &#91;<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"tun\",<br>&nbsp; &nbsp; &nbsp;\"inet4_address\": \"198.18.0.1\/16\",<br>&nbsp; &nbsp; &nbsp;\"auto_route\": true,<br>&nbsp; &nbsp; &nbsp;\"exclude_package\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp;\"cmb.pb\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"cn.gov.pbc.dcep\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.MobileTicket\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.adguard.android\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.ainemo.dragoon\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.alibaba.android.rimet\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.alicloud.databox\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.amazing.cloudisk.tv\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.autonavi.minimap\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.bilibili.app.in\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.bishua666.luxxx1\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.cainiao.wireless\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.chebada\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.chinamworld.main\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.cmbchina.ccd.pluto.cmbActivity\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.coolapk.market\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.ctrip.ct\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.dianping.v1\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.douban.frodo\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.eg.android.AlipayGphone\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.farplace.qingzhuo\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.hanweb.android.zhejiang.activity\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.leoao.fitness\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.lucinhu.bili_you\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.mikrotik.android.tikapp\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.moji.mjweather\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.motorola.cn.calendar\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.motorola.cn.lrhealth\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.netease.cloudmusic\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.sankuai.meituan\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.sina.weibo\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.smartisan.notes\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.sohu.inputmethod.sogou.moto\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.sonelli.juicessh\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.ss.android.article.news\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.ss.android.lark\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.ss.android.ugc.aweme\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.tailscale.ipn\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.taobao.idlefish\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.taobao.taobao\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.tencent.mm\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.tencent.mp\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.tencent.soter.soterserver\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.tencent.wemeet.app\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.tencent.weread\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.tencent.wework\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.ttxapps.wifiadb\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.unionpay\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.unnoo.quan\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.wireguard.android\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.xingin.xhs\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.xunmeng.pinduoduo\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"com.zui.zhealthy\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"ctrip.android.view\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"io.kubenav.kubenav\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"org.geekbang.geekTime\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tv.danmaku.bili\"<br>&nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp;\"stack\": \"mixed\",<br>&nbsp; &nbsp; &nbsp;\"sniff\": true<br>&nbsp; },<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"socks\",<br>&nbsp; &nbsp; &nbsp;\"tag\": \"socks-in\",<br>&nbsp; &nbsp; &nbsp;\"listen\": \"::\",<br>&nbsp; &nbsp; &nbsp;\"listen_port\": 5353<br>&nbsp; }<br>],<br>&nbsp;\"outbounds\": &#91;<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"selector\",<br>&nbsp; &nbsp; &nbsp;\"tag\": \"select\",<br>&nbsp; &nbsp; &nbsp;\"outbounds\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp;\"trojan-out\"<br>&nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp;\"default\": \"trojan-out\"<br>&nbsp; },<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"selector\",<br>&nbsp; &nbsp; &nbsp;\"tag\": \"openai\",<br>&nbsp; &nbsp; &nbsp;\"outbounds\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp;\"trojan-out\"<br>&nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp;\"default\": \"trojan-out\"<br>&nbsp; },<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"selector\",<br>&nbsp; &nbsp; &nbsp;\"tag\": \"tiktok\",<br>&nbsp; &nbsp; &nbsp;\"outbounds\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp;\"trojan-out\"<br>&nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp;\"default\": \"trojan-out\"<br>&nbsp; },<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"trojan\",<br>&nbsp; &nbsp; &nbsp;\"tag\": \"trojan-out\",<br>&nbsp; &nbsp; &nbsp;\"server\": \"199.180.115.155\",<br>&nbsp; &nbsp; &nbsp;\"server_port\": 9443,<br>&nbsp; &nbsp; &nbsp;\"password\": \"5iFHKMrn9Ez\/\/VKh6zChTA==\",<br>&nbsp; &nbsp; &nbsp;\"tls\": {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"enabled\": true,<br>&nbsp; &nbsp; &nbsp; &nbsp;\"server_name\": \"ss.icloudnative.io\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"insecure\": true,<br>&nbsp; &nbsp; &nbsp; &nbsp;\"utls\": {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"fingerprint\": \"chrome\"<br>&nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; &nbsp;\"multiplex\": {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"protocol\": \"h2mux\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"max_connections\": 4,<br>&nbsp; &nbsp; &nbsp; &nbsp;\"min_streams\": 4<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; &nbsp;\"transport\": {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"grpc\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"service_name\": \"TunService\"<br>&nbsp; &nbsp; }<br>&nbsp; },<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"direct\",<br>&nbsp; &nbsp; &nbsp;\"tag\": \"direct\"<br>&nbsp; },<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"block\",<br>&nbsp; &nbsp; &nbsp;\"tag\": \"block\"<br>&nbsp; },<br>&nbsp; {<br>&nbsp; &nbsp; &nbsp;\"type\": \"dns\",<br>&nbsp; &nbsp; &nbsp;\"tag\": \"dns-out\"<br>&nbsp; }<br>],<br>&nbsp;\"route\": {<br>&nbsp; &nbsp;\"rules\": &#91;<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"protocol\": \"dns\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"dns-out\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"clash_mode\": \"direct\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"clash_mode\": \"global\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"domain_suffix\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"icloudnative.io\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"fuckcloudnative.io\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"sealos.io\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"cdn.jsdelivr.net\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"process_name\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"TencentMeeting\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"NemoDesktop\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"ToDesk\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"ToDesk_Service\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"WeChat\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"OpenLens\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Tailscale\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"wireguard-go\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Tunnelblick\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"softwareupdated\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"kubectl\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"protocol\": \"quic\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"block\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"inbound\": \"socks-in\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"WeChat\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Bilibili\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": \"OpenAI\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"openai\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"domain_suffix\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"openai.com\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"oaistatic.com\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"oaiusercontent.com\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"openai\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"package_name\": \"com.openai.chatgpt\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"openai\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": \"TikTok\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"tiktok\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"package_name\": \"com.zhiliaoapp.musically\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"tiktok\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"domain_suffix\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"depay.one\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"orbstack.dev\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"process_name\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"DropboxMacUpdate\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Dropbox\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"package_name\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"com.google.android.youtube\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"com.android.vending\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"org.telegram.messenger\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"org.telegram.plus\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"com.google.android.googlequicksearchbox\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"app.rvx.android.youtube\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"com.mudvod.video\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"com.fox2code.mmm\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"com.twitter.android\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"domain\": \"accounts.google.com\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"domain_suffix\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"sourceforge.net\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"fhjasokiwq.com\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"domain_suffix\": \"cloud.sealos.io\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"logical\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"mode\": \"and\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rules\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": \"geosite-geolocation-!cn\"<br>&nbsp; &nbsp; &nbsp; &nbsp; },<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": \"geoip-cn\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"invert\": true<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": \"Global\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": \"geoip-cn\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"ip_is_private\": true,<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"rule_set\": &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"YouTube\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Telegram\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"Netflix\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"geoip-google\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"geoip-telegram\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"geoip-twitter\",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"geoip-netflix\"<br>&nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp;\"outbound\": \"select\"<br>&nbsp; &nbsp; }<br>&nbsp; ],<br>&nbsp; &nbsp;\"rule_set\": &#91;<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"geosite-geolocation-!cn\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"binary\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/SagerNet\/sing-geosite\/rule-set\/geosite-geolocation-!cn.srs\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"geoip-cn\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"binary\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/CHIZI-0618\/v2ray-rules-dat\/release\/singbox_ip_rule_set\/geoip-cn.srs\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"geoip-google\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"binary\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/CHIZI-0618\/v2ray-rules-dat\/release\/singbox_ip_rule_set\/geoip-google.srs\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"geoip-telegram\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"binary\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/CHIZI-0618\/v2ray-rules-dat\/release\/singbox_ip_rule_set\/geoip-telegram.srs\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"geoip-twitter\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"binary\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/CHIZI-0618\/v2ray-rules-dat\/release\/singbox_ip_rule_set\/geoip-twitter.srs\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"geoip-netflix\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"binary\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/CHIZI-0618\/v2ray-rules-dat\/release\/singbox_ip_rule_set\/geoip-netflix.srs\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"Global\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"source\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/yangchuansheng\/sing-box-geosite\/main\/rule\/Global.json\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"YouTube\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"source\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/yangchuansheng\/sing-box-geosite\/main\/rule\/YouTube.json\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"OpenAI\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"source\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/yangchuansheng\/sing-box-geosite\/main\/rule\/OpenAI.json\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"TikTok\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"source\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/yangchuansheng\/sing-box-geosite\/main\/rule\/TikTok.json\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"Telegram\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"source\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/yangchuansheng\/sing-box-geosite\/main\/rule\/Telegram.json\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"Netflix\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"source\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/yangchuansheng\/sing-box-geosite\/main\/rule\/Netflix.json\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"WeChat\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"source\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/yangchuansheng\/sing-box-geosite\/main\/rule\/WeChat.json\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;\"type\": \"remote\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"tag\": \"Bilibili\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"format\": \"source\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"url\": \"https:\/\/mirror.ghproxy.com\/https:\/\/raw.githubusercontent.com\/yangchuansheng\/sing-box-geosite\/main\/rule\/Bilibili.json\",<br>&nbsp; &nbsp; &nbsp; &nbsp;\"download_detour\": \"direct\"<br>&nbsp; &nbsp; }<br>&nbsp; ],<br>&nbsp; &nbsp;\"final\": \"direct\",<br>&nbsp; &nbsp;\"find_process\": true,<br>&nbsp; &nbsp;\"auto_detect_interface\": true<br>},<br>&nbsp;\"experimental\": {<br>&nbsp; &nbsp;\"cache_file\": {<br>&nbsp; &nbsp; &nbsp;\"enabled\": true<br>&nbsp; },<br>&nbsp; &nbsp;\"clash_api\": {<br>&nbsp; &nbsp; &nbsp;\"external_controller\": \"0.0.0.0:9090\",<br>&nbsp; &nbsp; &nbsp;\"external_ui\": \"metacubexd\",<br>&nbsp; &nbsp; &nbsp;\"external_ui_download_url\": \"https:\/\/github.com\/MetaCubeX\/metacubexd\/archive\/refs\/heads\/gh-pages.zip\",<br>&nbsp; &nbsp; &nbsp;\"external_ui_download_detour\": \"select\",<br>&nbsp; &nbsp; &nbsp;\"default_mode\": \"rule\"<br>&nbsp; }<br>}<br>}<br>\u200b<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5f00\u542f\u5185\u6838\u8f6c\u53d1\u5e76\u5173\u95ed\u9632\u706b\u5899<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward<br>ufw disable<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003\u5730\u5740<\/h2>\n\n\n\n<p><a href=\"https:\/\/icloudnative.io\/posts\/sing-box-tutorial\/\">icloudnative.io<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/sing-box.sagernet.org\/zh\/configuration\/\">\u5f15\u8a00 &#8211; sing-box (sagernet.org)<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/chika0801\/sing-box-examples\">chika0801\/sing-box-examples: sing-box \u914d\u7f6e\u793a\u4f8b (github.com)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u4f60\u7684\u8f6f\u8def\u7531\u5230\u5e95\u662f\u7528\u6765\u505a\u65c1\u8def\u7531\u8fd8\u662f\u4e3b\u8def\u7531\uff1f\u5982\u679c\u662f\u65c1\u8def\u7531\u7684\u8bdd\uff0c\u53ea\u7528\u79d1\u5b66\u4e0a\u7f51\u4e0d\u59a8\u8bd5\u8bd5Linux\u65c1\u8def\u7531\u7f51\u5173 do [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,2],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>sing-box TUN\u6a21\u5f0f\u900f\u660e\u4ee3\u7406 &ndash; Laning &#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"sing-box TUN\u6a21\u5f0f\u900f\u660e\u4ee3\u7406 &ndash; Laning &#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u4f60\u7684\u8f6f\u8def\u7531\u5230\u5e95\u662f\u7528\u6765\u505a\u65c1\u8def\u7531\u8fd8\u662f\u4e3b\u8def\u7531\uff1f\u5982\u679c\u662f\u65c1\u8def\u7531\u7684\u8bdd\uff0c\u53ea\u7528\u79d1\u5b66\u4e0a\u7f51\u4e0d\u59a8\u8bd5\u8bd5Linux\u65c1\u8def\u7531\u7f51\u5173 do [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/\" \/>\n<meta property=\"og:site_name\" content=\"Laning &#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-26T17:16:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-24T02:19:13+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"laning\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"14\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.laning.org\/#website\",\"url\":\"https:\/\/blog.laning.org\/\",\"name\":\"\\u8fa3\\u5b81\\u7684\\u535a\\u5ba2\",\"description\":\"Learning on the go\",\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.laning.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#webpage\",\"url\":\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/\",\"name\":\"sing-box TUN\\u6a21\\u5f0f\\u900f\\u660e\\u4ee3\\u7406 &ndash; Laning &#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/#website\"},\"datePublished\":\"2024-04-26T17:16:33+00:00\",\"dateModified\":\"2024-11-24T02:19:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"https:\/\/blog.laning.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"sing-box TUN\\u6a21\\u5f0f\\u900f\\u660e\\u4ee3\\u7406\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#webpage\"},\"author\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"headline\":\"sing-box TUN\\u6a21\\u5f0f\\u900f\\u660e\\u4ee3\\u7406\",\"datePublished\":\"2024-04-26T17:16:33+00:00\",\"dateModified\":\"2024-11-24T02:19:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#webpage\"},\"wordCount\":23,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"articleSection\":[\"Docker\",\"Github\",\"RaspberryPI\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\",\"name\":\"laning\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/blog.laning.org\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g\",\"caption\":\"laning\"},\"logo\":{\"@id\":\"https:\/\/blog.laning.org\/#personlogo\"},\"sameAs\":[\"https:\/\/blog.laning.org\"],\"url\":\"https:\/\/blog.laning.org\/index.php\/author\/laning\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"sing-box TUN\u6a21\u5f0f\u900f\u660e\u4ee3\u7406 &ndash; Laning &#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/","og_locale":"zh_CN","og_type":"article","og_title":"sing-box TUN\u6a21\u5f0f\u900f\u660e\u4ee3\u7406 &ndash; Laning &#039;s Blog","og_description":"\u524d\u8a00 \u4f60\u7684\u8f6f\u8def\u7531\u5230\u5e95\u662f\u7528\u6765\u505a\u65c1\u8def\u7531\u8fd8\u662f\u4e3b\u8def\u7531\uff1f\u5982\u679c\u662f\u65c1\u8def\u7531\u7684\u8bdd\uff0c\u53ea\u7528\u79d1\u5b66\u4e0a\u7f51\u4e0d\u59a8\u8bd5\u8bd5Linux\u65c1\u8def\u7531\u7f51\u5173 do [&hellip;]","og_url":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/","og_site_name":"Laning &#039;s Blog","article_published_time":"2024-04-26T17:16:33+00:00","article_modified_time":"2024-11-24T02:19:13+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"laning","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"14\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/blog.laning.org\/#website","url":"https:\/\/blog.laning.org\/","name":"\u8fa3\u5b81\u7684\u535a\u5ba2","description":"Learning on the go","publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.laning.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"WebPage","@id":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#webpage","url":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/","name":"sing-box TUN\u6a21\u5f0f\u900f\u660e\u4ee3\u7406 &ndash; Laning &#039;s Blog","isPartOf":{"@id":"https:\/\/blog.laning.org\/#website"},"datePublished":"2024-04-26T17:16:33+00:00","dateModified":"2024-11-24T02:19:13+00:00","breadcrumb":{"@id":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.laning.org\/"},{"@type":"ListItem","position":2,"name":"sing-box TUN\u6a21\u5f0f\u900f\u660e\u4ee3\u7406"}]},{"@type":"Article","@id":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#article","isPartOf":{"@id":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#webpage"},"author":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"headline":"sing-box TUN\u6a21\u5f0f\u900f\u660e\u4ee3\u7406","datePublished":"2024-04-26T17:16:33+00:00","dateModified":"2024-11-24T02:19:13+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#webpage"},"wordCount":23,"commentCount":0,"publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"articleSection":["Docker","Github","RaspberryPI"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.laning.org\/index.php\/2024\/04\/27\/372\/#respond"]}]},{"@type":["Person","Organization"],"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93","name":"laning","image":{"@type":"ImageObject","@id":"https:\/\/blog.laning.org\/#personlogo","inLanguage":"zh-CN","url":"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g","caption":"laning"},"logo":{"@id":"https:\/\/blog.laning.org\/#personlogo"},"sameAs":["https:\/\/blog.laning.org"],"url":"https:\/\/blog.laning.org\/index.php\/author\/laning\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/372"}],"collection":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":2,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":374,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/372\/revisions\/374"}],"wp:attachment":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}