{"id":1376,"date":"2019-08-16T21:30:29","date_gmt":"2019-08-16T13:30:29","guid":{"rendered":"http:\/\/jc.a300.cn/luyouwang\/?p=1376"},"modified":"2019-08-16T21:30:29","modified_gmt":"2019-08-16T13:30:29","slug":"%e8%b7%af%e7%94%b1%e5%99%a8-frp-%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f%e6%9c%8d%e5%8a%a1%e5%85%8d%e8%b4%b9%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/jc.a300.cn/luyouwang\/1376.html","title":{"rendered":"\u8def\u7531\u5668 FRP \u5185\u7f51\u7a7f\u900f\u670d\u52a1\u514d\u8d39\u4f7f\u7528\u6559\u7a0b"},"content":{"rendered":"
FRP\u662f\u4e00\u4e2a\u53ef\u7528\u4e8e\u5185\u7f51\u7a7f\u900f\u7684\u9ad8\u6027\u80fd\u7684\u53cd\u5411\u4ee3\u7406\u5e94\u7528\uff0c\u652f\u6301 tcp, udp, http, https \u534f\u8bae\u3002<\/p>\n
\u5bf9\u4e8ehttp, https\u670d\u52a1\u652f\u6301\u57fa\u4e8e\u57df\u540d\u7684\u865a\u62df\u4e3b\u673a\uff0c\u652f\u6301\u81ea\u5b9a\u4e49\u57df\u540d\u7ed1\u5b9a\uff0c\u4f7f\u591a\u4e2a\u57df\u540d\u53ef\u4ee5\u5171\u7528\u4e00\u4e2a80\u7aef\u53e3\u3002<\/p>\n
\u8bf4\u4eba\u8bdd\uff1f\u5c31\u662f\u8ba9\u6ca1\u6709\u516c\u7f51ip\u7684\u4f60\u8fdc\u7a0b\u8bbf\u95ee\u5c40\u57df\u7f51\u5185\u7684\u5404\u79cd\u670d\u52a1\uff0c\u6bd4\u5982\u8fdc\u7a0b\u8bbf\u95ee\u8def\u7531\u5668\u540e\u53f0\u3001\u8fdc\u7a0bssh\u3001\u8fdc\u7a0b\u684c\u9762\u7b49\u3002\u6709\u516c\u7f51ip\u7684\u7ae5\u978b\u5c31\u6ca1\u5fc5\u8981\u7ee7\u7eed\u5f80\u4e0b\u770b\u4e86\uff0c\u56e0\u4e3a\u6709\u516c\u7f51\u4e86\u6ca1\u5fc5\u8981\u5185\u7f51\u7a7f\u900f\u3002<\/p>\n
<\/p>\n
<\/p>\n
\u514d\u8d39\u670d\u52a1\u5668\u4e0d\u7a33\u5b9a\uff0c\u901f\u5ea6\u6162\uff0c\u4e14\u4e00\u822c\u4ec5\u5f00\u653e\u90e8\u5206\u7aef\u53e3\uff0c\u8bf7\u8c28\u614e\u4f7f\u7528\uff01\u4f46\u5982\u679c\u9700\u6c42\u91cf\u4e0d\u5927\uff0c\u5076\u5c14\u8fdc\u7a0b\u8bbf\u95ee\u4e00\u4e0b\u8def\u7531\u5668\uff0c\u4e5f\u662f\u6ca1\u95ee\u9898\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u514d\u8d39 frp \u670d\u52a1\u5668\u7f51\u5740\uff1a<\/p>\n
\u81ea\u5efafrp\u670d\u52a1\u5668\u7684\u901f\u5ea6\uff0c\u7a33\u5b9a\u6027\uff0c\u53ef\u7528\u7aef\u53e3\u5b8c\u5168\u53d6\u51b3\u4e8e\u4f60\u7684\u4e91\u670d\u52a1\u5668\u72b6\u51b5\u3002\u8fd9\u91cc\u63a8\u8350\u4f7f\u7528 clang\u5927\u5927\u5199\u7684frp\u4e00\u952e\u642d\u5efa\u811a\u672c\u3002<\/p>\n
wget --no-check-certificate http:\/\/raw.githubusercontent.com\/clangcn\/onekey-install-shell\/master\/frps\/install-frps.sh -O .\/install-frps.sh
bash install-frps.sh update<\/p><\/blockquote>\n\u57fa\u672c\u914d\u7f6e\u4fe1\u606f<\/h3>\n
\u53ea\u8c08\u4e00\u4e0b\u6700\u65b0 0.20.0 \u7684 FRP \u57fa\u672c\u914d\u7f6e\uff0c\u57fa\u672c\u6709\u4ee5\u4e0b\u51e0\u79cd\u914d\u7f6e\u4fe1\u606f
\u52a0\u7c97\u8868\u793a\u5fc5\u586b<\/code>\uff1a<\/p>\n
\n
- \u670d\u52a1\u5668\u5730\u5740<\/strong>\u00a0[server_addr]<\/li>\n
- \u670d\u52a1\u5668 FRP \u7aef\u53e3\u53f7<\/strong>\u00a0[server_port]<\/li>\n
- \u670d\u52a1\u5668\u5bc6\u94a5<\/strong>\u00a0[token]\u00a0
\u8001\u7248\u672c\u4e3a[privilege_token]<\/code><\/li>\n
- \u5e95\u5c42\u901a\u8baf\u534f\u8bae<\/strong>\u00a0[protocol]\u00a0
\u4e00\u822c\u4e3akcp\u6216\u8005tcp<\/code><\/li>\n
- \u7528\u6237\u540d<\/strong>\u00a0[user]\u00a0
\u8fd9\u4e2a\u968f\u610f\u586b\u4e00\u4e2a\u5c31\u884c\u4e86<\/code><\/li>\n
- \u65e5\u5fd7\u914d\u7f6e\u968f\u610f<\/li>\n<\/ul>\n
\u57fa\u672c\u914d\u7f6e\u793a\u4f8b<\/h4>\n
\u914d\u7f6e\u6587\u4ef6\u4fe1\u606f<\/h5>\n
[common]
server_addr = frp3.chuantou.org
server_port = 7000
token = www.chuantou.org
protocol = kcp
user = myname<\/p><\/blockquote>\nkoolshare \u63d2\u4ef6\u57fa\u672c\u914d\u7f6e<\/h5>\n
<\/p>\n
\u7a7f\u900f\u8282\u70b9\u914d\u7f6e\u4fe1\u606f<\/h3>\n
\n
- \u7a7f\u900f\u8282\u70b9\u6211\u5e38\u7528\u7684\u5c31\u662f http\u3001https \u548c tcp\uff0c\u5176\u5b9e tcp \u548c http \u662f\u5dee\u4e0d\u591a\u7684\uff0c\u53ea\u662f\u914d\u7f6e\u4e86\u4e4b\u540e\uff0c\u8bbf\u95ee\u7684\u59ff\u52bf\u4e0d\u4e00\u6837\u3002<\/li>\n
- \u6bd4\u5982\u6211\u73b0\u5728\u8981\u7a7f\u900f\u8def\u7531\u5668\u5185\u7f51 ip \u4e3a\u00a0
192.168.1.1<\/code>\u00a0\u7684 ssh \u670d\u52a1\uff0cssh \u670d\u52a1\u7684\u7aef\u53e3\u4e3a\u00a0
22<\/code>\u00a0\u7a7f\u900f\u5230\u5916\u7f51\u7684\u00a0
52210<\/code>\u3002<\/li>\n
- \u4ee5\u4e0b\u6211\u6240\u4f7f\u7528\u7684\u514d\u8d39 frp \u670d\u52a1\u5668<\/i><\/span>\uff0ctcp \u7a7f\u900f\u7aef\u53e3\u53f7\u8303\u56f4 50000-70000\uff0c\u8bf7\u6ce8\u610f\uff01<\/strong><\/li>\n
- \u53ef\u80fd\u67d0\u4e9b\u670d\u52a1\u53ea\u80fd\u652f\u6301\u4e00\u79cd\u7a7f\u900f\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n
tcp \u7a7f\u900f\u65b9\u5f0f<\/h4>\n
\n
- [ssh-tcp] -> \u62ec\u53f7\u5185\u4e3a\u7a7f\u900f\u8282\u70b9\u7684\u540d\u79f0<\/li>\n
- type -> \u7a7f\u900f\u7c7b\u578b [
tcp\/http\/https\u7b49<\/code>]<\/li>\n
- local_ip -> \u672c\u5730 ip \u5730\u5740 [
\u6bd4\u5982\u8def\u7531\u5668\u5185\u7f51ip<\/code>]<\/li>\n
- local_port -> \u672c\u5730\u7aef\u53e3\u53f7 [
\u8981\u7a7f\u900f\u7684\u5185\u7f51\u670d\u52a1\u7aef\u53e3<\/code>]<\/li>\n
- remote_port -> \u8fdc\u7a0b\u7aef\u53e3\u53f7 [
\u5916\u7f51\u8bbf\u95ee\u5185\u7f51\u670d\u52a1\u7684\u7aef\u53e3\u53f7<\/code>]<\/li>\n<\/ul>\n
tcp \u914d\u7f6e\u6587\u4ef6\u4fe1\u606f<\/h5>\n
[ssh-tcp]
type = tcp
local_ip = 192.168.1.1
local_port = 22
remote_port = 52210<\/p><\/blockquote>\nkoolshare \u63d2\u4ef6 tcp \u7a7f\u900f\u914d\u7f6e<\/h5>\n