Ngrok centos server setup: windows Client Setup details, ngrokcentos

Source: Internet
Author: User
Tags centos server subdomain

Ngrok centos server setup: windows Client Setup details, ngrokcentos

Ngrok centos server setup: windows client settings

GOOS = windows GOARCH = amd64 make release-client
Copy the compiled ngrok.exe to the windows computer,

Create a new ngrok.cfg on windows

server_addr: "test.com:7443"
trust_host_root_certs: false
Create a startup.bat on windows

ngrok -config = ngrok.cfg -subdomain map local domain name local port
Such as ngrok -config = ngrok.cfg -subdomain t1 8081

Start start.bat,

Extranet domain name access
https://t1.test.com:8234
The address mapped to the local is
https://127.0.0.1:8081

An example of a complex configuration file:

server_addr: "myngrok.com:8083"
trust_host_root_certs: false

tunnels:
  http:
    subdomain: "www"
    proto:
      http: "8081"

  https:
    subdomain: "www"
    proto:
      https: "8082"

  web:
    proto:
      http: "8050"
  tcp:
    proto:
      tcp: "8001"
    remote_port: 5555

  ssh:
    remote_port: 2222
    proto:
      tcp: "22"
A bat that can automatically start the subdomain

@echo OFF
color 0a
Title ngrok start
Mode con cols = 109 lines = 30
: START
ECHO.
Echo ===================================================== =========================
ECHO.
Echo ngrok start
ECHO.
Echo Author: https://segmentfault.com/u/object
ECHO.
Echo ===================================================== =========================
Echo.
echo.
echo.
: TUNNEL
Echo Enter the domain name prefix that needs to be activated, such as "test", that is, the penetration domain name assigned to you is: "test.myngrok.com"
ECHO.
ECHO.
ECHO.
set / p clientid = Please enter:
echo.
ngrok -config = ngrok.cfg -subdomain =% clientid% 80
PAUSE
goto TUNNEL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.