ngrok
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ngrok [2023/06/15 19:57] – zainal | ngrok [2023/07/06 01:24] (current) – [Instalasi Linux] zainal | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Ngrok Membuat Private Server Menjadi Publik ====== | ||
| + | |||
| + | http:// | ||
| + | |||
| + | 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:// | ||
| + | sudo tee / | ||
| + | echo "deb https:// | ||
| + | sudo tee / | ||
| + | sudo apt update && sudo apt install ngrok | ||
| + | | ||
| + | Install as service | ||
| + | |||
| + | '' | ||
| + | |||
| + | Other command related to service | ||
| + | | ||
| + | ngrok service start | ||
| + | ngrok service stop | ||
| + | ngrok service restart | ||
| + | ngrok service uninstall | ||
| + | | ||
| + | Check ngrok status by http:// | ||
| + | |||
| + | ===== Config File ===== | ||
| + | |||
| + | File location: \home\*username*\.config\ngrok\ngrok.yml | ||
| + | |||
| + | version: " | ||
| + | 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\\ | ||
| + | |||
| + | |||
| + | |||
