Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
FREEDOM251

Freedom251 › Blog › Cloudflare Tunnel alternatives

Best self-hosted alternatives to Cloudflare Tunnel for exposing services

By Freedom251 Team · · 12 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

The best self-hosted alternative to Cloudflare Tunnel depends on who must reach your service. Use a private mesh or overlay network when access is limited to your own devices or a trusted group. Use a self-operated relay—typically a small public VPS paired with an agent behind your NAT—when anonymous internet users, customers, or third-party webhooks need a public URL. A conventional reverse proxy on your own public server is another option when you can accept inbound firewall ports and manage TLS directly. Projects such as frp, rathole, Pangolin, zrok, inlets, and Boringproxy are useful short-list candidates, but their current protocol support, licensing, and security controls must be checked in official documentation before deployment.

What is the right replacement for Cloudflare Tunnel?

Choose by exposure model first, not by project name. Cloudflare Tunnel is a vendor-operated edge: an agent on your network opens outbound connections to Cloudflare, and Cloudflare publishes a hostname to your local origin. A genuinely self-hosted design moves the public endpoint, control plane, or both under your administration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

As an Amazon Associate I earn from qualifying purchases.

  • Private access: keep the service off the public internet and use a mesh VPN or private overlay for approved devices.
  • Public access with minimal network changes: run a relay on a public host and connect your internal agent outbound to it.
  • Public access with full edge control: place a reverse proxy on a server with a public IP, open the required inbound ports, and manage certificates and policy yourself.

Do not make an internal dashboard public merely because tunnelling is convenient. The audience, protocol, and failure tolerance determine the architecture.

How is Cloudflare Tunnel different from a self-hosted alternative?

Cloudflare documents Tunnel as an outbound-only connection from your infrastructure to its network, so the origin does not need an inbound port or publicly exposed origin IP in the documented setup. Publishing an application requires a Cloudflare account, a domain managed by Cloudflare, and an internet-connected server; a public hostname is then mapped to a local HTTP or HTTPS service. See the Cloudflare Tunnel documentation and its setup guide.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

That convenience also creates dependency on the provider’s edge, account, DNS, certificate, policy, and availability. A self-hosted replacement can remove or reduce that dependency, but you become responsible for the relay’s uptime, software updates, monitoring, abuse handling, firewalling, credentials, and recovery. “Self-hosted” does not automatically mean peer-to-peer or private: if a VPS is the public relay, traffic still traverses that machine unless your design provides end-to-end encryption beyond the relay’s TLS termination.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Should the service be private or public?

Private remote access and public publishing solve different problems. Decide the audience before comparing tools.

Private access for your own devices

If only your laptop, phone, administrators, or a defined team needs access, use a private overlay or mesh VPN. The service can listen on an overlay address while remaining unreachable from the public internet. This reduces scanning and anonymous abuse, and it avoids exposing an administrative login page to every internet client. The FOSS Engineer guide to secure external access likewise treats trusted-device access as a separate case from public ingress.

Public access for customers and webhooks

Choose public ingress when an unauthenticated browser, a customer, or a third-party webhook provider must connect. Confirm whether the sender requires a stable hostname, a fixed source IP, a particular TLS version, or a protocol other than HTTP. A private overlay will not satisfy a webhook service that cannot join your network.

Mixed exposure

Many deployments need both: a private administration interface and a separate public application endpoint. Put them on separate hostnames or listeners, apply different identity policies, and route only the necessary paths. Never assume that authenticating the public application also protects an administrative port on the same relay.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Which architectures can replace a managed tunnel?

There are three practical self-operated patterns. The choice is mostly about where the public listener runs and who maintains it.

