通过 frp 实现群晖的 drive 远端同步

通过 frp 实现 drive 同步

其实其他的也类似, 只是指定 tcp 的端口不一致就可以. frp 实现的外网端口映射"肥肠"方便.

也推广下 frp 的地址 frp-github 上边的文档很丰富, 我这里就不
搬砖了.

  1. frp 配置
    1. server端 -- 自己的远端服务器
## server 端配置

[common]
bind_port = 7000
#vhost_http_port = 8080
dashboard_port = 7500 # 开启dashboard
dashboard_user = username
dashboard_pwd = password
max_pool_count = 5
authentication_timeout = 900


[ssh]
listen_port = 6000
auth_token = xxxxx
  1. client端 -- 群晖服务器
## client 端配置

[common]
server_addr = xxxx  # 自己远端的服务器地址
server_port = 7000
auth_token = xxxxx # 可以设置这个进行auth_token认证, client也要配置相同
pool_count = 5

[ssh]
type = tcp
local_ip = xxxxxx
local_port = 22
remote_port = 6000

[nas]
#privilege_mode = true
type = tcp
local_port = 5000
remote_port = 5000

[drive]
#privilege_mode = true
type = tcp
local_port = 10002 # 这个端口是在群晖中开启的
remote_port = 3000
  1. 群晖drive中开启端口

如图, 其中的端口设置为 自己想要的端口

  1. 在drive中设置自己的远程代理的端口就可以了

posted @ 2018-08-25 11:31  北山秋叶  阅读(2263)  评论(0编辑  收藏  举报