• Frps服务端一键配置脚本

Install(安装)

Github

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

Aliyun

wget https://code.aliyun.com/MvsCode/frp-onekey/raw/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}

常用命令

#一键修改token
bash f.sh token

#一键修改bind_port
bash f.sh bind_port

#一键修改vhost_http_port
bash f.sh vhost_http_port

#一键修改vhost_https_port
bash f.sh vhost_https_port

备用命令

#一键修改dashboard_port
bash f.sh dashboard_port

#一键修改dashboard_user
bash f.sh dashboard_user

#一键修改dashboard_pwd
bash f.sh dashboard_pwd

#一键修改bind_udp_port
bash f.sh bind_udp_port

#一键修改kcp_bind_port
bash f.sh kcp_bind_port

#一键修改subdomain_host(用于泛解析子域名)
bash f.sh subdomain_host

#一键卸载frps
bash f.sh uninstall

注意事项

#一键关闭 apache2、防火墙,释放80端口
bash f.sh unapache2

#注意,除http(s)以外,客户端frpc.ini内任何端口修改时须在以下范围内:
默认端口白名单:2000-3000,3001,3003,4000-50000

#转发远程桌面时,需先在本机开启允许远程协助
我的电脑-右键属性-远程设置

#需要注意frpc所在机器和frps所在机器的时间相差不能超过15分钟
其实安装非常简单,犹豫第一次调试遇到了很多问题:
服务端安装成功如下:
Congratulations, frps install completed!
================================================
You Server IP      : 23.225.183.2
Bind port          : 5443
KCP support        : true
vhost http port    : 80
vhost https port   : 443
Dashboard port     : 6443
token              : password
subdomain_host     : 23.225.183.2
tcp_mux            : true
Max Pool count     : 50
Log level          : info
Log max days       : 3
Log file           : enable
================================================
frps Dashboard     : http://23.225.183.2:6443/
Dashboard user     : admin
Dashboard password : password
================================================

frps status manage : frps {start|stop|restart|status|config|version}
Example:
  start: frps start
   stop: frps stop
restart: frps restart
[root@centos ~]# bash f.sh unapache2
关闭 apache2 成功!
关闭 防火墙 成功!
[root@centos ~]# frps start

./frpc -c ./frpc.ini
客户端启动成功如下:
root@zpf:/frp# ./frpc -c ./frpc.ini
2019/08/31 19:27:27 [I] [service.go:221] login to server success, get run id [569dbb3cd2e6731f], server udp port [0]
2019/08/31 19:27:27 [I] [proxy_manager.go:137] [569dbb3cd2e6731f] proxy added: [web]
2019/08/31 19:27:28 [I] [control.go:144] [web] start proxy success
^C
root@zpf:/frp# ./frpc -c ./frpc.ini
2019/08/31 19:30:11 [I] [service.go:221] login to server success, get run id [89989b21564bdc19], server udp port [0]
2019/08/31 19:30:11 [I] [proxy_manager.go:137] [89989b21564bdc19] proxy added: [web]
2019/08/31 19:30:11 [I] [control.go:144] [web] start proxy success
frps位于/usr/local/frps
再此期间修改:bind_addr = 0.0.0.0为bind_addr = 23.225.183.2
frp.ini
[common]
server_addr = 23.225.183.2
server_port = 5443
token = dabenshi2019

[web]
type = http
local_ip = 192.168.31.113
local_port = 80
remote_port = 80
custom_domains = dabenshi.zpengf.club
frps.ini
# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
bind_addr = 23.225.183.2
bind_port = 5443
# udp port used for kcp protocol, it can be same with 'bind_port'
# if not set, kcp is disabled in frps
kcp_bind_port = 5443
# if you want to configure or reload frps by dashboard, dashboard_port must be set
dashboard_port = 6443
# dashboard assets directory(only for debug mode)
dashboard_user = admin
dashboard_pwd = dabenshi2019
# assets_dir = ./static
vhost_http_port = 80
vhost_https_port = 443
# console or real logFile path like ./frps.log
log_file = ./frps.log
# debug, info, warn, error
log_level = info
log_max_days = 3
# auth token
token = dabenshi2019
# It is convenient to use subdomain configure for http、https type when many people use one frps server together.
subdomain_host = 23.225.183.2
# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
#allow_ports = 1-65535
# pool_count in each proxy will change to max_pool_count if they exceed the maximum value
max_pool_count = 50
# if tcp stream multiplexing is used, default is true
tcp_mux = true
域名解析:
@           A    默认    23.225.183.2    -    600    2019-08-31 10:39:19    修改暂停删除
*           A    默认    23.225.183.2    -    600    2019-08-31 16:18:29    修改暂停删除
dabenshi    A    默认    23.225.183.2    -    600    2019-08-31 16:30:55    修改暂停删除
1、后台运行frp服务
    服务端: nohup ./frps -c frps.ini >/dev/null 2>&1 &
    客户端: nohup ./frpc -c frpc.ini >/dev/null 2>&1 &
    说明:>/dev/null 2>&1 &,表示丢弃。

[xfgiven_download]
Скачать с [Зеркала]
[/xfgiven_download]

[xfgiven_galery]
Скришоты: Frps服务端一键配置脚本

[/xfgiven_galery]
[xfgiven_stoimost] [xfvalue_stoimost]руб. [/xfgiven_stoimost] YouTransfer - 基于云端文件共享脚本-预发布
[xfgiven_stoimost] [xfvalue_stoimost]руб. [/xfgiven_stoimost] 使用Instantbox快速搭建一个开箱即用的Web端临时Linux系统
[xfgiven_stoimost] [xfvalue_stoimost]руб. [/xfgiven_stoimost] jQuery-File-Upload精简美化版
[xfgiven_stoimost] [xfvalue_stoimost]руб. [/xfgiven_stoimost] Frp服务端和客户端设置详细教程