Architecture Public endpoint Network requirement at the origin Best fit Main work you own
Private overlay or mesh VPN None; access is limited to overlay members Outbound connectivity; inbound ports usually unnecessary Personal tools, internal dashboards, team administration Device enrollment, identity, route policy, updates
Self-hosted relay tunnel A VPS or other public host you operate Agent makes outbound connection; useful behind NAT or CGNAT Public HTTP services without opening your home firewall Relay hardening, availability, certificates, agent credentials, monitoring
Direct reverse proxy Your own public server or site network Inbound TCP ports and a routable address, or port forwarding Teams that want conventional HTTP/TLS control Firewall, DNS, TLS renewal, proxy updates, DDoS and abuse response
Vendor-operated tunnel baseline Provider edge Outbound agent connection Fast setup when provider dependency is acceptable Account, domain, provider policy and outage dependency

A relay is not magic NAT traversal: it is a server with a public address that forwards traffic between an internet client and your origin agent. Budget for its bandwidth, storage for logs, operating-system updates, and a recovery path if the host or account is unavailable.

Which projects belong on a self-hosted shortlist?

Comparison pages identify several projects, but the available evidence does not establish a defensible overall ranking. Treat the names below as starting points and verify current official documentation, releases, license terms, supported protocols, and security advisories before choosing one. The candidate names appeared in the H2 Labs comparison and the ngrok alternatives comparison.

Candidate What the retrieved comparisons indicate What you must verify before deployment
frp Presented as a broad self-hosted reverse-proxy/tunnel candidate with multiple protocol possibilities. Current server/client topology, authentication and encryption, HTTP versus raw TCP/UDP behavior, access-control granularity, and upgrade procedure. Exact support is not established here.
rathole Described by H2 Labs as a Rust-based self-hosted tunnel aimed at constrained hardware. Do not infer performance from that description. Check supported transports, resource requirements, cryptography, configuration syntax, and benchmark conditions in project documentation.
Pangolin Identified as a self-hosted option with a web-interface and fleet-management positioning; the comparison mentions HTTP and raw TCP/UDP and community/enterprise licensing. Confirm edition boundaries, license obligations, identity model, raw-protocol support, deployment topology, and what is included in each current release.
zrok Surfaced as an OpenZiti-based sharing option. Determine which modes can be operated entirely by you, whether a public relay is involved, how identities and encryption work, and whether a custom domain is supported in your chosen mode.
inlets Surfaced as a Kubernetes-oriented self-hosted tunnel; one comparison reports commercial licensing. Verify the current product editions, Kubernetes requirements, protocol coverage, pricing, and whether a non-Kubernetes deployment is supported.
Boringproxy Listed by H2 Labs as a server/client tool with a web UI. The retrieved evidence is secondary. Confirm project maintenance, release status, authentication, TLS handling, supported protocols, and production deployment guidance from primary sources.

“Self-hosted” can describe only the server, while the client, dashboard, relay, or identity service remains operated elsewhere. Ask the maintainer exactly which components run on your infrastructure and where a request is decrypted.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I compare candidates for my service?

Write down the requirements before installing anything. A short test that answers these questions is more useful than a feature list.

Rank #3
Sale
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord | 6.35mm Jack, Durable Design, Stage and Home Studio Use, Low Noise Shielded Electric Cord for Bass, Keyboard, Amp, Mixer
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Audience and identity

  • Can the endpoint be anonymous, or must every request authenticate first?
  • Can you create separate identities for operators, applications, and automation?
  • Does policy support least-privilege routing, path restrictions, device approval, and revocation without redeploying every client?

Protocols and connection behavior

  • HTTP and HTTPS are not equivalent to arbitrary TCP, UDP, SSH, or RDP. Verify each protocol explicitly.
  • Check WebSocket, long-lived connections, streaming, maximum request size, idle timeouts, and connection limits if your application needs them.
  • For non-HTTP services, determine whether users need a special client, a local proxy, or a publicly reachable port.

Names, certificates, and termination

  • Can you use your own domain, or only a provider-generated hostname?
  • Where is TLS terminated: the relay, the origin, or both? Decide whether the relay operator can inspect plaintext.
  • Document certificate issuance, renewal, wildcard handling, and what happens when DNS or the certificate authority is unavailable.

