User Tools

Site Tools


ngrok

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ngrok [2023/06/15 19:51] – created zainalngrok [2023/07/06 01:24] (current) – [Instalasi Linux] zainal
Line 1: Line 1:
 +====== Ngrok Membuat Private Server Menjadi Publik ======
 +
 +http://ngrok.com merupakan servis yang memungkinkan kita mengakses private server dari luar, meskipun tidak memiliki public IP adress.
 +
 +Buat akun di ngrok.com, install agent ngrok di server, kemudian jalankan agent tersebut.
 +
 +Alamat web public yang di-generate akan berubah-ubah setiap kali agen restart. Tentu ini karena kita menggunakan free account :)
 +
 +===== Instalasi Linux =====
 +
 +  curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | \
 +  sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && \
 +  echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | \
 +  sudo tee /etc/apt/sources.list.d/ngrok.list && \
 +  sudo apt update && sudo apt install ngrok
 +  
 +Install as service
 +
 +''ngrok service install --config C:\ngrok\ngrok.yml''
 +
 +Other command related to service
 +  
 +  ngrok service start
 +  ngrok service stop
 +  ngrok service restart
 +  ngrok service uninstall
 +  
 +Check ngrok status by http://localhost:4040/inspect/http
 +
 +===== Config File =====
 +
 +File location: \home\*username*\.config\ngrok\ngrok.yml
 +
 +  version: "2"
 +  authtoken: 2QfcVFZpHj4eZWz30jDKZ7BZhX4_7Hn1nB23BYrcj7euukCQh
 +  tunnels:
 +    first:
 +      addr: 80
 +      proto: http
 +    second:
 +      addr: 22
 +      proto: tcp
 +    third:
 +      addr: 3389
 +      proto: tcp
 +      
 +
 +80 port webserver\\
 +22 port ssh\\
 +3389 port remote desktop connection\\
 +
 +
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki