zoukankan      html  css  js  c++  java
  • frp客户端配置

    [common]
    server_addr = freenat.bid
    #frps服务端地址
    server_port = 7000
    #frps服务端通讯端口,客户端连接到服务端内网穿透传输数据的端口
    privilege_token = frp888
    #特权模式密钥,客户端连接到FRPS服务端的验证密钥
    log_file = frpc.log
    #日志存放路径
    log_level = info
    #日志记录类别,可选:trace, debug, info, warn, error
    log_max_days = 7
    #日志保存天数
    login_fail_exit = false
    #设置为false,frpc连接frps失败后重连,默认为true不重连
    protocol = kcp
    #如连接报错,则去掉
    #KCP协议在弱网环境下传输效率提升明显,但是对frps会有一些额外的流量消耗。服务端须先设置kcp_bind_port = 7000,freenat.bid服务端已设置支持

    [http_dsm]
    #穿透服务名称,不能和其他已建立的相同,使用公共服务器的建议修改成复杂一点的名称,避免与其他人冲突,很多路由器内置frpc的默认服务名称为[web],很容易很其他人冲突
    type = http
    #穿透协议类型,可选:tcp,udp,http,https,stcp,xtcp,这个设置之前必须自行搞清楚应该是什么
    local_ip = 192.168.1.2
    #本地监听IP,可以是本机IP,也可以是本地的局域网内某IP,例如你的局域网是互通的,你可以在路由器上安装frpc,然后local_ip填的群晖的ip,这样也可以把群晖穿透出去
    local_port = 5000
    #本地监听端口,通常有ssh端口22,远程桌面3389等等
    use_compression = true
    #对传输内容进行压缩,可以有效减小 frpc 与 frps 之间的网络流量,加快流量转发速度,但是会额外消耗一些 cpu 资源
    use_encryption = true
    #将 frpc 与 frps 之间的通信内容加密传输
    custom_domains = dsm.freenat.bid
    #自定义域名访问穿透服务,一般域名设置了二级域名泛解析以后,这里填*.freenat.bid即可,*自定义,如果不想用域名或者自行搭建frps没有域名,则穿透协议类型选择tcp,见以下tcp部分详解
    #通过app访问群晖的注意,DS file,DS video,DS audio,DS finder里地址栏默认都是5000端口,穿透后地址栏须填写为【穿透域名:80】,DS photo由于本地local_port为80,穿透后也为80的话直接写域名地址即可

    [https_dsm]
    type = https
    local_ip = 192.168.1.2
    local_port = 5001
    use_compression = true
    use_encryption = true
    custom_domains = dsm.freenat.bid
    #以上https配置同http,群晖注意开启https(默认5001端口),证书在客户端即群晖端配置,无证书的注意浏览器访问时添加信任

    [http_transmission]
    type = http
    local_ip = 192.168.1.2
    local_port = 9091
    use_compression = true
    use_encryption = true
    custom_domains = tr.freenat.bid
    #transmission下载客户端

    [http_rutorrent]
    type = http
    local_ip = 192.168.1.2
    local_port = 80
    use_compression = true
    use_encryption = true
    custom_domains = rt.freenat.bid
    #rutorrent下载客户端,用Download Station的类似,注意端口


    [http_blog]
    type = http
    local_ip = 192.168.1.2
    local_port = 80
    use_compression = true
    use_encryption = true
    custom_domains = blog.freenat.bid
    #群晖里的web搭建的博客,怎么搭建百度去

    [http_plex]
    type = http
    local_ip = 192.168.1.2
    local_port = 32400
    use_compression = true
    use_encryption = true
    custom_domains = plex.freenat.bid
    #plex视频服务器,外面直接通过plex看群晖内视频

    [https_feixun]
    privilege_mode = true
    type = http
    local_ip = 192.168.1.1
    #路由器ip
    local_port = 80
    use_compression = true
    use_encryption = true
    authentication_timeout = 0
    custom_domains = feixun.freenat.bid
    #穿透路由器


    [tcp_ssh]
    #群晖ssh连接
    type = tcp
    local_ip = 192.168.1.2
    local_port = 22
    use_compression = true
    use_encryption = true
    remote_port = 3463
    #远程端口,一般tcp和udp需要设置,不需要设置custom_domain,访问时为【frps服务器地址+远程端口】,没有域名的用这种方式通过【frps服务器地址+远程端口】即可实现访问

    [udp]
    type = udp
    local_ip = 192.168.1.2
    local_port = 53
    use_compression = true
    use_encryption = true
    remote_port = 3453
    #访问时为【frps服务器地址+远程端口】

    https://blog.csdn.net/qq123aa2006/article/details/88881478?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.nonecase

  • 相关阅读:
    归并排序(Merge Sort)
    AtCoder AGC035D Add and Remove (状压DP)
    AtCoder AGC034D Manhattan Max Matching (费用流)
    AtCoder AGC033F Adding Edges (图论)
    AtCoder AGC031F Walk on Graph (图论、数论)
    AtCoder AGC031E Snuke the Phantom Thief (费用流)
    AtCoder AGC029F Construction of a Tree (二分图匹配)
    AtCoder AGC029E Wandering TKHS
    AtCoder AGC039F Min Product Sum (容斥原理、组合计数、DP)
    AtCoder AGC035E Develop (DP、图论、计数)
  • 原文地址:https://www.cnblogs.com/cainiaoaixuexi/p/15749605.html
Copyright © 2011-2022 走看看