Frps服務端一(yī)鍵配置腳本搭建記錄
來(lái)源:創立工(gōng)作(zuò)室 作( zuò)者:馮軍 發布時(shí)間(jiān)≥<♠:2024-03-12 21:15:55 閱讀(dú) 321β©δ↔5 次
安裝,一(yī)般修改80,443端口,其他(∑Ω≈tā)默認回車(chē)
wget https://gitee.com/mvsco"'de/frps-onekey/raw/master/install-fr↔∏ps.sh -O ./install-frps.sh
chm€÷&↓od 700 ./install-frps.sh
¥↑↓./install-frps.sh install
Github
wget https://raw.githubuse≠∞™rcontent.com/mvscode/frps-onekey/mastδ'§ er/install-frps.sh -O ./ε§•≠install-frps.sh
chmod 700 ./insta♥₽>ll-frps.sh
./install-frps.sh insta↔ ll
安裝完效果,保存好(hǎo)用(yòng Ω)戶名和(hé)密碼(也(yě)可(kě)後面修改)™≤
Congratulations, frps install c↔•φompleted!
=========================≥© ======================•$Ω★=
You Server IP : x.x.x.x
®★∑Bind port : 5443
KCP sup×↕port : true
vhost http port ✔☆£★: 50080
vhost https port : 5044↑∏♥3
Dashboard port ×§♠≈ : 6443
token : xx≥xxxxxxxxxx
subdomain_host : ¥€•πx.x.x.x
tcp_mux ♠Ω : true
Max Pool ≠✔count : 50
Log l→β€evel : info
Log ma≥βx days : 3
Log file ★©♣♣: enable
=========== ☆===========================>≤==========
frps Dashboard ®↓: http://x.x.x.x:6443/
Dashγβσboard user : admin
Dashboa¥✘rd password : xxxxxx
================©>¶♦=============================α®===
設置後台運行(xíng)
nohup ./frps -c frps.ini >/dev/nu©ll 2>&1 &
卸載
./install-frps.sh uni≥ nstall
更新
./install-frps.sh update
服務管理(lǐ)器(qì)
Usage: /etc/init.d/frps→≥ {start|stop|restart|status|config|ve¶®≠rsion}
防火(huǒ)牆發行(xíng)端口相(xiàng)關>'
Debian或Ubuntu系統放(fàng)₩∞§σ行(xíng)端口:ufw allow 端口号
CentOS系統放(fàn≥ ♣<g)行(xíng)端口:firewall-cmd ₽≈ --zone=public --add-port=端×口号/tcp --permanent
openwrt設置frpc
添加需要(yào)內(nèi)網穿透設備
附:客戶端FRPC配置模闆
[common]
server_addr = xxxx #填寫自≥×γ≠(zì)己的(de)服務器(qì)IP或★←者已解析的(de)域名
server_port = 5443 #服務↕&器(qì)提供的(de)端口号
toke≈₽∑n = xxxx #服務器(qì)提供的(de)token
[Homeα♦PC] #這(zhè)裡(lǐ)對(duì)應你(nǐ)的λ<(de)客戶端名稱,可(kě)以自(zì)定義,每一(yī)個(gè) €≠客戶端名稱不(bù)能(néng)重複
§'type = tcp #tcp協議(yì)
local& ♣_ip = 127.0.0.1 #填寫內(nèi)網IP,127.0.'≤$♠0.1為(wèi)本機(jī)IP
local_port = 338 ←£$9 #內(nèi)網主機(jī)端口,确保端口已放(f∞☆àng)行(xíng)
remote_port = 3389♥ ¥ #遠(yuǎn)程端口/服務器(qì)端端口,确保端口已放( ☆Ω¥fàng)行(xíng)
[OpenWrt] # 為(©φ©¥wèi)避免錯(cuò)誤,一(yī)定需更改為(wèi)比較特殊的(de÷→)名稱,不(bù)能(néng)和(hé)服務器(qì)端&β其他(tā)配置重名.
type = ♣•↕http #http協議(yì)
local¶✔ε_ip = 192.168.2.1 #α÷軟路(lù)由IP地(dì)址
loca€₩l_port = 80 #軟路(lù)由≥≤默認端口
custom_domains = xxxx "®#填寫已解析的(de)服務器(qì)域名
- 上(shàng)一(yī)篇:CSS的(de)Reset的(de)樣式重置
- 下(xià)一(yī)篇:登錄Microsoft微(wēi)軟賬戶特别慢(màn)怎麽回事(shì)≤€?(解決辦法)