1. <td id="kbyxm"><ruby id="kbyxm"></ruby></td>
    2. <acronym id="kbyxm"></acronym>
      <pre id="kbyxm"></pre>
        <track id="kbyxm"><strike id="kbyxm"></strike></track>
          <tr id="kbyxm"></tr>

        1. <table id="kbyxm"></table>
        2. <acronym id="kbyxm"></acronym>

          利用frp穿透到內網的http網站實現對外開放

           

          frps.ini服務端配置

          服務端啟動

          frps -c frps.ini
          [common]
          bind_port = 7300
          dashboard_user = admin
          dashboard_pwd = 123456
          

           

          frpc.ini客戶端多ip或端口配置

          客戶端啟動

          frpc -c frpc.ini
          [common]
          server_addr = 114.114.114.114--服務IP
          server_port = 7300--服務端口
          dashboard_user = admin--服務賬號
          dashboard_pwd = 888888--服務密碼
          
          [frp-ckb]--名字記得起不同的以區分
          type = tcp
          local_ip = 10.11.31.17--內網IP
          local_port = 8780--內網端口
          remote_port = 7302--外網端口
          
          [frp-baseckb]
          type = tcp
          local_ip = 10.11.31.17
          local_port = 8790
          remote_port = 7303

          進階配置

          frps.ini配置

          [common]
          bind_addr = 0.0.0.0//監聽地址,默認0.0.0.0就行
          bind_port = 7000//frps與frpc交互用的端口,記得打開防火墻
          token = 12345678//設置token
          log_file = ./frps.log//日志路徑
          log_level = info//日志級別:trace(追蹤), debug(調試), info(信息), warn(警告), error(錯誤)
          log_max_days = 3//日志保存天數
          max_pool_count = 5//連接池數量,如果有很多鏈接最好弄高點,默認5
          //后臺儀表盤,登錄后可查看frp狀態
          dashboard_addr = 0.0.0.0//監聽IP
          dashboard_port = 7500//監聽端口
          dashboard_user = admin//登錄賬號
          dashboard_pwd = admin//登錄密碼
          //HTTP協議
          vhost_http_port = 80//監聽http協議的端口,可以與bind_port相同
          vhost_https_port = 443//監聽https協議的端口,可以與bind_port相同
          vhost_http_timeout = 60//http協議超時時間(秒)
          
          

          frpc.ini配置 + 部署 frpc 客戶端并配置

          [common]
          server_addr = 114.514.191.981//服務器的公網ip,網址也行
          server_port = 7000//frps與frpc交互用的端口,記得打開防火墻
          token = 12345678//設置token,對應frps
          log_file = ./frps.log//日志路徑
          log_level = info//日志級別:trace(追蹤), debug(調試), info(信息), warn(警告), error(錯誤)
          log_max_days = 3//日志保存天數
          
          [test]
          type = tcp//連接類型,tcp | udp | http | https | stcp | xtcp//默認TCP
          local_ip = 127.0.0.1//被訪問的IP
          local_port = 3389//被訪問的端口
          remote_port = 7100//監聽的服務器端的端口
          use_encryption = true//是否加密信息
          use_compression = true//是否壓縮信息
          bandwidth_limit = 1MB//限制該隧道的帶寬,單位為KB或MB
          bandwidth_limit_mode = client//限制帶寬的位置,client或server,默認client(服務端)
          -----------------------------
          serverAddr = "x.x.x.x"
          serverPort = 7000
          
          [[proxies]]
          name = "secret_ssh"
          type = "stcp"
          # 只有與此處設置的 secretKey 一致的用戶才能訪問此服務
          secretKey = "abcdefg"
          localIP = "127.0.0.1"
          localPort = 22
          

          在訪問者機器上部署并配置 frpc

          serverAddr = "x.x.x.x"
          serverPort = 7000
          
          [[visitors]]
          name = "secret_ssh_visitor"
          type = "stcp"
          # 要訪問的 stcp 代理的名字
          serverName = "secret_ssh"
          secretKey = "abcdefg"
          # 綁定本地端口以訪問 SSH 服務
          bindAddr = "127.0.0.1"
          bindPort = 6000
          

          已有 0 條評論

            歡迎您,新朋友,感謝參與互動!
            2020日本三级黄色电影_三级黄色电影在线观看_亚洲bt色图噜一噜色视频_国产av在线网站
            1. <td id="kbyxm"><ruby id="kbyxm"></ruby></td>
            2. <acronym id="kbyxm"></acronym>
              <pre id="kbyxm"></pre>
                <track id="kbyxm"><strike id="kbyxm"></strike></track>
                  <tr id="kbyxm"></tr>

                1. <table id="kbyxm"></table>
                2. <acronym id="kbyxm"></acronym>