Network and hosting prerequisites

  • Record whether the origin is behind carrier-grade NAT, a restrictive firewall, or an egress-only network.
  • List the relay’s required inbound ports and the agent’s required outbound destinations so an egress policy can be written precisely.
  • Confirm IPv4 and IPv6 behavior, region availability, bandwidth and transfer limits, and whether the host offers snapshots or backups.

Operations and dependency

  • Identify who receives security advisories and who can rotate a compromised token.
  • Define health checks, logs, metrics, alert thresholds, and a rollback version before exposing production traffic.
  • Price the complete system: public host, domain, backups, bandwidth, monitoring, and staff time. No independently verified price comparison is available for these candidates.

How do I deploy a self-hosted relay safely?

The commands differ by project, so use the selected project’s current official installation instructions. The following sequence is tool-agnostic and prevents the common mistake of publishing first and designing controls later.

  1. Define the exposure contract. Write the hostname, protocol, expected clients, authentication method, maximum acceptable downtime, and data classification. Mark administrative paths as private even if the application is public.
  2. Provision the public host. Use a supported operating system on a host with a stable public address. Enable automatic security updates where compatible, create a non-root administrator, disable password-based remote login, and restrict the management port to your administration network.
  3. Install the relay and pin configuration. Obtain packages or binaries from the project’s official release channel, record the version and checksum when provided, and keep configuration in a protected, backed-up location. Do not copy sample secrets into production.
  4. Open only required firewall ports. Allow the relay listener ports and management access; deny everything else by default. Separate the public listener from the host’s administration interface if the software supports it.
  5. Create a narrowly scoped agent credential. Use a unique token or key for each origin. Store it in a root-readable file or secret manager, set an expiration or rotation schedule, and revoke it immediately when an origin is decommissioned.
  6. Connect a non-production origin. Start with a harmless test service. Confirm that the agent reconnects after a network interruption and that stopping the agent removes public reachability rather than leaving a stale backend exposed.
  7. Configure DNS and TLS. Point the chosen hostname to the relay as documented by the project. Test certificate issuance and renewal in a staging or test hostname first; verify the certificate’s subject, chain, protocol versions, and renewal alerting.
  8. Add identity and rate controls. Put authentication before the application where possible, limit routes to required hosts or paths, cap request rates and body sizes, and reject unexpected methods. Keep an emergency private administration path separate.
  9. Test from outside your network. Use a mobile connection or another independent network. Exercise normal requests, failed authentication, oversized requests, WebSockets or streaming if needed, and the service’s real callback provider.
  10. Instrument and document. Collect relay and origin logs with synchronized clocks, monitor connection count and error rate, document the restore procedure, and record who can change DNS, credentials, and firewall rules.

How do I harden a public tunnel?

A tunnel changes reachability, not the security of the application behind it. Apply controls at both the relay and origin.

  • Minimize the route: publish one service and required paths, not an entire private subnet. Bind the origin application to the relay agent’s local interface where possible.
  • Use layered authentication: require identity-aware access at the edge for operator tools and application authentication inside the service. Never treat an obscure hostname as a password.
  • Protect the origin: keep databases, metadata endpoints, debug consoles, and cloud-instance identity endpoints unreachable from the published listener.
  • Validate forwarded headers: configure a trusted-proxy list and discard client-supplied forwarding headers unless they came from your relay. Log the original address only when the chain is authenticated.
  • Limit abuse: apply rate limits, connection caps, upload limits, and timeouts. Public endpoints attract scanners even when the application is obscure.
  • Rotate and revoke: replace relay credentials on a schedule and after staff, host, or repository exposure. Test that revocation actually disconnects the old agent.
  • Patch the whole path: update the relay operating system, tunnel software, reverse proxy, origin runtime, and application. Subscribe to project security advisories.
  • Preserve evidence: retain access and administrative logs for a period appropriate to your requirements, protect them from alteration, and avoid logging secrets or sensitive payloads.

What does Tailscale Funnel tell me about public versus private sharing?

