Материал из EPIRB Wiki
Версия от 21:59, 7 декабря 2015; RA1AMO (обсуждение | вклад)
ngrok
Мультиплатформенная утилита для туннелирования произвольного локального порта на публичный адрес минуя фаерволл. Имеет функцию мониторинга запросов.
Скачиваем
>wget https://ссылка_на_свежий_файл.zip
Распаковываем
>unzip ngrok_.zip
Запускаем (проброс наружу 80 порта)
>./ngrok http 80 ngrok by @inconshreveable (Ctrl+C to quit) Tunnel Status online Version 2.0.19/2.0.19 Web Interface http://127.0.0.1:4040 Forwarding http://xxxxxxx.ngrok.io -> localhost:80 Forwarding https://xxxxxxx.ngrok.io -> localhost:80 Connections ttl opn rt1 rt5 p50 p90 1 0 0.02 0.00 6.03 6.03 HTTP Requests ------------- GET /favicon.ico 404 Not Found GET /favicon.ico 404 Not Found GET / 200 OK
Справка по программе:
NAME: ngrok - tunnel local ports to public URLs and inspect traffic DESCRIPTION: ngrok exposes local networked services behinds NATs and firewalls to the public internet over a secure tunnel. Share local websites, build/test webhook consumers and self-host personal services. Detailed help for each command is available with 'ngrok help <command>'. Open http://localhost:4040 for ngrok's web interface to inspect traffic. EXAMPLES: ngrok http 80 # secure public URL for port 80 web server ngrok http -subdomain=baz 8080 # port 8080 available at baz.ngrok.io ngrok http foo.dev:80 # tunnel to host:port instead of localhost ngrok tcp 22 # tunnel arbitrary TCP traffic to port 22 ngrok tls -hostname=foo.com 443 # TLS traffic for foo.com to port 443 ngrok start foo bar baz # start tunnels from the configuration file VERSION: 2.0.19 AUTHOR: inconshreveable - <alan@ngrok.com> COMMANDS: authtoken save authtoken to configuration file credits prints author and licensing information http start an HTTP tunnel start start tunnels by name from the configuration file tcp start a TCP tunnel test test ngrok service end-to-end tls start a TLS tunnel update update to the latest version version print the version string help Shows a list of commands or help for one command