{"id":1033,"date":"2026-03-16T14:47:08","date_gmt":"2026-03-16T06:47:08","guid":{"rendered":"http:\/\/senkin.00xm.top\/?p=1033"},"modified":"2026-03-16T14:47:08","modified_gmt":"2026-03-16T06:47:08","slug":"frps%e5%92%8cfrpc%e5%86%85%e5%ae%b9%e5%8a%9f%e8%83%bd%e5%86%99%e6%b3%95%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/senkin.00xm.top\/?p=1033","title":{"rendered":"FRPS\u548cFRPC\u5185\u5bb9\u529f\u80fd\u5199\u6cd5\u8be6\u89e3"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code># ==================== frps \u5e38\u7528\u5b9e\u7528\u914d\u7f6e ====================\n# \u6587\u4ef6\u4f4d\u7f6e\uff1a\/frps.toml \u6216\u4efb\u610f\u76ee\u5f55\n# \u9002\u7528\u7248\u672c\uff1afrp v0.52.0 \u53ca\u4ee5\u4e0a\n# \u8bf4\u660e\uff1a\u4ee5\u4e0b\u914d\u7f6e\u6db5\u76d6\u4e86\u65e5\u5e38\u6700\u5e38\u7528\u7684\u529f\u80fd\uff0c\u53ef\u6839\u636e\u9700\u8981\u542f\u7528\/\u7981\u7528\n# ==========================================================\n\n# -------------------- \u57fa\u7840\u914d\u7f6e\uff08\u5fc5\u987b\uff09 --------------------\nbindAddr = \"0.0.0.0\"          # \u76d1\u542c\u6240\u6709\u7f51\u7edc\u63a5\u53e3\uff0c\u4f7f\u670d\u52a1\u5668\u53ef\u63a5\u53d7\u5916\u90e8\u8fde\u63a5\nbindPort = 7000                # frp\u4e3b\u670d\u52a1\u7aef\u53e3\uff0c\u5ba2\u6237\u7aef\u901a\u8fc7\u6b64\u7aef\u53e3\u8fde\u63a5\uff08\u53ef\u4fee\u6539\uff0c\u4f46\u9700\u4e0e\u5ba2\u6237\u7aef\u4e00\u81f4\uff09\n\n# -------------------- HTTP\/HTTPS \u652f\u6301\uff08\u5982\u9700\u66b4\u9732Web\u670d\u52a1\uff09 --------------------\nvhostHTTPPort = 80             # HTTP\u57df\u540d\u8bbf\u95ee\u7aef\u53e3\uff0c\u7528\u4e8e\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u5185\u7f51Web\u670d\u52a1\nvhostHTTPSPort = 443           # HTTPS\u57df\u540d\u8bbf\u95ee\u7aef\u53e3\uff0c\u7528\u4e8e\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u5185\u7f51HTTPS\u670d\u52a1\nsubdomainHost = \"your-domain.com\"  # \u4e8c\u7ea7\u57df\u540d\u540e\u7f00\uff0c\u5ba2\u6237\u7aef\u53ef\u4f7f\u7528subdomain\u81ea\u52a8\u5206\u914d\u57df\u540d\uff08\u5982test.your-domain.com\uff09\n# \u6ce8\u610f\uff1a\u4f7f\u7528\u6b64\u529f\u80fd\u9700\u8981\u57df\u540d\u89e3\u6790\u6307\u5411\u4f60\u7684\u670d\u52a1\u5668IP\n\n# -------------------- \u7ba1\u7406\u9762\u677f\uff08\u76d1\u63a7\u72b6\u6001\u7528\uff09 --------------------\n&#91;webServer]\naddr = \"0.0.0.0\"               # \u76d1\u542c\u5730\u5740\uff0c\u5efa\u8bae\u4f7f\u7528\u5185\u7f51IP\u62160.0.0.0\uff08\u5916\u7f51\u8bbf\u95ee\u9700\u6ce8\u610f\u5b89\u5168\uff09\nport = 7500                    # \u7ba1\u7406\u9762\u677f\u8bbf\u95ee\u7aef\u53e3\nuser = \"admin\"                 # \u767b\u5f55\u7528\u6237\u540d\uff08\u52a1\u5fc5\u4fee\u6539\u9ed8\u8ba4\u503c\uff09\npassword = \"your-password\"     # \u767b\u5f55\u5bc6\u7801\uff08\u52a1\u5fc5\u8bbe\u7f6e\u590d\u6742\u5bc6\u7801\uff09\n\n# -------------------- \u5b89\u5168\u8ba4\u8bc1\uff08\u9632\u672a\u6388\u6743\u8bbf\u95ee\uff09 --------------------\n&#91;auth]\nmethod = \"token\"               # \u4f7f\u7528token\u8ba4\u8bc1\uff08\u7b80\u5355\u6709\u6548\uff09\ntoken = \"your-strong-token-2024\"  # \u8fde\u63a5\u5bc6\u7801\uff0c\u5ba2\u6237\u7aef\u5fc5\u987b\u914d\u7f6e\u76f8\u540ctoken\u624d\u80fd\u8fde\u63a5\uff08\u52a1\u5fc5\u4fee\u6539\uff09\n\n# -------------------- \u7aef\u53e3\u9650\u5236\uff08\u9632\u6ee5\u7528\uff09 --------------------\n# \u9650\u5236\u5ba2\u6237\u7aef\u53ea\u80fd\u4f7f\u7528\u6307\u5b9a\u8303\u56f4\u5185\u7684\u7aef\u53e3\uff0c\u907f\u514d\u968f\u610f\u5360\u7528\u7cfb\u7edf\u7aef\u53e3\nallowPorts = &#91;\n    { start = 10000, end = 20000 },  # \u5e38\u7528\u7aef\u53e3\u8303\u56f4\uff0c\u53ef\u7528\u4e8e\u591a\u6570\u670d\u52a1\n    { single = 8080 },                # \u5e38\u7528\u7684HTTP\u5907\u7528\u7aef\u53e3\n    { single = 8443 },                # \u5e38\u7528\u7684HTTPS\u5907\u7528\u7aef\u53e3\n    { single = 3389 },                # Windows\u8fdc\u7a0b\u684c\u9762\uff08\u6309\u9700\u6dfb\u52a0\uff09\n    { single = 22 }                    # SSH\uff08\u6309\u9700\u6dfb\u52a0\uff09\n]\n\n# -------------------- \u65e5\u5fd7\u8bb0\u5f55\uff08\u6392\u9519\u7528\uff09 --------------------\n&#91;log]\nto = \".\/frps.log\"              # \u65e5\u5fd7\u8f93\u51fa\u5230\u6587\u4ef6\uff08\u65b9\u4fbf\u6392\u67e5\u95ee\u9898\uff09\n# to = \"console\"               # \u5982\u679c\u4f7f\u7528docker\u6216\u60f3\u770b\u5b9e\u65f6\u65e5\u5fd7\uff0c\u6539\u4e3aconsole\nlevel = \"info\"                 # \u65e5\u5fd7\u7ea7\u522b\uff1ainfo\u663e\u793a\u5e38\u89c4\u4fe1\u606f\uff0cdebug\u53ef\u67e5\u770b\u66f4\u591a\u7ec6\u8282\nmaxDays = 3                    # \u65e5\u5fd7\u4fdd\u75593\u5929\uff0c\u907f\u514d\u5360\u7528\u8fc7\u591a\u78c1\u76d8\n\n# -------------------- \u4f20\u8f93\u4f18\u5316\uff08\u63d0\u5347\u6027\u80fd\uff09 --------------------\n&#91;transport]\ntcpMux = true                  # \u542f\u7528TCP\u591a\u8def\u590d\u7528\uff0c\u591a\u4e2a\u4ee3\u7406\u5171\u4eab\u8fde\u63a5\uff0c\u51cf\u5c11\u8d44\u6e90\u5360\u7528\ntcpMuxKeepaliveInterval = 60   # \u4fdd\u6301\u8fde\u63a5\u6d3b\u8dc3\u7684\u5fc3\u8df3\u95f4\u9694\nmaxPoolCount = 5               # \u8fde\u63a5\u6c60\u5927\u5c0f\uff0c\u9002\u5f53\u589e\u52a0\u53ef\u63d0\u5347\u5e76\u53d1\u6027\u80fd\n\n# -------------------- \u53ef\u9009\u9ad8\u7ea7\u529f\u80fd\uff08\u6309\u9700\u53d6\u6d88\u6ce8\u91ca\uff09 --------------------\n\n# 1. \u5e26\u5bbd\u9650\u5236\uff08\u9632\u6b62\u67d0\u4e2a\u7528\u6237\u5360\u6ee1\u5e26\u5bbd\uff09\n# &#91;transport]\n# bandwidthLimit = \"10MB\"      # \u5168\u5c40\u9ed8\u8ba4\u9650\u901f10MB\/s\n# bandwidthLimitMode = \"both\"  # both\u8868\u793a\u4e0a\u4f20\u4e0b\u8f7d\u90fd\u9650\u5236\n\n# 2. TLS\u52a0\u5bc6\u4f20\u8f93\uff08\u63d0\u9ad8\u5b89\u5168\u6027\uff0c\u9700\u8981\u8bc1\u4e66\u6587\u4ef6\uff09\n# &#91;transport.tls]\n# force = false                # true\u8868\u793a\u5f3a\u5236TLS\u52a0\u5bc6\uff0c\u5ba2\u6237\u7aef\u4e5f\u5fc5\u987b\u914d\u7f6eTLS\n# certFile = \".\/server.crt\"    # \u8bc1\u4e66\u6587\u4ef6\u8def\u5f84\n# keyFile = \".\/server.key\"     # \u5bc6\u94a5\u6587\u4ef6\u8def\u5f84\n\n# 3. KCP\u534f\u8bae\u652f\u6301\uff08\u9002\u5408\u9ad8\u4e22\u5305\u7f51\u7edc\u73af\u5883\uff09\n# kcpBindPort = 7000           # \u4e0ebindPort\u76f8\u540c\u5373\u53ef\uff0c\u5ba2\u6237\u7aef\u53ef\u9009\u7528kcp\u8fde\u63a5\n\n# 4. QUIC\u534f\u8bae\u652f\u6301\uff08\u65b0\u4e00\u4ee3\u4f20\u8f93\u534f\u8bae\uff0c\u6027\u80fd\u66f4\u597d\uff09\n# quicBindPort = 7001          # \u9700\u8981\u5ba2\u6237\u7aef\u4e5f\u914d\u7f6e\u4f7f\u7528quic\u534f\u8bae\n\n# 5. Prometheus\u76d1\u63a7\uff08\u5bf9\u63a5\u76d1\u63a7\u7cfb\u7edf\u7528\uff09\n# enablePrometheus = true      # \u5f00\u542f\u540e\u53ef\u901a\u8fc7 \/metrics \u83b7\u53d6\u76d1\u63a7\u6570\u636e\n\n# 6. \u81ea\u5b9a\u4e49404\u9875\u9762\uff08\u5f53\u57df\u540d\u4e0d\u5b58\u5728\u65f6\u663e\u793a\uff09\n# custom404Page = \".\/404.html\"\n\n# 7. \u5ba2\u6237\u7aef\u6570\u91cf\u9650\u5236\n# maxPortsPerClient = 20       # \u9650\u5236\u6bcf\u4e2a\u5ba2\u6237\u7aef\u6700\u591a\u521b\u5efa20\u4e2a\u4ee3\u7406<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1033","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/1033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1033"}],"version-history":[{"count":2,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/1033\/revisions"}],"predecessor-version":[{"id":1035,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/1033\/revisions\/1035"}],"wp:attachment":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}