智慧工地手机视频查看-frp

一、服务端配置.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 = 0.0.0.0
bind_port = 9443
# udp port used for kcp protocol, it can be same with ‘bind_port’
# if not set, kcp is disabled in frps
kcp_bind_port = 9443
# if you want to configure or reload frps by dashboard, dashboard_port must be set
dashboard_port = 9458
# dashboard assets directory(only for debug mode)
dashboard_user = admin
dashboard_pwd = admin123-=
# assets_dir = ./static
vhost_http_port = 9880
vhost_https_port = 9453
# console or real logFile path like ./frps.log
log_file = ./frps.log
# debug, info, warn, error
log_level = info
log_max_days = 10
# auth token
token = Z8Rpj2uqTvJyqBDe
# It is convenient to use subdomain configure for http、https type when many people use one frps server together.
subdomain_host = 8.210.227.192
# 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

二、路由器配置router=>frpc.ini 客户端

统一使用服务器frps,客户端frpc 客户端,使用域名:discover.zhonjin.com

#1、远程30091=>192.168.10.1 路由器80映射

[http.router_30091_80]
type = tcp
local_ip = 192.168.10.1
local_port = 80
remote_port = 30091

#2、远程30092=>192.168.10.100 录像机80映射

[http.recorder_30092_80]
type =tcp
local_ip = 192.168.10.100
local_port = 80
remote_port = 30092

#2、远程30090=>192.168.10.100 录像机app8000映射

[tcp.recorder_30090_8000]
type = tcp
#填写客户端机器要被代理的网络内的IP 填写127.0.0.1就代表本机(路由器)
local_ip = 192.168.10.100
# 要访问的端口号
local_port =8000
# 远程代理端口号
remote_port = 30090

三、安卓手机app 设置

后续使用域名:monitor.zhonjin:40200-40209(每组10个端口访问)

 

三、阿里云服务器frps 防火墙端口开启

frps.0.61版本

/usr/local/frps

sudo nano /usr/local/frps/frps.toml

1、阿里云轻量级服务器  47.100.252.46

连接配置如下

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

 

You Server IP      :

Bind port          : 9443

vhost http port    : 9880

vhost https port   : 9453

Dashboard port     : 9458

Dashboard user     : admin

Dashboard password : XXXXXXX

token              : XXXXXXXXX

subdomain_host     : 47.100.252.46

tcp mux            : true

Max Pool count     : 5

Log level          : info

Log max days       : 3

Log file           : enable

transport protocol : enable

kcp bind port      : 9443

quic bind port     : 9453

2、阿里云轻量级服务器防火墙端口打开

3、阿里云域名对应固定IP地址

 

您可能还喜欢...

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注