群晖 可道云 docker 部署

【黑群晖】记录黑群晖使用过程中的一些坑
  • frp_0.55.1 内网穿透 – 无需购买/申请域名
  • FIle Station 提示 无法执行此操作,可能是因为网络连接不稳定或者系统正忙

frp_0.55.1 内网穿透 – 无需购买/申请域名

需求:
通过外网访问多个nas服务,但只有一个公网ip,没有域名。通过tcp服务,可以访问不带登录认证的http服务,如baiduapp,但是存在安全隐患,因为其他人访问该网页也不需要密码,只适用于公开的博客等。采用修改host的方法,通过域名可安全访问。

注意:

  1. 由于frp的版本更替,网络上很多配置表的字典名称错误,建议查阅官方的最新文档
    %20https://gofrp.org/zh-cn/docs/
  2. 带登录认证的网页,只能用http或https;不带的可以用tcp
  3. 域名不能带.com,会被要求到工信部认证

在Aliyun服务器上安装frps_0.55.1,配置如下:

# Server # /usr/local/frps/frps.toml bindPort = xxxx # 服务端监听端口 vhostHTTPPort = xxxx # http服务端口 auth.method = "token" # auth token auth.token = "xxxx"
# Server # /usr/local/frps/frps.toml bindPort = xxxx # 服务端监听端口 vhostHTTPPort = xxxx # http服务端口 auth.method = "token" # auth token auth.token = "xxxx"
# Server # /usr/local/frps/frps.toml bindPort = xxxx # 服务端监听端口 vhostHTTPPort = xxxx # http服务端口 auth.method = "token" # auth token auth.token = "xxxx"

黑群晖上安装frpc_0.55.1或frpc套件,配置如下:

# Client # ./frp/frpc.toml serverAddr = "xxx.xxx.xxx.xx" serverPort = xxxx # 服务端监听端口,同bindPort auth.method = "token" # auth token auth.token = "xxxx" [[proxies]] name = "synology-web" type = "http" localIP = "127.0.0.1" localPort = 5000 # 本地服务端口,例如群晖是5000 customDomains = ["xxx.xxx.xxx.xxx"] # 阿里云服务器的公网ip(仅能通过ip访问一个http网页;或者改成类似baiudapp的域名) transport.useEncryption = true transport.useCompression = true httpUser = "xxx" # Basic Authentication 认证,安全起见 httpPassword = "xxx" [[proxies]] name = "baiduapp" # baiduapp套件 type = "http" localIP = "127.0.0.1" localPort = 8092 customDomains = ["baiduapp.free.domain"] # 随便设置一个域名,在host中对应修改为aliyun的公网ip,【注意不能加.com】 transport.useEncryption = true transport.useCompression = true [[proxies]]
# Client # ./frp/frpc.toml serverAddr = "xxx.xxx.xxx.xx" serverPort = xxxx # 服务端监听端口,同bindPort auth.method = "token" # auth token auth.token = "xxxx" [[proxies]] name = "synology-web" type = "http" localIP = "127.0.0.1" localPort = 5000 # 本地服务端口,例如群晖是5000 customDomains = ["xxx.xxx.xxx.xxx"] # 阿里云服务器的公网ip(仅能通过ip访问一个http网页;或者改成类似baiudapp的域名) transport.useEncryption = true transport.useCompression = true httpUser = "xxx" # Basic Authentication 认证,安全起见 httpPassword = "xxx" [[proxies]] name = "baiduapp" # baiduapp套件 type = "http" localIP = "127.0.0.1" localPort = 8092 customDomains = ["baiduapp.free.domain"] # 随便设置一个域名,在host中对应修改为aliyun的公网ip,【注意不能加.com】 transport.useEncryption = true transport.useCompression = true [[proxies]]
# Client # ./frp/frpc.toml serverAddr = "xxx.xxx.xxx.xx" serverPort = xxxx # 服务端监听端口,同bindPort auth.method = "token" # auth token auth.token = "xxxx" [[proxies]] name = "synology-web" type = "http" localIP = "127.0.0.1" localPort = 5000 # 本地服务端口,例如群晖是5000 customDomains = ["xxx.xxx.xxx.xxx"] # 阿里云服务器的公网ip(仅能通过ip访问一个http网页;或者改成类似baiudapp的域名) transport.useEncryption = true transport.useCompression = true httpUser = "xxx" # Basic Authentication 认证,安全起见 httpPassword = "xxx" [[proxies]] name = "baiduapp" # baiduapp套件 type = "http" localIP = "127.0.0.1" localPort = 8092 customDomains = ["baiduapp.free.domain"] # 随便设置一个域名,在host中对应修改为aliyun的公网ip,【注意不能加.com】 transport.useEncryption = true transport.useCompression = true [[proxies]]

原文链接:https://blog.51cto.com/u_12897/12823964

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享