通過 frp 實現 drive 同步
其實其他的也類似, 只是指定 tcp 的端口不一致就可以. frp 實現的外網端口映射"肥腸"方便.
也推廣下 frp 的地址 frp-github 上邊的文檔很豐富, 我這里就不
搬磚了.
- frp 配置
- 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
- 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
- 群暉drive中開啟端口

如圖, 其中的端口設置為 自己想要的端口
- 在drive中設置自己的遠程代理的端口就可以了

