[{"data":1,"prerenderedAt":980},["ShallowReactive",2],{"navigation_docs":3,"-classroom-basics-tls":567,"-classroom-basics-tls-surround":975},[4,9,14,41,272,288,390,525,557,562],{"title":5,"path":6,"stem":7,"icon":8},"首页","\u002Fwhat-is-lolia","01.what-is-lolia","i-lucide-house",{"title":10,"path":11,"stem":12,"icon":13},"文档用法","\u002Fhow-to-read-the-docs","02.how-to-read-the-docs","i-lucide-sparkles",{"title":15,"icon":16,"path":17,"stem":18,"children":19,"page":40},"导览","i-lucide-scroll-text","\u002Foverview","03.overview",[20,25,30,35],{"title":21,"path":22,"stem":23,"icon":24},"入门阅读","\u002Foverview\u002Fintroduction","03.overview\u002F1.introduction","i-lucide-book",{"title":26,"path":27,"stem":28,"icon":29},"安全提示","\u002Foverview\u002Fsecurity","03.overview\u002F2.security","i-lucide-shield-alert",{"title":31,"path":32,"stem":33,"icon":34},"实名认证","\u002Foverview\u002Fkyc","03.overview\u002F3.kyc","i-lucide-user-check",{"title":36,"path":37,"stem":38,"icon":39},"大流量内容","\u002Foverview\u002Fbig-traffic-contents","03.overview\u002F4.big-traffic-contents","i-lucide-zap",false,{"title":42,"icon":43,"path":44,"stem":45,"children":46,"page":40},"配置指南","i-lucide-sliders-horizontal","\u002Ftutorials","04.tutorials",[47,59,81,156,166,217,246],{"title":48,"path":49,"stem":50,"children":51,"icon":58},"开始之前","\u002Ftutorials\u002Fbefore-start","04.tutorials\u002F1.before-start\u002F1.index",[52,54],{"title":53,"path":49,"stem":50},"前言",{"title":55,"path":56,"stem":57},"基本操作","\u002Ftutorials\u002Fbefore-start\u002Fbasics","04.tutorials\u002F1.before-start\u002F2.basics","i-lucide-send-horizontal",{"title":60,"icon":61,"path":62,"stem":63,"children":64,"page":40},"面板","i-lucide-panels-top-left","\u002Ftutorials\u002Fdashboard","04.tutorials\u002F2.dashboard",[65,69,73,77],{"title":66,"path":67,"stem":68},"仪表盘","\u002Ftutorials\u002Fdashboard\u002Fmainpage","04.tutorials\u002F2.dashboard\u002F1.mainpage",{"title":70,"path":71,"stem":72},"隧道创建","\u002Ftutorials\u002Fdashboard\u002Fcreate-tunnel","04.tutorials\u002F2.dashboard\u002F2.create-tunnel",{"title":74,"path":75,"stem":76},"隧道管理","\u002Ftutorials\u002Fdashboard\u002Ftunnel-management","04.tutorials\u002F2.dashboard\u002F3.tunnel-management",{"title":78,"path":79,"stem":80},"域名白名单","\u002Ftutorials\u002Fdashboard\u002Fdomain-whitelist","04.tutorials\u002F2.dashboard\u002F4.domain-whitelist",{"title":82,"icon":83,"path":84,"stem":85,"children":86,"page":40},"客户端教程","i-lucide-laptop","\u002Ftutorials\u002Fclient","04.tutorials\u002F3.client",[87,112,132,144,148,152],{"title":88,"path":89,"stem":90,"children":91,"page":40},"Lolia-CLI","\u002Ftutorials\u002Fclient\u002Flolia-frpc","04.tutorials\u002F3.client\u002F1.lolia-frpc",[92,96,100,104,108],{"title":93,"path":94,"stem":95},"简介","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fintroduction","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F1.introduction",{"title":97,"path":98,"stem":99},"Docker 部署","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fdocker","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F2.docker",{"title":101,"path":102,"stem":103},"systemd 自启动","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fsystemd","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F3.systemd",{"title":105,"path":106,"stem":107},"Windows 服务","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fwindows-service","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F4.windows-service",{"title":109,"path":110,"stem":111},"OpenWrt 自启动","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fopenwrt","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F5.openwrt",{"title":113,"path":114,"stem":115,"children":116,"page":40},"LoliaFrpClient","\u002Ftutorials\u002Fclient\u002Floliafrpclient","04.tutorials\u002F3.client\u002F2.loliafrpclient",[117,120,124,128],{"title":93,"path":118,"stem":119},"\u002Ftutorials\u002Fclient\u002Floliafrpclient\u002Fintroduction","04.tutorials\u002F3.client\u002F2.loliafrpclient\u002F1.introduction",{"title":121,"path":122,"stem":123},"Windows","\u002Ftutorials\u002Fclient\u002Floliafrpclient\u002Fwindows","04.tutorials\u002F3.client\u002F2.loliafrpclient\u002F2.Windows",{"title":125,"path":126,"stem":127},"Linux","\u002Ftutorials\u002Fclient\u002Floliafrpclient\u002Flinux","04.tutorials\u002F3.client\u002F2.loliafrpclient\u002F3.Linux",{"title":129,"path":130,"stem":131},"Android","\u002Ftutorials\u002Fclient\u002Floliafrpclient\u002Fandroid","04.tutorials\u002F3.client\u002F2.loliafrpclient\u002F4.Android",{"title":133,"path":134,"stem":135,"children":136,"page":40},"LoliaShizuku","\u002Ftutorials\u002Fclient\u002Floliashizuku","04.tutorials\u002F3.client\u002F3.loliashizuku",[137,140],{"title":93,"path":138,"stem":139},"\u002Ftutorials\u002Fclient\u002Floliashizuku\u002Floliashizuku","04.tutorials\u002F3.client\u002F3.loliashizuku\u002F1.loliashizuku",{"title":141,"path":142,"stem":143},"快速入门","\u002Ftutorials\u002Fclient\u002Floliashizuku\u002Fusage","04.tutorials\u002F3.client\u002F3.loliashizuku\u002F2.usage",{"title":145,"path":146,"stem":147},"Kairo","\u002Ftutorials\u002Fclient\u002Fkairo","04.tutorials\u002F3.client\u002F4.kairo",{"title":149,"path":150,"stem":151},"MCSManager FRP模板","\u002Ftutorials\u002Fclient\u002Fmcsm","04.tutorials\u002F3.client\u002F5.mcsm",{"title":153,"path":154,"stem":155},"MSLX 面板插件","\u002Ftutorials\u002Fclient\u002Fmslx","04.tutorials\u002F3.client\u002F6.mslx",{"title":157,"icon":158,"path":159,"stem":160,"children":161,"page":40},"常见应用","i-lucide-toolbox","\u002Ftutorials\u002Fapp","04.tutorials\u002F4.app",[162],{"title":163,"path":164,"stem":165},"RDP 远程桌面","\u002Ftutorials\u002Fapp\u002Frdp","04.tutorials\u002F4.app\u002F1.rdp",{"title":167,"icon":168,"path":169,"stem":170,"children":171,"page":40},"游戏应用","i-lucide-gamepad-2","\u002Ftutorials\u002Fgame","04.tutorials\u002F5.game",[172,213],{"title":173,"path":174,"stem":175,"children":176,"page":40},"Minecraft","\u002Ftutorials\u002Fgame\u002Fminecraft","04.tutorials\u002F5.game\u002F1.minecraft",[177,181,185,189,193,197,201,205,209],{"title":178,"path":179,"stem":180},"Java 版局域网联机","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fmcjavalan","04.tutorials\u002F5.game\u002F1.minecraft\u002F1.mcjavalan",{"title":182,"path":183,"stem":184},"Java 版独立服务器","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fmcjavaserver","04.tutorials\u002F5.game\u002F1.minecraft\u002F2.mcjavaserver",{"title":186,"path":187,"stem":188},"Simple Voice Chat","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fsimplevoicechat","04.tutorials\u002F5.game\u002F1.minecraft\u002F3.simplevoicechat",{"title":190,"path":191,"stem":192},"外置登录联机教程","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fauthlib-injector","04.tutorials\u002F5.game\u002F1.minecraft\u002F4.authlib-injector",{"title":194,"path":195,"stem":196},"基岩版服务器（BDS）","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fbedrock-nethernet","04.tutorials\u002F5.game\u002F1.minecraft\u002F5.bedrock-nethernet",{"title":198,"path":199,"stem":200},"旧版基岩版（RakNet）","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fbedrock-raknet","04.tutorials\u002F5.game\u002F1.minecraft\u002F6.bedrock-raknet",{"title":202,"path":203,"stem":204},"Geyser 互通服","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fgeysermc","04.tutorials\u002F5.game\u002F1.minecraft\u002F7.geysermc",{"title":206,"path":207,"stem":208},"旧版 Geyser（RakNet）","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fgeyser-raknet","04.tutorials\u002F5.game\u002F1.minecraft\u002F8.geyser-raknet",{"title":210,"path":211,"stem":212},"SRV 解析","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fsrv-record","04.tutorials\u002F5.game\u002F1.minecraft\u002F9.srv-record",{"title":214,"path":215,"stem":216},"星露谷物语多人联机","\u002Ftutorials\u002Fgame\u002Fstardew-valley","04.tutorials\u002F5.game\u002F2.stardew-valley",{"title":218,"icon":219,"path":220,"stem":221,"children":222,"page":40},"网页应用","i-lucide-link-2","\u002Ftutorials\u002Fweb","04.tutorials\u002F6.web",[223,226,230,234,238,242],{"title":141,"path":224,"stem":225},"\u002Ftutorials\u002Fweb\u002Fquick-start","04.tutorials\u002F6.web\u002F1.quick-start",{"title":227,"path":228,"stem":229},"DNS 配置","\u002Ftutorials\u002Fweb\u002Fdns-config","04.tutorials\u002F6.web\u002F2.dns-config",{"title":231,"path":232,"stem":233},"Apache","\u002Ftutorials\u002Fweb\u002Fapache","04.tutorials\u002F6.web\u002F3.apache",{"title":235,"path":236,"stem":237},"NGINX","\u002Ftutorials\u002Fweb\u002Fnginx","04.tutorials\u002F6.web\u002F4.nginx",{"title":239,"path":240,"stem":241},"获取访客真实IP","\u002Ftutorials\u002Fweb\u002Fget-realip","04.tutorials\u002F6.web\u002F5.get-realip",{"title":243,"path":244,"stem":245},"雷池WAF","\u002Ftutorials\u002Fweb\u002Fsafeline","04.tutorials\u002F6.web\u002F6.safeline",{"title":247,"icon":248,"path":249,"stem":250,"children":251,"page":40},"进阶配置","i-lucide-file-cog","\u002Ftutorials\u002Fadvanced","04.tutorials\u002F7.advanced",[252,256,260,264,268],{"title":253,"path":254,"stem":255},"配置PROXY protocol","\u002Ftutorials\u002Fadvanced\u002Fproxy-protocol","04.tutorials\u002F7.advanced\u002F1.proxy-protocol",{"title":257,"path":258,"stem":259},"双栈网络配置","\u002Ftutorials\u002Fadvanced\u002Fmixed-v4-v6","04.tutorials\u002F7.advanced\u002F2.mixed-v4-v6",{"title":261,"path":262,"stem":263},"AutoTLS","\u002Ftutorials\u002Fadvanced\u002Fautotls","04.tutorials\u002F7.advanced\u002F3.autotls",{"title":265,"path":266,"stem":267},"多个隧道创建和使用","\u002Ftutorials\u002Fadvanced\u002Fmulti-tunnel","04.tutorials\u002F7.advanced\u002F4.multi-tunnel",{"title":269,"path":270,"stem":271},"使用自己的域名","\u002Ftutorials\u002Fadvanced\u002Fcname","04.tutorials\u002F7.advanced\u002F5.cname",{"title":273,"icon":274,"defaultOpen":40,"path":275,"stem":276,"children":277,"page":40},"开发者","i-lucide-folder-code","\u002Fdevelopers","05.developers",[278,283],{"title":279,"path":280,"stem":281,"icon":282},"LoliaFRP Open API","\u002Fdevelopers\u002Fopenapi","05.developers\u002F1.openapi","i-lucide-webhook",{"title":284,"path":285,"stem":286,"icon":287},"OAuth2 鉴权","\u002Fdevelopers\u002Foauth","05.developers\u002F2.oauth","i-lucide-fingerprint-pattern",{"title":289,"icon":290,"defaultOpen":40,"path":291,"stem":292,"children":293,"page":40},"疑难解答","i-lucide-bug-off","\u002Ftroubleshooting","06.troubleshooting",[294,319,329,338,359,372],{"title":48,"icon":295,"path":296,"stem":297,"children":298,"page":40},"i-lucide-list-checks","\u002Ftroubleshooting\u002Fbefore-start","06.troubleshooting\u002F1.before-start",[299,303,307,311,315],{"title":300,"path":301,"stem":302},"通用问题","\u002Ftroubleshooting\u002Fbefore-start\u002Fgeneral","06.troubleshooting\u002F1.before-start\u002F1.general",{"title":304,"path":305,"stem":306},"如何提问","\u002Ftroubleshooting\u002Fbefore-start\u002Fhow-to-ask-questions","06.troubleshooting\u002F1.before-start\u002F2.how-to-ask-questions",{"title":308,"path":309,"stem":310},"分析日志","\u002Ftroubleshooting\u002Fbefore-start\u002Fread-the-logs","06.troubleshooting\u002F1.before-start\u002F3.read-the-logs",{"title":312,"path":313,"stem":314},"定位问题","\u002Ftroubleshooting\u002Fbefore-start\u002Fclassify-questions","06.troubleshooting\u002F1.before-start\u002F4.classify-questions",{"title":316,"path":317,"stem":318},"平台限制","\u002Ftroubleshooting\u002Fbefore-start\u002Fplatform-limits","06.troubleshooting\u002F1.before-start\u002F5.platform-limits",{"title":320,"icon":321,"path":322,"stem":323,"children":324,"page":40},"客户端故障","i-custom-laptop-off","\u002Ftroubleshooting\u002Fclient","06.troubleshooting\u002F3.client",[325],{"title":326,"path":327,"stem":328},"杀软误报","\u002Ftroubleshooting\u002Fclient\u002Fanti-malware","06.troubleshooting\u002F3.client\u002Fanti-malware",{"title":157,"icon":330,"path":331,"stem":332,"children":333,"page":40},"i-custom-toolbox-off","\u002Ftroubleshooting\u002Fapp","06.troubleshooting\u002F4.app",[334],{"title":335,"path":336,"stem":337},"远程桌面","\u002Ftroubleshooting\u002Fapp\u002Frdp","06.troubleshooting\u002F4.app\u002F1.rdp",{"title":167,"icon":339,"path":340,"stem":341,"children":342,"page":40},"i-custom-gamepad-2-off","\u002Ftroubleshooting\u002Fgames","06.troubleshooting\u002F5.games",[343,347],{"title":344,"path":345,"stem":346},"Stardew Valley","\u002Ftroubleshooting\u002Fgames\u002Fstardew-valley","06.troubleshooting\u002F5.games\u002F2.stardew-valley",{"title":173,"path":348,"stem":349,"children":350,"page":40},"\u002Ftroubleshooting\u002Fgames\u002Fminecraft","06.troubleshooting\u002F5.games\u002Fminecraft",[351,355],{"title":352,"path":353,"stem":354},"Mc Lan","\u002Ftroubleshooting\u002Fgames\u002Fminecraft\u002Fmc-lan","06.troubleshooting\u002F5.games\u002Fminecraft\u002F1.mc-lan",{"title":356,"path":357,"stem":358},"Minecraft Java SRV与forced hosts搭配","\u002Ftroubleshooting\u002Fgames\u002Fminecraft\u002Fminecraft-srv-forced-hosts","06.troubleshooting\u002F5.games\u002Fminecraft\u002F1.minecraft-srv-forced-hosts",{"title":360,"icon":361,"path":362,"stem":363,"children":364,"page":40},"Web 应用","i-lucide-globe-off","\u002Ftroubleshooting\u002Fweb","06.troubleshooting\u002F6.web",[365,368],{"title":231,"path":366,"stem":367},"\u002Ftroubleshooting\u002Fweb\u002Fapache","06.troubleshooting\u002F6.web\u002F1.apache",{"title":369,"path":370,"stem":371},"Nginx","\u002Ftroubleshooting\u002Fweb\u002Fnginx","06.troubleshooting\u002F6.web\u002F2.nginx",{"title":373,"icon":374,"path":375,"stem":376,"children":377,"page":40},"网络问题","i-lucide-wifi-off","\u002Ftroubleshooting\u002Fnetwork","06.troubleshooting\u002F8.network",[378,382,386],{"title":379,"path":380,"stem":381},"无法连接服务器","\u002Ftroubleshooting\u002Fnetwork\u002Fremote","06.troubleshooting\u002F8.network\u002F1.remote",{"title":383,"path":384,"stem":385},"无法连接至本地服务","\u002Ftroubleshooting\u002Fnetwork\u002Flocal","06.troubleshooting\u002F8.network\u002F2.local",{"title":387,"path":388,"stem":389},"网络卡顿","\u002Ftroubleshooting\u002Fnetwork\u002Flags","06.troubleshooting\u002F8.network\u002F3.lags",{"title":391,"icon":392,"defaultOpen":40,"path":393,"stem":394,"children":395,"page":40},"用户手册","i-lucide-book-bookmark","\u002Freferences","07.references",[396,453,480,513],{"title":397,"icon":61,"path":398,"stem":399,"children":400,"page":40},"网页控制台","\u002Freferences\u002Fplatform","07.references\u002F1.platform",[401,404,415,423,440],{"title":66,"path":402,"stem":403},"\u002Freferences\u002Fplatform\u002Fdashboard","07.references\u002F1.platform\u002F1.dashboard",{"title":405,"path":406,"stem":407,"children":408,"page":40},"隧道","\u002Freferences\u002Fplatform\u002Ftunnel","07.references\u002F1.platform\u002F2.tunnel",[409,412],{"title":74,"path":410,"stem":411},"\u002Freferences\u002Fplatform\u002Ftunnel\u002Ftunnel-management","07.references\u002F1.platform\u002F2.tunnel\u002F1.tunnel-management",{"title":70,"path":413,"stem":414},"\u002Freferences\u002Fplatform\u002Ftunnel\u002Fcreate-tunnel","07.references\u002F1.platform\u002F2.tunnel\u002F2.create-tunnel",{"title":416,"path":417,"stem":418,"children":419,"page":40},"域名管理","\u002Freferences\u002Fplatform\u002Fdomain-management","07.references\u002F1.platform\u002F3.domain-management",[420],{"title":78,"path":421,"stem":422},"\u002Freferences\u002Fplatform\u002Fdomain-management\u002Fwhitelist","07.references\u002F1.platform\u002F3.domain-management\u002F1.whitelist",{"title":424,"path":425,"stem":426,"children":427,"page":40},"OAuth","\u002Freferences\u002Fplatform\u002Foauth","07.references\u002F1.platform\u002F4.oauth",[428,432,436],{"title":429,"path":430,"stem":431},"应用管理","\u002Freferences\u002Fplatform\u002Foauth\u002Fapp-management","07.references\u002F1.platform\u002F4.oauth\u002F1.app-management",{"title":433,"path":434,"stem":435},"创建应用","\u002Freferences\u002Fplatform\u002Foauth\u002Fcreate-app","07.references\u002F1.platform\u002F4.oauth\u002F2.create-app",{"title":437,"path":438,"stem":439},"授权管理","\u002Freferences\u002Fplatform\u002Foauth\u002Fauthorizations","07.references\u002F1.platform\u002F4.oauth\u002F3.authorizations",{"title":441,"path":442,"stem":443,"children":444,"page":40},"账户设置","\u002Freferences\u002Fplatform\u002Fsettings","07.references\u002F1.platform\u002F5.settings",[445,449],{"title":446,"path":447,"stem":448},"基础设置","\u002Freferences\u002Fplatform\u002Fsettings\u002Fsettings","07.references\u002F1.platform\u002F5.settings\u002F1.settings",{"title":450,"path":451,"stem":452},"安全性","\u002Freferences\u002Fplatform\u002Fsettings\u002Fsecurity","07.references\u002F1.platform\u002F5.settings\u002F2.security",{"title":454,"icon":455,"path":456,"stem":457,"children":458},"命令行客户端","i-lucide-square-terminal","\u002Freferences\u002Flolia-frpc","07.references\u002F2.lolia-frpc\u002Findex",[459,461,465,469,472,476],{"title":460,"path":456,"stem":457},"概览",{"title":462,"path":463,"stem":464},"启动与连接","\u002Freferences\u002Flolia-frpc\u002Fstartup","07.references\u002F2.lolia-frpc\u002F2.startup",{"title":466,"path":467,"stem":468},"参数与子命令","\u002Freferences\u002Flolia-frpc\u002Fflags","07.references\u002F2.lolia-frpc\u002F3.flags",{"title":261,"path":470,"stem":471},"\u002Freferences\u002Flolia-frpc\u002Fautotls","07.references\u002F2.lolia-frpc\u002F4.autotls",{"title":473,"path":474,"stem":475},"运行与诊断","\u002Freferences\u002Flolia-frpc\u002Fruntime","07.references\u002F2.lolia-frpc\u002F5.runtime",{"title":477,"path":478,"stem":479},"构建与发布","\u002Freferences\u002Flolia-frpc\u002Frelease","07.references\u002F2.lolia-frpc\u002F6.release",{"title":481,"icon":482,"path":483,"stem":484,"children":485,"page":40},"图形化客户端","i-lucide-app-window-mac","\u002Freferences\u002Fgui","07.references\u002F3.gui",[486,502,510],{"title":113,"path":487,"stem":488,"children":489,"page":40},"\u002Freferences\u002Fgui\u002Floliafrpclient","07.references\u002F3.gui\u002F1.loliafrpclient",[490,493,496,499],{"title":93,"path":491,"stem":492},"\u002Freferences\u002Fgui\u002Floliafrpclient\u002Fintroduction","07.references\u002F3.gui\u002F1.loliafrpclient\u002F1.introduction",{"title":121,"path":494,"stem":495},"\u002Freferences\u002Fgui\u002Floliafrpclient\u002Fwindows","07.references\u002F3.gui\u002F1.loliafrpclient\u002F2.Windows",{"title":125,"path":497,"stem":498},"\u002Freferences\u002Fgui\u002Floliafrpclient\u002Flinux","07.references\u002F3.gui\u002F1.loliafrpclient\u002F3.Linux",{"title":129,"path":500,"stem":501},"\u002Freferences\u002Fgui\u002Floliafrpclient\u002Fandroid","07.references\u002F3.gui\u002F1.loliafrpclient\u002F4.Android",{"title":133,"path":503,"stem":504,"children":505,"page":40},"\u002Freferences\u002Fgui\u002Floliashizuku","07.references\u002F3.gui\u002F2.loliashizuku",[506],{"title":507,"path":508,"stem":509},"桌面端功能","\u002Freferences\u002Fgui\u002Floliashizuku\u002Fusage","07.references\u002F3.gui\u002F2.loliashizuku\u002F2.usage",{"title":145,"path":511,"stem":512},"\u002Freferences\u002Fgui\u002Fkairo","07.references\u002F3.gui\u002F3.kairo",{"title":514,"icon":515,"path":516,"stem":517,"children":518,"page":40},"面板客户端","i-lucide-app-window","\u002Freferences\u002Fweb","07.references\u002F4.web",[519,522],{"title":149,"path":520,"stem":521},"\u002Freferences\u002Fweb\u002Fmcsm","07.references\u002F4.web\u002F1.mcsm",{"title":153,"path":523,"stem":524},"\u002Freferences\u002Fweb\u002Fmslx","07.references\u002F4.web\u002F2.mslx",{"title":526,"icon":527,"defaultOpen":40,"path":528,"stem":529,"children":530,"page":40},"扩展阅读","i-lucide-school","\u002Fclassroom","08.classroom",[531,535],{"title":93,"path":532,"stem":533,"icon":534},"\u002Fclassroom\u002Fabout","08.classroom\u002F1.about","i-lucide-text-initial",{"title":536,"icon":537,"path":538,"stem":539,"children":540,"page":40},"相关原理","i-lucide-library","\u002Fclassroom\u002Fbasics","08.classroom\u002F2.basics",[541,545,549,553],{"title":542,"path":543,"stem":544},"frp 的工作基础","\u002Fclassroom\u002Fbasics\u002Ffrp-base","08.classroom\u002F2.basics\u002F1.frp-base",{"title":546,"path":547,"stem":548},"TLS 与证书","\u002Fclassroom\u002Fbasics\u002Ftls","08.classroom\u002F2.basics\u002F2.tls",{"title":550,"path":551,"stem":552},"密码学基础","\u002Fclassroom\u002Fbasics\u002Fcrypto","08.classroom\u002F2.basics\u002F3.crypto",{"title":554,"path":555,"stem":556},"HTTP 虚拟主机","\u002Fclassroom\u002Fbasics\u002Fhttp-vhost","08.classroom\u002F2.basics\u002F4.http-vhost",{"title":558,"path":559,"stem":560,"icon":561},"参与贡献","\u002Fcontributing","09.contributing","i-lucide-git-pull-request-arrow",{"title":563,"path":564,"stem":565,"icon":566},"社区","\u002Fcommunity","10.community","i-lucide-users",{"id":568,"title":546,"body":569,"description":968,"extension":969,"links":970,"meta":971,"navigation":972,"path":547,"seo":973,"stem":548,"__hash__":974},"docs\u002F08.classroom\u002F2.basics\u002F2.tls.md",{"type":570,"value":571,"toc":955},"minimark",[572,583,588,592,614,617,621,624,676,683,686,691,705,708,780,783,787,790,852,855,881,885,888,904,907,911,921,928,932],[573,574,575,576,579,580,582],"tip",{},"本文只讲原理，不涉及配置。启用 HTTPS 请见 ",[577,578,261],"a",{"href":262},"；密码套件、密钥交换等算法细节见",[577,581,550],{"href":551},"。",[584,585,587],"h2",{"id":586},"_1-加密与身份","1. 加密与身份",[589,590,591],"p",{},"TLS 同时解决两件事：",[593,594,595,603],"ul",{},[596,597,598,602],"li",{},[599,600,601],"strong",{},"加密","：链路被截获也读不出内容，被篡改也能发现",[596,604,605,608,609,613],{},[599,606,607],{},"身份","：向访客证明「连接的确实是 ",[610,611,612],"code",{},"example.com","」，而不是冒充它的中间设备",[589,615,616],{},"两者是分开的。任何一对公私钥都能协商出加密通道，自签证书同样可以；证书只负责身份。所以「自签不安全」的准确含义是「没人能确认它是谁」，而不是「流量没有加密」。",[584,618,620],{"id":619},"_2-证书","2. 证书",[589,622,623],{},"证书是一份由 CA 签名的文件，核心内容如下：",[625,626,627,640],"table",{},[628,629,630],"thead",{},[631,632,633,637],"tr",{},[634,635,636],"th",{},"内容",[634,638,639],{},"作用",[641,642,643,652,660,668],"tbody",{},[631,644,645,649],{},[646,647,648],"td",{},"域名",[646,650,651],{},"这张证书代表哪些名字，格式见 2.1",[631,653,654,657],{},[646,655,656],{},"公钥",[646,658,659],{},"与私钥配对，用于握手",[631,661,662,665],{},[646,663,664],{},"有效期",[646,666,667],{},"到期即失效，需要重新签发",[631,669,670,673],{},[646,671,672],{},"签发者与签名",[646,674,675],{},"让客户端能从内置的根证书验到它",[589,677,678,679,682],{},"私钥不在证书里，与证书分开保存。",[599,680,681],{},"谁终止 TLS，私钥就在谁手里","：证书可以公开，私钥泄露等于身份被冒用。",[589,684,685],{},"验证是一条链：客户端从操作系统或浏览器内置的根证书出发，用签发者的公钥逐级验签，直到这张证书。链上少一环——例如只部署了域名证书、漏掉中间证书——验证就不成立，部分客户端会直接报证书无效。",[687,688,690],"h3",{"id":689},"_21-subject-alternative-name","2.1 Subject Alternative Name",[589,692,693,694,697,698,701,702,704],{},"证书里列出域名的字段是 ",[610,695,696],{},"Subject Alternative Name","（SAN）。客户端只看这一项，",[610,699,700],{},"CN"," 已被忽略，只填 ",[610,703,700],{}," 的证书在现代客户端上不会被接受。",[589,706,707],{},"匹配规则：",[625,709,710,720],{},[628,711,712],{},[631,713,714,717],{},[634,715,716],{},"规则",[634,718,719],{},"说明",[641,721,722,730,752,760,768],{},[631,723,724,727],{},[646,725,726],{},"逐字匹配",[646,728,729],{},"访问的域名要与 SAN 中某一项完全一致（大小写不敏感）",[631,731,732,735],{},[646,733,734],{},"通配符",[646,736,737,738,741,742,745,746,748,749],{},"只能位于最左一个标签，且只覆盖一级：",[610,739,740],{},"*.example.com"," 含 ",[610,743,744],{},"a.example.com","，不含 ",[610,747,612],{},"，也不含 ",[610,750,751],{},"a.b.example.com",[631,753,754,757],{},[646,755,756],{},"多个名字",[646,758,759],{},"一个 SAN 可以列出多个域名，一张证书服务多个站点",[631,761,762,765],{},[646,763,764],{},"IP 地址",[646,766,767],{},"IP 也能写进 SAN，用 IP 直连时客户端校验的是这一项",[631,769,770,773],{},[646,771,772],{},"非 ASCII",[646,774,775,776,779],{},"证书里写 punycode 形式（",[610,777,778],{},"xn--"," 开头）",[589,781,782],{},"名字写死在证书里，所以换域名就意味着重新签发；用 IP 访问只签了域名的证书，同样校验不过。",[584,784,786],{"id":785},"_3-握手","3. 握手",[589,788,789],{},"以 TLS 1.3 为例：",[791,792,793,805,817,838,846],"ol",{},[596,794,795,800,801,804],{},[599,796,797],{},[610,798,799],{},"ClientHello","：访客报出支持的版本与密码套件、一个随机数（",[610,802,803],{},"client_random","），并附上自己的临时公钥；SNI 与 ALPN 也在这里。整条消息都是明文",[596,806,807,812,813,816],{},[599,808,809],{},[610,810,811],{},"ServerHello","：服务器选定一套密码套件，回一个随机数（",[610,814,815],{},"server_random","）和自己的临时公钥。此刻双方的共享秘密已经成立，握手密钥随之导出",[596,818,819,822,823,826,827,830,831,834,835],{},[599,820,821],{},"此后全部加密","：",[610,824,825],{},"EncryptedExtensions","（ALPN 结果等）→ ",[610,828,829],{},"Certificate","（证书链）→ ",[610,832,833],{},"CertificateVerify","（用证书私钥对握手记录签名）→ ",[610,836,837],{},"Finished",[596,839,840,845],{},[599,841,842,843],{},"客户端回 ",[610,844,837],{},"：校验通过后才开始发送应用数据",[596,847,848,851],{},[599,849,850],{},"应用数据","：用协商出的会话密钥对称加密",[589,853,854],{},"几点值得注意：",[593,856,857,868,873,878],{},[596,858,859,860,863,864,867],{},"证书链在 1.3 里是密钥成立",[599,861,862],{},"之后","才发出，且已经加密；TLS 1.2 则是证书与 ",[610,865,866],{},"ServerKeyExchange"," 同一趟明文送出",[596,869,870,871],{},"明文只剩第一条消息，其中的 SNI 正是节点能在不解密的情况下按域名选路的依据，见 ",[577,872,554],{"href":555},[596,874,875,877],{},[610,876,833],{}," 用私钥签名，把证书与本次握手绑定在一起；只看证书链验不出私钥在谁手里",[596,879,880],{},"默认一次往返完成握手；会话恢复可以 0-RTT，代价是 0-RTT 数据有重放风险",[584,882,884],{"id":883},"_4-双向认证mtls","4. 双向认证（mTLS）",[589,886,887],{},"默认流程里只有服务器出示证书，访客验证它，这叫单向认证。**双向认证（mTLS）**要求访客也出示证书，服务器同样验它的签名链，并确认它由自己信任的 CA 签发。",[589,889,890,891,894,895,897,898,900,901,903],{},"在 TLS 1.3 里，服务器发出 ",[610,892,893],{},"CertificateRequest","，客户端回应自己的 ",[610,896,829],{}," 与 ",[610,899,833],{},"，握手其余部分不变；TLS 1.2 的 ",[610,902,893],{}," 位置靠前一些，本质相同。",[589,905,906],{},"两边的证书通常来自不同地方：服务器证书要能被不特定的客户端信任，由公开 CA 签发；客户端证书一般由自己架的 CA 签发，只把该 CA 的证书交给服务器校验即可。",[584,908,910],{"id":909},"_5-签发","5. 签发",[589,912,913,914,920],{},"签发是 CA 用自己的私钥为证书签名。公开 CA 不能凭空相信一个域名，签发前要求申请人先证明自己控制着它，证明方式有几种，区别只在于把证明放在哪里，详见 ",[577,915,919],{"href":916,"rel":917},"https:\u002F\u002Fletsencrypt.org\u002Fzh-cn\u002Fdocs\u002Fchallenge-types\u002F",[918],"nofollow","Let's Encrypt 的挑战类型说明","。自签不需要证明，代价是没有任何客户端会信任它，除非手动把这张证书或自建的根证书导入信任列表，所以只适合自用测试。",[589,922,923,924,927],{},"Lolia 的 AutoTLS 用的是 Let's Encrypt 的 TLS-ALPN-01，并且在 ",[599,925,926],{},"frpc 本地","完成签发与续期：验证流量先到达节点，再按域名交给 frpc。",[584,929,931],{"id":930},"_6-结论","6. 结论",[593,933,934,937,940,943,946,949,952],{},[596,935,936],{},"加密与身份是两件事，自签能加密但证明不了身份",[596,938,939],{},"客户端只认 SAN 与信任链，名字对不上或链断了都视为无效",[596,941,942],{},"TLS 1.3 先用临时公钥成立密钥，证书在加密之后才送达",[596,944,945],{},"证书与私钥成对，谁终止 TLS 谁持有私钥",[596,947,948],{},"签发的是域名而不是机器，域名变了就要重签",[596,950,951],{},"双向认证让访客也出示证书，但它只证明身份，授权仍在应用层",[596,953,954],{},"签发发生在本地，验证流量要能经节点到达 frpc",{"title":956,"searchDepth":957,"depth":957,"links":958},"",2,[959,960,964,965,966,967],{"id":586,"depth":957,"text":587},{"id":619,"depth":957,"text":620,"children":961},[962],{"id":689,"depth":963,"text":690},3,{"id":785,"depth":957,"text":786},{"id":883,"depth":957,"text":884},{"id":909,"depth":957,"text":910},{"id":930,"depth":957,"text":931},"TLS 如何证明服务器身份、证书的 SAN 匹配规则、TLS 1.3 的握手流程与双向认证（mTLS）","md",null,{},true,{"title":546,"description":968},"V35uAKAE7iVOTfkxJqQ3R7RdIp2g_ahqHRGIGwZxqXE",[976,978],{"title":542,"path":543,"stem":544,"description":977,"children":-1},"frps 与 frpc 如何建立连接，隧道按什么层级把访客请求转发到本地服务",{"title":550,"path":551,"stem":552,"description":979,"children":-1},"TLS 用到的两类密码：密钥交换与前向保密、AEAD、密钥派生，以及密码套件名字的读法",1795152100338]