Tailscale documents Serve as tailnet-only sharing and Funnel as public sharing through its relay servers. Funnel uses tailnet-domain names, requires TLS, and accepts listeners on ports 443, 8443, and 10000; the documentation also describes non-configurable bandwidth limits. It is disabled by default and requires MagicDNS, HTTPS certificates, and an applicable node attribute. Check the current status and plan terms in the Funnel documentation because availability details can change.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This illustrates the architectural distinction: a private overlay can be ideal for trusted devices, while a public relay is necessary for arbitrary internet clients. It is not a self-hosted relay—its relay infrastructure remains operated by the provider—but it can be a useful baseline when your real requirement is private access rather than owning the edge.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What are the common failure modes?

The hostname works inside the LAN but not externally

Test from an unrelated network, then inspect DNS records, certificate validity, relay listener status, and the agent’s outbound connection. Split-horizon DNS or hairpin NAT can make an internal test misleading.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

The agent connects, but the application returns 502 or timeout

Verify the origin address from the agent’s network namespace, local firewall rules, application bind address, idle timeout, and protocol mode. A service listening only on IPv6 or only on loopback may not match the relay configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Webhooks fail intermittently

Check callback timeouts, body-size limits, retries, signature verification, and whether the sender requires a stable source address. Log a request identifier at the relay and application so a failed delivery can be traced across both sides.

Users see the wrong client IP

Configure trusted forwarded headers at the application and ensure only the relay can reach the origin port. Otherwise, an attacker can forge an address header and bypass IP-based policy.

A certificate expires after an apparently successful setup

Confirm that renewal can reach the certificate authority, that DNS still points where expected, and that the renewal process has permission to update the certificate used by the listener. Alert before expiry and perform a renewal test after every relay migration.

The relay host is overloaded

Measure concurrent connections, bandwidth, CPU, memory, disk I/O, and log growth separately. Reduce logging volume, enforce per-client limits, move large transfers to a suitable path, or add capacity; do not respond by removing security controls.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How should I make the final choice?

Use this order: (1) classify the audience as private or public; (2) list protocols and client constraints; (3) decide whether you will run a public relay; (4) select domain and TLS ownership; (5) design identity, least-privilege routes, and credential rotation; and (6) price and operate the complete path. Only then test a candidate in a disposable environment.

If your service is private, a mesh or overlay is usually the smaller attack surface. If it must be public and your origin is behind NAT or CGNAT, a self-operated relay is the closest architectural substitute for an outbound tunnel. If you already control a public server and need conventional HTTP operations, a direct reverse proxy may be simpler than adding a tunnel layer. No candidate in the available evidence can be named the universal “best”; the correct choice is the one whose verified protocol support and operational model match your service.

Frequently Asked Questions

Can I expose SSH through a self-hosted tunnel?

Often yes, but support varies between HTTP-only and arbitrary-TCP designs. Confirm whether the project requires a client-side helper, whether the public listener is restricted to approved identities, and how host-key verification is preserved; never publish an unrestricted SSH port just to test connectivity.

Will a tunnel work behind carrier-grade NAT?

An outbound-agent design generally can, because the origin initiates the connection to a public relay. You still need permitted outbound traffic, a relay with reachable listener ports, and a reconnect strategy; a direct reverse proxy or port-forwarding design usually cannot bypass CGNAT without another public intermediary.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do I need to move my domain to the tunnel operator?

Not necessarily. A self-operated relay can usually use DNS records that you control, while some managed products require their DNS or account integration. Check the selected project’s certificate automation, required record types, and whether DNS changes are needed only during setup or continuously.

How can I migrate away from a managed tunnel without downtime?

Lower the existing DNS record’s TTL ahead of the change, deploy and test the new relay on a separate hostname, then switch traffic after external checks pass. Keep the old path available until certificates, webhooks, authentication, and rollback have been verified on the new endpoint.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Cloudflare Tunnel alternativesHomelabNAT traversalNetwork Securityreverse proxyself-hosted tunnels

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.