AFFGT
点滴价值

raspberrypi 4B-树莓派4B内网穿透+SSH+VNC

一.安装frp

1.安装frp服务端

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

Uninstall(卸载)

./install-frps.sh uninstall

Update(更新)

./install-frps.sh update

Server management(服务管理器)

/etc/init.d/frps {start|stop|restart|status|config|version}

frps config

/usr/local/frps/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 = 4444
# udp port used for kcp protocol, it can be same with 'bind_port'
# if not set, kcp is disabled in frps
kcp_bind_port = 4444
# if you want to configure or reload frps by dashboard, dashboard_port must be set
dashboard_port = 6001
# dashboard assets directory(only for debug mode)
dashboard_user = user
dashboard_pwd = password
# 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 = error
log_max_days = 3
# auth token
token = 1234567890
# It is convenient to use subdomain configure for http、https type when many people use one frps server together.
subdomain_host = 192.168.1.3
# 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

更多关于frp脚本请看: https://github.com/MvsCode/frp-onekey

2.安装frp客户端

wget https://github.com/fatedier/frp/releases/download/v0.29.0/frp_0.29.0_linux_arm64.tar.gz
tar -xvf frp_0.29.0_linux_arm64.tar.gz
cd frp_0.29.0_linux_arm64
vim frpc.ini
赞(0) 打赏
未经允许不得转载:AffGoTo » raspberrypi 4B-树莓派4B内网穿透+SSH+VNC

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