Skip to content

Instantly share code, notes, and snippets.

@suxiaogang
Last active July 27, 2020 04:37
Show Gist options
  • Save suxiaogang/44827b250d6cf441011988fa6cdcf57c to your computer and use it in GitHub Desktop.
Save suxiaogang/44827b250d6cf441011988fa6cdcf57c to your computer and use it in GitHub Desktop.
群晖安装frp / 远程连接 / 本地和服务端配置

群晖开启SSH

“控制面板” -> ”终端机和SNMP“,启用SSH

下载frp

https://github.com/fatedier/frp/releases/

客户端配置 frpc.ini

[common]
server_addr = 149.149.149.149
server_port = 7000

[nas_home]
type = http
local_port = 5000
custom_domains = nas.your-public-dodmain.com

服务端配置 frps.ini

[common]
bind_port        = 7000
vhost_http_port  = 7008
vhost_https_port = 7010

dashboard_port   = 7001
dashboard_user   = admin
dashboard_pwd    = your_password

设置开机启动

  1. 计划任务 -> 新增计划任务 -> 触发的任务 -> 用户自定义脚本
  2. 内容如下:
  
cd /var/services/homes/admin/frp_0.33.0_linux_386/
nohup ./frpc -c ./frpc.ini &  

配置权限

chmod +x frpc
chmod +x frpc.ini

查看后台frpc是否正在运行

ps -aux|grep frpc|grep -v grep
访问 nas.your-public-dodmain.com:7008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment