Frp 是一个高性能的反向代理应用,可以帮助您轻松地进行内网穿透,对外网提供服务,支持 tcp, http, https 等协议类型,并且 web 服务支持根据域名进行路由转发。
Frps-Onekey-Install-Shell For CentOS/Debian/Ubuntu/Fedora (32bit/64bit)
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}
设置后台运行
nohup ./frps -c frps.ini >/dev/null 2>&1 &
防火墙相关(国内服务器可以直接设置防火墙规则)
Debian或Ubuntu系统放行端口:
ufw allow 端口号
iptables -A INPUT -p tcp --dport 端口号 -j ACCEPT
CentOS系统放行端口:
firewall-cmd --zone=public --add-port=端口号/tcp --permanent
FRP常用命令
开启FRP:frps start
停止FRP:frps stop
重启FRP:frps restart
打开配置文件:frps config
查看FRP版本:frps version
检查FRP运行状态:frps status