{"id":781,"date":"2021-01-19T01:15:46","date_gmt":"2021-01-19T01:15:46","guid":{"rendered":"https:\/\/dft.wiki\/?p=781"},"modified":"2026-06-09T13:16:35","modified_gmt":"2026-06-09T17:16:35","slug":"opening-a-tunel-trough-the-firewall-with-ngrox","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=781","title":{"rendered":"Opening a Tunel Trough the Firewall with NGROX"},"content":{"rendered":"<p>Why would I want to open a tunnel through my firewall?<\/p>\n<p>Suppose you have a service (HTTP, SSH, etc.) on a specific device (laptop, Raspberry Pi, etc.) behind a firewall that blocks outside access, and you need to share it with a device outside the network.<\/p>\n<p>Go to NGROK [<a href=\"https:\/\/ngrok.com\/\">Link<\/a>] and create an account.<\/p>\n<p>Find the version for the system you want to share the service from, copy the link, and download NGROK on the host machine.<\/p>\n<p>For Linux 64-bit:<\/p>\n<pre>wget https:\/\/bin.equinox.io\/c\/4VmDzA7iaHb\/ngrok-stable-linux-amd64.zip<\/pre>\n<p>For Raspberry Pi:<\/p>\n<pre>wget https:\/\/bin.equinox.io\/c\/4VmDzA7iaHb\/ngrok-stable-linux-arm.zip<\/pre>\n<p>On the host device, extract the zip and add the &#8216;<strong>authtoken<\/strong>&#8216; from your account:<\/p>\n<pre>unzip ngrok*.zip\r\n.\/ngrok authtoken 1nGTE96CoM7lXK8A0e7FNvg4NiD_6FCzSWB6fV9pgjAHQafoh<\/pre>\n<p>Run NGROK with the method and port of your service. Example for an HTTP server on localhost:<\/p>\n<pre>.\/ngrok http 80<\/pre>\n<p>A window will open showing the public address that tunnels traffic to the host device.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-782\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/01\/ngrok.png\" alt=\"\" width=\"556\" height=\"167\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/01\/ngrok.png 556w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/01\/ngrok-300x90.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n<p>Copy and paste the generated address into a browser on any client to get access. The tunneled service stays available as long as NGROK is running. Press CTRL + C to stop it at any time.<\/p>\n<p>To tunnel the SSH port:<\/p>\n<pre>.\/ngrok tcp 22<\/pre>\n<p>For help:<\/p>\n<pre>.\/ngrok help<\/pre>\n<hr \/>\n<p><strong>BONUS<\/strong><\/p>\n<p>Try <strong>RusTunnel<\/strong> [<a href=\"https:\/\/github.com\/joaoh82\/rustunnel\">Link<\/a>], an open-source tunnel service written in Rust that replicates the core functionality of ngrok.<\/p>\n<hr \/>\n<p><strong>READ MORE<\/strong><\/p>\n<p><strong>Setting Up a Cloudflare CDN<\/strong> [<a href=\"https:\/\/dft.wiki\/?p=1964\">Link<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why would I want to open a tunnel through my firewall? Suppose you have a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4,6],"tags":[],"class_list":["post-781","post","type-post","status-publish","format-standard","hentry","category-hacking","category-linux","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=781"}],"version-history":[{"count":5,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/781\/revisions"}],"predecessor-version":[{"id":5797,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/781\/revisions\/5797"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}