{"id":122,"date":"2021-10-03T23:22:25","date_gmt":"2021-10-03T15:22:25","guid":{"rendered":"http:\/\/itony.ml\/?p=122"},"modified":"2025-02-04T16:40:10","modified_gmt":"2025-02-04T08:40:10","slug":"%e7%94%b2%e9%aa%a8%e6%96%87%e6%90%ad%e5%bb%bafrp%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/itony.cc\/?p=122","title":{"rendered":"\u7532\u9aa8\u6587\u642d\u5efaFRP\u6559\u7a0b"},"content":{"rendered":"<p>\u7532\u9aa8\u6587\u642d\u5efaFRP\u6559\u7a0b<\/p>\n<ol>\n<li>\u00a0\u7532\u9aa8\u6587\u65b0\u6ce8\u518c\u5b8c\u6210\u540e\uff0c\u521b\u5efa\u5b9e\u4f8b\uff0c\u7136\u540e\u4e00\u5b9a\u8981<strong><span class=\"has-inline-color has-vivid-red-color\">\u5f00\u653e\u6240\u6709\u7aef\u53e3\u548c\u5173\u95ed\u9632\u706b\u5899<\/span><\/strong>\uff01\uff01\uff01\uff01\u6559\u7a0b\u770b\u4e0a\u4e00\u7bc7\u3002<\/li>\n<li>\u8fd8\u6709<strong>\u540c\u4e00\u4e2a\u8d26\u53f7\u521b\u5efa\u7684\u7532\u9aa8\u6587\uff0c\u4e0d\u80fd\u7528\u540c\u6837\u7684\u7aef\u53e3\u505afrp\u7684\u7aef\u53e3\uff0c\u968f\u4fbf\u4ec0\u4e48\u7aef\u53e3\uff0c\u53ea\u8981\u4e0d\u4e00\u6837\u5c31\u884c<\/strong>\u3002<\/li>\n<\/ol>\n<h2>\u00a0\u4e00\u3001<strong>\u670d\u52a1\u5668\u7aef\u642d\u5efa<\/strong><\/h2>\n<ol>\n<li>\u6b65\u9aa4\uff1a\u5728github\u4e0a\u9762\u83b7\u53d6\u5df2\u53d1\u5e03\u7684\u8f6f\u4ef6\u7248\u672c\u3002\n<ul>\n<li><a href=\"https:\/\/github.com\/fatedier\/frp\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/fatedier\/frp\/releases<\/a><\/li>\n<li>\u7532\u9aa8\u6587\u6211\u521b\u5efa\u7684\u5b9e\u4f8b\u662fUbuntu 16.04\uff0c\u56e0\u6b64\u9009\u62e9\uff1afrp_0.37.0_linux_amd64.tar.gz<\/li>\n<\/ul>\n<ul>\n<li>\u4e0b\u8f7d\uff1a<\/li>\n<li>wget\u00a0<a href=\"https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.37.0\/frp_0.37.0_linux_amd64.tar.gz\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.37.0\/frp_0.37.0_linux_amd64.tar.gz<\/a><\/li>\n<li>\u5907\u4efd\uff1a115\u4e0b\u8f7d\uff1ahttps:\/\/anxia.com\/s\/swheeoi36a5?password=sa25&amp;#Frp\u8bbf\u95ee\u7801\uff1asa25<\/li>\n<li>\u89e3\u538b\uff1a<\/li>\n<li>tar -zxvf\u00a0 frp_0.37.0_linux_amd64.tar.gz<\/li>\n<li>\u4e3a\u4e86\u65b9\u4fbf\u4f7f\u7528\uff0c\u53ef\u4ee5\u5c06\u76ee\u5f55\u540d\u79f0\u4fee\u6539\u4e3afrp:<\/li>\n<li>mv frp_0.37.0_linux_amd64 frp<\/li>\n<li>\u7ed9frp\u6587\u4ef6\u5939\u8d4b\u4e88777\u6743\u9650\uff0c\u6ca1\u6743\u9650\u4fee\u6539\u4e0d\u4e86\u6587\u4ef6\uff1asudo chmod -R 777 .\/frp<\/li>\n<li>\u4fee\u6539frps.ini\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\u3002\u5148\u6253\u5f00\u6587\u4ef6\u5939\uff1acd frp \u7136\u540e\uff1avi frps.ini\u00a0 \u6253\u5f00\u7f16\u8f91\u6587\u4ef6\uff0c\u6309\u201ci\u201d\u6309\u952e\uff0c\u4e0a\u4e0b\u5de6\u53f3\u7f16\u8f91\uff0c\u7136\u540e\u7528:wq \u4fdd\u5b58\u9000\u51fa\u3002(\u4e5f\u53ef\u4ee5\u7528electerm\u91cc\u7684sftp\u7f16\u8f91\u6587\u4ef6)<\/li>\n<li><strong><span style=\"color: #ff0000;\">token\u662f\u52a0\u5bc6\uff0cfrps\u548cfrpc\u8981\u4e00\u81f4<\/span><\/strong><\/li>\n<li>\u6587\u4ef6\u7f16\u8f91\u540e\uff1a<\/li>\n<li><code>[common]<\/code><\/li>\n<li><code># frps\u7ed1\u5b9a\u7aef\u53e3<\/code><\/li>\n<li><code>bind_port = 7000<\/code><\/li>\n<li>token = suibianshuru<\/li>\n<li><code># \u8fd0\u884c\u72b6\u6001\u7ba1\u7406\u5de5\u5177<\/code><\/li>\n<li><code># \u76d1\u63a7\u5de5\u5177\u8fd0\u884c\u7aef\u53e3<\/code><\/li>\n<li><code>dashboard_port = 7500<\/code><\/li>\n<li><code># \u76d1\u63a7\u5de5\u5177 \u8eab\u4efd\u9a8c\u8bc1<\/code><\/li>\n<li><code>dashboard_user = admin\u6216\u8005\u5565\u90fd\u884c<\/code><\/li>\n<li><code>dashboard_pwd = 123456\u5565\u90fd\u884c\u00a0<\/code><\/li>\n<li><span style=\"color: #ff0000; font-size: 18pt;\"><strong>\u542f\u52a8\u670d\u52a1\u4e4b\u524d\u4e00\u5b9a\u8981\uff1acd frp \u8fdb\u5165\u6587\u4ef6\u5939\uff0c\u5426\u5219\u542f\u52a8\u4e0d\u4f1a\u6210\u529f\uff01\uff01\uff01\uff01<\/strong><\/span><\/li>\n<li>\u542f\u52a8\u670d\u52a1\u7aef:\n<pre>.\/frps -c frps.ini<\/pre>\n<\/li>\n<li>\n<h5>\u670d\u52a1\u7aef\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\uff1a<\/h5>\n<\/li>\n<li>\u5c06<code>systemd<\/code>\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6<code>frps.service<\/code>\u62f7\u8d1d\u5230\u7cfb\u7edfsystemd\u76ee\u5f55\u4e0b\u53bb\u3002<\/li>\n<li>\u8fd0\u884c<\/li>\n<li>\n<pre> cp systemd<span class=\"hljs-regexp\">\/frps.service \/<\/span>lib<span class=\"hljs-regexp\">\/systemd\/<\/span>system<span class=\"hljs-regexp\">\/ -af<\/span><\/pre>\n<\/li>\n<li>\u7136\u540e\u7f16\u8f91<\/li>\n<li>\n<pre>vi \/lib\/systemd\/system\/frps.service<\/pre>\n<\/li>\n<li>\u5e76\u4fee\u6539 ExecStart=\/root\/frp\/frps -c \/root\/frp\/frps.ini\u00a0 (\u4e5f\u5c31\u662ffrps\u548cfrps.ini\u7684\u8def\u5f84)<\/li>\n<li>\u9ed8\u8ba4\u7528\u6237\u4e3anobody\uff0c\u914d\u7f6e\u4f60\u81ea\u5df1\u60f3\u8981\u7684\u7528\u6237\uff0c\u5982\u679c\u4e3aroot\uff0c\u5219\u4fee\u6539\u4e3aroot\u3002\u5982\u679c\u4e3a\u5f53\u524d\u7528\u6237\uff0c\u53ef\u4ee5\u901a\u8fc7whoami\u6765\u67e5\u770b\u5f53\u524d\u7528\u6237\u540d\u3002\uff08\u6211\u6d4b\u8bd5\u7532\u9aa8\u6587\u662froot\uff0c\u6211\u6539\u4e3aroot\uff09,\u4fee\u6539\u540e\u4e3a\uff1a<\/li>\n<li><code>[Unit]<\/code><\/li>\n<li><code>Description=Frp Server Service<\/code><\/li>\n<li><code>After=network.target<\/code><\/li>\n<li><code>[Service]<\/code><\/li>\n<li><code>Type=simple<\/code><\/li>\n<li><code>User=root<\/code><\/li>\n<li><code>Restart=on-failure<\/code><\/li>\n<li><code>RestartSec=5s<\/code><\/li>\n<li><code>ExecStart=\/root\/frp\/frps -c \/root\/frp\/frps.ini<\/code><\/li>\n<li><code>[Install]<\/code><\/li>\n<li><code>WantedBy=multi-user.target\u00a0<\/code><code><\/code><\/li>\n<li>\u5f00\u542f\u81ea\u542f\u52a8\uff1a\n<pre>systemctl enable frps<\/pre>\n<p>\u542f\u52a8\uff1a<\/p>\n<pre>systemctl start frps<\/pre>\n<p>\u91cd\u542f\uff1a<\/p>\n<pre>systemctl restart frps<\/pre>\n<p>\u7ec8\u6b62\uff1a<\/p>\n<pre>systemctl stop frps<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u00a0<strong>\u5ba2\u6237\u7aef\u642d\u5efa<\/strong><\/li>\n<\/ol>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>\u6b65\u9aa4\uff1a\u540c\u6837\u6309\u7167\u4f60\u7684\u5ba2\u6237\u7aef\u6240\u5728\u7684\u7cfb\u7edf\u6765\u786e\u5b9a\u4e0b\u8f7d\u4ec0\u4e48\u53d1\u5e03\u7248\u672c\uff0c\u6bd4\u5982\u6211\u7684windows 10 64\u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff0c\u9700\u8981\u4e0b\u8f7d\uff1a frp_0.37.0_windows_amd64.zip \uff0c32\u4f4d\u7684win7\u4e0b\u8f7dfrp_0.37.0_windows_386.zip<\/li>\n<li>\n<pre>https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.37.0\/frp_0.37.0_windows_amd64.zip<\/pre>\n<\/li>\n<li>\u89e3\u538b\u81f3c\u76d8\u6839\u76ee\u5f55\uff0c\u6587\u4ef6\u5939\u91cd\u547d\u540d\u4e3afrp<\/li>\n<li>\u4fee\u6539frpc.ini\uff0c\u5c06\u672c\u5730\u8fdc\u7a0b\u7aef\u53e33389\u6620\u5c04\u5230\u5916\u7f5160005\u7aef\u53e3<\/li>\n<li><strong><span style=\"color: #ff0000;\">token\u662f\u52a0\u5bc6\uff0cfrps\u548cfrpc\u8981\u4e00\u81f4<\/span><\/strong><\/li>\n<li>\u4fee\u6539\u5b8c\u4e3a\uff1a<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li>[common]<\/li>\n<li>server_addr = \u7532\u9aa8\u6587ip<\/li>\n<li>server_port = 7000<\/li>\n<li>token = suibianshuru<\/li>\n<li>[rdp]<\/li>\n<li>type = tcp<\/li>\n<li>local_ip = 127.0.0.1<\/li>\n<li>local_port = 3389<\/li>\n<li>remote_port = 60005<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\u542f\u52a8\u5ba2\u6237\u7aef:\n<pre>c:\\frp\\frpc.exe -c c:\\frp\\frpc.ini<\/pre>\n<\/li>\n<li><span style=\"font-size: 18pt;\"><strong><span style=\"color: #ff0000;\">\u7528rdp\u8f6f\u4ef6\u767b\u9646\u7684\u65f6\u5019\uff1a\u4e2d\u8f6c\u670d\u52a1\u7aefip:60005 \u8bbf\u95ee \uff08\u963f\u91cc\u4e91hk\u505a\u670d\u52a1\u7aef\u8981\u628a7000\u300160005\u7aef\u53e3\u5728\u5b89\u5168\u7b56\u7565\u91cc\u9762\u6253\u5f00\uff09<\/span><\/strong><\/span><\/li>\n<\/ul>\n<h4>3:<strong>\u5f00\u673a\u81ea\u542f\u52a8:<\/strong><\/h4>\n<p>\u5b9e\u73b0frp\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u6709nssm\uff0c\u6709vbs\u811a\u672c\uff0c\u8fd9\u6b21\u5229\u7528windows\u81ea\u5e26\u7684\u8ba1\u5212\u4efb\u52a1\u529f\u80fd\u6765\u5b9e\u73b0frp\u7684\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u3002 \u9996\u5148\uff0c\u521b\u5efa\u65b0\u5efa\u6587\u672c\u6587\u4ef6\uff0c\u91cc\u9762\u5185\u5bb9\u5982\u4e0b\uff0c\u4fdd\u5b58\u540e\u5c06\u540e\u7f00\u6539\u4e3avbs\uff1a<\/p>\n<p><code>Bash set ws=WScript.CreateObject(\"WScript.Shell\")<br \/>\nws.Run \"c:\\frp\\frpc.exe -c c:\\frp\\frpc.ini\",0<\/code><\/p>\n<p>\u5c06\u6b64\u811a\u672c\u653e\u5165:C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp<\/p>\n<p>\u5373\u53ef\u6dfb\u52a0\u5f00\u673a\u81ea\u542f\u52a8\u3002\u5982\u65e0\u6cd5\u627e\u5230\u4ee5\u4e0a\u76ee\u5f55\uff0c\u53ef\u901a\u8fc7\u201c\u8fd0\u884c\u201d\u2013\u201cshell:startup\u201d\u627e\u5230\u3002<\/p>\n<p><strong><span class=\"has-inline-color has-vivid-red-color\">\u4f7f\u7528\u65b9\u6cd5\uff1a\u8fd9\u4e2avbs\u6587\u4ef6\uff0c\u5fc5\u987b\u7528\u539f\u59cbip\u8fdc\u7a0b\u767b\u5f55\u4e0b\u7535\u8111\uff0c\u811a\u672c\u5c31\u4f1a\u81ea\u52a8\u8fd0\u884c\uff0c\u5c31\u53ef\u4ee5\u7528frp\u7684ip+\u7aef\u53e3\u8fdc\u7a0b\u4e86<\/span><\/strong><\/p>\n<p>\u672c\u767d\u8bdd\u6559\u7a0b\u7efc\u5408\u4ee5\u4e0b\u51e0\u7bc7\u6559\u7a0b\uff1a<\/p>\n<p>https:\/\/www.tkmiss.com\/archives\/frp_config.html<\/p>\n<p>https:\/\/pa.ci\/77.html<\/p>\n<p>http:\/\/diannaobos.com\/post\/971.html<\/p>\n<p><a href=\"https:\/\/sspai.com\/post\/64377\">https:\/\/sspai.com\/post\/64377<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7532\u9aa8\u6587\u642d\u5efaFRP\u6559\u7a0b \u00a0\u7532\u9aa8\u6587\u65b0\u6ce8\u518c\u5b8c\u6210\u540e\uff0c\u521b\u5efa\u5b9e\u4f8b\uff0c\u7136\u540e\u4e00\u5b9a\u8981\u5f00\u653e\u6240\u6709\u7aef\u53e3\u548c\u5173\u95ed\u9632\u706b\u5899\uff01\uff01\uff01\uff01\u6559\u7a0b\u770b\u4e0a\u4e00\u7bc7\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/itony.cc\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itony.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itony.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itony.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itony.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":17,"href":"https:\/\/itony.cc\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":1105,"href":"https:\/\/itony.cc\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions\/1105"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itony.cc\/index.php?rest_route=\/wp\/v2\/media\/123"}],"wp:attachment":[{"href":"https:\/\/itony.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itony.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itony.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}