Frps服务端一键配置脚本,脚本已支持获取Frp最新版本

123次阅读
没有评论

共计 1301 个字符,预计需要花费 4 分钟才能阅读完成。

Frp 是一个高性能的反向代理应用,可以帮助您轻松地进行内网穿透,对外网提供服务,支持 tcp, http, https 等协议类型,并且 web 服务支持根据域名进行路由转发。
Frps-Onekey-Install-Shell For CentOS/Debian/Ubuntu/Fedora (32bit/64bit)

详情:fatedier (https://github.com/fatedier/frp)
此脚本原作者:clangcn (https://github.com/clangcn/onekey-install-shell)
此脚本地址:https://github.com/MvsCode/frps-onekey

Install(安装)

Gitee

wget https://gitee.com/mvscode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install

Github

wget https://raw.githubusercontent.com/mvscode/frps-onekey/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install

管理

# Uninstall(卸载)
./install-frps.sh uninstall
# Update(更新)
./install-frps.sh update
# Server management(服务管理器)
Usage: /etc/init.d/frps {start|stop|restart|status|config|version}

防火墙相关

# Debian或Ubuntu系统放行端口:
ufw allow 端口号
# CentOS系统放行端口:
firewall-cmd --zone=public --add-port=端口号/tcp --permanent

客户端FRPC配置模板

[common]
server_addr = aaa.xpn.cc  #填写自己的服务器IP或者已解析的域名
server_port = 5443  #服务器提供的端口号
token = pw3FDsNfspaSbGVe  #服务器提供的token

[HomePC]  #这里对应你的客户端名称,可以自定义,每一个客户端名称不能重复
type = tcp  #tcp协议
local_ip = 127.0.0.1  #填写内网IP,127.0.0.1为本机IP
local_port = 3389  #内网主机端口,确保端口已放行
remote_port = 3389  #远程端口/服务器端端口,确保端口已放行

[OpenWrt] # 为避免错误,一定需更改为比较特殊的名称,不能和服务器端其他配置重名.
type = http  #http协议
local_ip = 192.168.2.1  #软路由IP地址
local_port = 80  #软路由默认端口
custom_domains = abc.xpn.cc   #填写已解析的服务器域名
正文完
 0
admin
版权声明:本站原创文章,由 admin 2023-12-28发表,共计1301字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)
验证码