[{"data":1,"prerenderedAt":1095},["ShallowReactive",2],{"navigation_docs":3,"-classroom-basics-frp-base":567,"-classroom-basics-frp-base-surround":1090},[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":542,"body":569,"description":1083,"extension":1084,"links":1085,"meta":1086,"navigation":1087,"path":543,"seo":1088,"stem":544,"__hash__":1089},"docs\u002F08.classroom\u002F2.basics\u002F1.frp-base.md",{"type":570,"value":571,"toc":1066},"minimark",[572,580,585,596,599,602,606,609,626,629,633,636,639,705,708,712,719,733,736,740,746,749,752,756,839,843,959,963,966,969,978,981,984,991,995,1022,1027,1031,1041,1045],[573,574,575,576,579],"tip",{},"本文只讲原理，不涉及面板操作。如果您只想尽快跑通一条隧道，可以先看",[577,578,21],"a",{"href":22},"。",[581,582,584],"h2",{"id":583},"_1-关于frp","1. 关于frp",[586,587,588,589,595],"p",{},"frp (Fast Reverse Proxy)是一项反向代理技术的实现，大多数客户端代码（如LoliaFrpClient）均参考于上游 ",[577,590,594],{"href":591,"rel":592},"https:\u002F\u002Fgithub.com\u002Ffatedier\u002Ffrp",[593],"nofollow","fatedier\u002Ffrp"," 的实现。",[586,597,598],{},"LoliaFRP支持使用上游版本连接服务。",[586,600,601],{},"简单的说frp的功能是用于将内网的服务暴露到公网，并允许外部用户访问暴露的内网服务。",[581,603,605],{"id":604},"_2-两个进程","2. 两个进程",[586,607,608],{},"frp 由两个进程组成：",[610,611,612,620],"ul",{},[613,614,615,619],"li",{},[616,617,618],"strong",{},"frps","：跑在节点上，有公网地址",[613,621,622,625],{},[616,623,624],{},"frpc","：跑在您自己的电脑上，主动向节点发起连接",[586,627,628],{},"一条隧道就是「节点上的一个入口」到「您本地的服务」之间的映射。流量最终都要由 frpc 送到您本地的服务上，节点本身不提供任何服务。",[581,630,632],{"id":631},"_3-和正向代理的区别","3. 和正向代理的区别",[586,634,635],{},"正向代理是客户端被配置成走代理，代理替客户端去访问外部；对外部服务器来说请求来自代理，客户端被隐藏。",[586,637,638],{},"frp 正好相反：",[640,641,642,657],"table",{},[643,644,645],"thead",{},[646,647,648,651,654],"tr",{},[649,650],"th",{},[649,652,653],{},"正向代理",[649,655,656],{},"frp",[658,659,660,672,683,694],"tbody",{},[646,661,662,666,669],{},[663,664,665],"td",{},"谁发起连接",[663,667,668],{},"客户端主动连代理",[663,670,671],{},"frpc 主动连节点",[646,673,674,677,680],{},[663,675,676],{},"替谁访问",[663,678,679],{},"替客户端访问外部",[663,681,682],{},"替访客访问您本地的服务",[646,684,685,688,691],{},[663,686,687],{},"谁被隐藏",[663,689,690],{},"客户端地址",[663,692,693],{},"您的内网地址",[646,695,696,699,702],{},[663,697,698],{},"典型用途",[663,700,701],{},"访问受限资源、隐藏来源",[663,703,704],{},"让外网访问内网服务",[586,706,707],{},"访客不需要做任何配置，直接连节点即可；被隐藏的是您的内网，被暴露的是您的服务。",[581,709,711],{"id":710},"_4-控制连接","4. 控制连接",[586,713,714,715,718],{},"frpc 启动后会主动向节点发起一条连接，这条叫",[616,716,717],{},"控制连接","，它负责：",[610,720,721,724,727,730],{},[613,722,723],{},"认证，确认这条隧道属于哪个账号",[613,725,726],{},"注册隧道，告诉 frps 这条隧道监听哪个远程端口、对应哪个域名",[613,728,729],{},"心跳保活，默认 30 秒一次，90 秒收不到回应即判定断线并自动重连",[613,731,732],{},"接收 frps 下发的指令",[586,734,735],{},"这条连接的方向是出站，所以您不需要公网 IP，也不需要在家里的路由器上做端口映射或开启 UPnP。控制连接断了，隧道就不可用。",[581,737,739],{"id":738},"_5-工作连接","5. 工作连接",[586,741,742,743,579],{},"有访客连进来时，frps 通过控制连接通知 frpc，frpc 再向 frps 发起一条新连接来承载这次访问的数据，这条叫",[616,744,745],{},"工作连接",[586,747,748],{},"所以数据通道同样是从内网往外建立的，frps 只负责把两头对接起来。",[586,750,751],{},"一次访问通常对应一条工作连接；开启多路复用时，多条访问可以共用一条连接，各自是独立的流。",[581,753,755],{"id":754},"_6-转发发生在哪一层","6. 转发发生在哪一层",[640,757,758,774],{},[643,759,760],{},[646,761,762,765,768,771],{},[649,763,764],{},"层级",[649,766,767],{},"按什么转发",[649,769,770],{},"能否看到内容",[649,772,773],{},"典型实现",[658,775,776,790,817],{},[646,777,778,781,784,787],{},[663,779,780],{},"L3",[663,782,783],{},"IP 地址",[663,785,786],{},"否",[663,788,789],{},"路由器、VPN、IP 隧道",[646,791,792,795,798,801],{},[663,793,794],{},"L4",[663,796,797],{},"IP + 端口",[663,799,800],{},"否，只有地址和端口",[663,802,803,804,808,809,812,813,816],{},"frp 的 ",[805,806,807],"code",{},"TCP","\u002F",[805,810,811],{},"UDP"," 隧道、iptables DNAT、nginx ",[805,814,815],{},"stream","、LVS",[646,818,819,822,825,828],{},[663,820,821],{},"L7",[663,823,824],{},"协议内容（Host、URL、Header、SNI）",[663,826,827],{},"是（未加密时）",[663,829,830,831,834,835,838],{},"nginx 的 ",[805,832,833],{},"proxy_pass","、CDN、frp 的 ",[805,836,837],{},"HTTP"," 隧道",[581,840,842],{"id":841},"_7-几种转发方式的区别","7. 几种转发方式的区别",[640,844,845,860],{},[643,846,847],{},[646,848,849,852,854,857],{},[649,850,851],{},"方式",[649,853,764],{},[649,855,856],{},"是否重建连接",[649,858,859],{},"后端看到的来源",[658,861,862,876,892,910,930,946],{},[646,863,864,867,870,873],{},[663,865,866],{},"iptables DNAT",[663,868,869],{},"网关转发，L3\u002FL4",[663,871,872],{},"否，同一条连接",[663,874,875],{},"只做 DNAT 时是访客 IP；配了 SNAT 后是网关 IP",[646,877,878,883,886,889],{},[663,879,880,881],{},"nginx ",[805,882,815],{},[663,884,885],{},"用户态 L4",[663,887,888],{},"是",[663,890,891],{},"nginx 的 IP（需 PROXY protocol 补）",[646,893,894,898,901,903],{},[663,895,880,896],{},[805,897,833],{},[663,899,900],{},"用户态 L7",[663,902,888],{},[663,904,905,906,909],{},"nginx 的 IP（靠 ",[805,907,908],{},"X-Forwarded-For"," 补）",[646,911,912,919,922,924],{},[663,913,914,915,808,917],{},"frp ",[805,916,807],{},[805,918,811],{},[663,920,921],{},"用户态 L4，经隧道",[663,923,888],{},[663,925,926,927],{},"frpc 的 IP，通常 ",[805,928,929],{},"127.0.0.1",[646,931,932,936,939,941],{},[663,933,914,934],{},[805,935,837],{},[663,937,938],{},"用户态 L7，经隧道",[663,940,888],{},[663,942,943,944],{},"frpc 的 IP，但会自动追加 ",[805,945,908],{},[646,947,948,951,954,956],{},[663,949,950],{},"VPN",[663,952,953],{},"封装 IP 包，L3",[663,955,786],{},[663,957,958],{},"访客 IP",[960,961,962],"h3",{"id":962},"网关转发与断链重建",[586,964,965],{},"iptables 的 NAT 是网关功能：这台机器要作为流量必经的网关，按预设规则把流量转发出去，改写地址只是让转发成立的手段（DNAT 改目的、SNAT 改源，两者一般配合使用）。连接本身不重建，所以它看不到也改不了应用层内容——不能按 Host 选后端、不能终止 TLS。",[586,967,968],{},"来源地址取决于配了什么：只做 DNAT 时源地址不变，内网服务能看到访客真实 IP（家用路由器的端口映射就是这样）；但回程流量必须回到这台网关，实际部署里通常会同时做 SNAT 或 MASQUERADE，这时内网服务看到的就是网关地址。",[586,970,971,972,974,975,977],{},"nginx 和 frp 是另一种做法：断开连接、再向目标重建一条，所以能做 L7 的事（按 Host 选后端、改请求头、终止 TLS），代价是来源 IP 丢了，必须靠 ",[805,973,908],{}," 或 PROXY protocol 带外补回来——这就是",[577,976,239],{"href":240}," 那两套方案的由来。",[960,979,980],{"id":980},"在不在流量路径上",[586,982,983],{},"NAT 要求这台机器是流量必经的网关（有公网地址，且流量真的流经它）；frp 不要求，因为连接是 frpc 从内网主动建出去的。这是两者最根本的差别，也是 frp 存在的意义。",[586,985,986,987,990],{},"另外，",[805,988,989],{},"HTTPS"," 隧道是「选路在 L7、转发在 L4」：frps 读 ClientHello 里的 SNI 决定交给谁，但不解密、不改写，所以真实 IP 仍然只能走 PROXY protocol。frp 也不做 L3，不会给您一个虚拟网卡。",[581,992,994],{"id":993},"_8-按端口还是按域名","8. 按端口还是按域名",[610,996,997,1012],{},[613,998,999,808,1001,1003,1004,1007,1008,1011],{},[805,1000,807],{},[805,1002,811],{}," 隧道按",[616,1005,1006],{},"远程端口","区分：访客连到 ",[805,1009,1010],{},"节点:远程端口","，frps 就知道该交给哪条隧道，一条隧道占用一个端口。",[613,1013,1014,808,1016,1003,1018,1021],{},[805,1015,837],{},[805,1017,989],{},[616,1019,1020],{},"域名","区分：多条隧道共用节点的 80\u002F443，frps 按请求的 Host（HTTPS 按 ClientHello 里的 SNI）决定转给谁。",[586,1023,1024,1025,579],{},"域名为什么能代替端口做区分，见 ",[577,1026,554],{"href":555},[581,1028,1030],{"id":1029},"_9-一次访问的完整链路","9. 一次访问的完整链路",[1032,1033,1039],"pre",{"className":1034,"code":1036,"language":1037,"meta":1038},[1035],"language-text","访客 ──► 节点:远程端口 ──► frps ──► 工作连接 ──► frpc ──► 127.0.0.1:本地端口\n","text","",[805,1040,1036],{"__ignoreMap":1038},[581,1042,1044],{"id":1043},"_10-由此得到的结论","10. 由此得到的结论",[610,1046,1047,1050,1056,1063],{},[613,1048,1049],{},"frpc 不在线，隧道就不可用。frps 不会替您缓存请求，访客只会看到连接失败。",[613,1051,1052,1053,1055],{},"本地服务必须在 frpc 所在的机器上可达，默认是 ",[805,1054,929],{},"；改了本地服务的端口，隧道也要同步改。",[613,1057,1058,1059,1062],{},"速度取决于您家宽带的",[616,1060,1061],{},"上行","、节点带宽和您与节点之间的线路，延迟 = 访客到节点 + 节点到您。",[613,1064,1065],{},"流量经节点中转，不是点对点，也不是 VPN 或虚拟组网，不会改变您的公网 IP。",{"title":1038,"searchDepth":1067,"depth":1067,"links":1068},2,[1069,1070,1071,1072,1073,1074,1075,1080,1081,1082],{"id":583,"depth":1067,"text":584},{"id":604,"depth":1067,"text":605},{"id":631,"depth":1067,"text":632},{"id":710,"depth":1067,"text":711},{"id":738,"depth":1067,"text":739},{"id":754,"depth":1067,"text":755},{"id":841,"depth":1067,"text":842,"children":1076},[1077,1079],{"id":962,"depth":1078,"text":962},3,{"id":980,"depth":1078,"text":980},{"id":993,"depth":1067,"text":994},{"id":1029,"depth":1067,"text":1030},{"id":1043,"depth":1067,"text":1044},"frps 与 frpc 如何建立连接，隧道按什么层级把访客请求转发到本地服务","md",null,{},true,{"title":542,"description":1083},"EBMnDoDbWzZtQszyA3pKoDuoW6nScbhkspG3UHQi2pk",[1091,1093],{"title":93,"path":532,"stem":533,"description":1092,"icon":534,"children":-1},"介绍拓展阅读区域的文档内容与写作目的",{"title":546,"path":547,"stem":548,"description":1094,"children":-1},"TLS 如何证明服务器身份、证书的 SAN 匹配规则、TLS 1.3 的握手流程与双向认证（mTLS）",1795152100338]