DEV Community

Cover image for You need to stop using port forwarding right NOW !
Ionut aka BlitzCloud
Ionut aka BlitzCloud

Posted on

You need to stop using port forwarding right NOW !

TL;DR

In this article I will show an alternative to port forwarding. That offers the same configurability and is even more secure.

But why you may ask ?

Port forwarding was the way to go from the down of internet to allow inbound traffic from the internet to reach a machine(SSH) or a service on the local network, and will still be, but as tech enthusiastic I can say that the security might not be in the spotlight. But as the history shown us with every opened hole in the firewall comes at risk. You might be wandering how we can mitigate this issues. The obvious option is just not to expose anything to the world. Or to VPN inside your home network might work but with this set up you can expose any of your resources to the word.

What alternatives do we have to solve all this issues ?

After some research I discovered Cloudflare Argo Tunnels, the big advantage for me is that I can point a tunnel endpoint to one of the many domains or subdomains that i have already associated with my Cloudflare free account. With this service you have full control over your configuration and the security of your applications with the build in SSO platform.

If this cached your eye Let dive in ...

  1. Go on the Cloudflare Zero Trust Dashboard > Access > Tunnels page Cloudflare Zero Trust Dashboard
  2. And create your first tunnel Cloudflare Zero Trust Dashboard
  3. Name it Cloudflare Zero Trust Dashboard
  4. Choose your environment and follow the instructions on how to configure Cloudflare Zero Trust Dashboard
  5. Choose your domain and the location of the service you want to host Cloudflare Zero Trust Dashboard NOTE: You can also use Tunnels for SSH or RDP.
  6. Bonus ! Cloudflare also provides a VPN service, that can be used to access your home network. To use it you need the Cloudflare Warp Client. Cloudflare Zero Trust Dashboard

To wrap up in this article you saw how to configure a tunnel to expose your self-hosted services for free on the internet that doesn't require any port forwarding and based on my personal experience you could rely on this service as I do for more than a year

Top comments (0)