Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

Use Cloudflare Argo Tunnel to Expose Internal Web Application to Internet

5/5/2021

0 Comments

 
Use Cloudflare Argo Tunnel to Expose Internal Web Application to Internet
It is a great tool if you need to expose your internal web application to Internet. Fast, easy, and most important, it is free.

Here is the Announcement from Cloudflare Blog on April 15 2021

"In the past, Argo Tunnel has been priced based on bandwidth consumption as part of Argo Smart Routing, Cloudflare’s traffic acceleration feature. Starting today, we’re excited to announce that any organization can use the secure, outbound-only connection feature of the product at no cost. "

Basically, even with free subscription plan, you can use Argo tunnel to provide secure access to internal Applications from anywhere. Here is the topology diagram for the Argo tunnel traffic flow.


More explaination about how Argo Tunnel works from Clouflare Docs:

"Argo Tunnel runs a lightweight daemon (cloudflared) in your infrastructure that establishes outbound connections (Tunnels) between your service and the Cloudflare edge. When Cloudflare receives a request for your chosen hostname, it proxies the request through those connections to cloudflared. In turn, cloudflared proxies the request to your applications.

This forces any requests to access your applications to go through Cloudflare. This way, you can be sure attack traffic is stopped with Cloudflare’s WAF and Unmetered DDoS mitigation, and authenticated with Access if you’ve enabled those features for your account.

Argo Tunnel can connect HTTP web servers, SSH servers, remote desktops, and other protocols. Additionally, a single connector, the cloudflared daemon, can connect multiple applications of different types."


Step 1. Download and Install Coudflared

Releases can be found on GitHub Open external link. Downloads are available as standalone binaries or packages like Debian and RPM.

​Linux

Type amd64 / x86-64 x86 (32-bit) ARMv6 ARM64
Binary Download Open external link Download Open external link Download Open external link Download from GitHub Open external link
.deb Download Open external link Download Open external link Download Open external link -
.rpm Download Open external link Download Open external link Download Open external link -

​.deb install (Ubuntu, Linux Mint)

Use the deb package manager to install cloudflared on compatable machines. amd64 / x86-64 package in this example.


wget -q https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.deb
dpkg -i cloudflared-stable-linux-amd64.deb


.rpm install  (CentOS, Fedora, RHEL)

Use the rpm package manager to install cloudflared on compatable machines. amd64 / x86-64 is used in this example.


wget -q https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.rpm
rpm -ivh cloudflared-stable-linux-amd64.rpm

Docker

A Docker image of cloudflared is available on DockerHub Open external link.

​macOS

You can install cloudflared on macOS systems via Homebrew:


$ brew install cloudflare/cloudflare/cloudflared



Alternatively, you can download the latest Darwin amd64 release directly.

​Windows

Type 32-bit 64-bit
ZIP Download Open external link Download Open external link


​Updating cloudflared

You can update cloudflared by running the following command.


Cloudflared update


The update will cause cloudflared to restart which would impact traffic currently being served. You can perform zero-downtime upgrades by using Cloudflare's Load Balancer product or by using multiple cloudflared instances.


Step 2. Create Tunnel for your Internal Web Application

Assuming your local web application is running on port 9000, such as my portainer web page. 


cloudflared tunnel --url localhost:9000

Here is an output example using local port : 8000



Step 3. Test public url from Internet


Please check this YouTube video for all steps:


References

  • Connect applications
  • A Boring Announcement: Free Tunnels for Everyone
  • A free Argo Tunnel for your next project














via Blogger https://ift.tt/3elNMiz
May 05, 2021 at 11:44AM VPN
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org