
How to Use Cloudflare Tunnel With Starlink Without Port Forwarding
Tips & Tricks
Starlink connections can sit behind carrier-grade NAT, which makes ordinary inbound port forwarding unreliable or unavailable. Cloudflare Tunnel solves a different problem: a small connector inside your network makes outbound-only connections to Cloudflare, so you can reach one web application without opening an inbound port on the Starlink router.
This guide is for a browser-based dashboard, Home Assistant page, local status page or similar HTTP application. It assumes you can run cloudflared on an always-on computer or server inside the Starlink network.
Cloudflare's dashboard labels, plan requirements and supported protocols can change. Use the current Cloudflare documentation and the options shown in your own account as the final authority.
What this setup does
A normal port-forwarding design asks the internet to reach your Starlink connection first. That is often blocked by provider-side CGNAT, and exposing a port also makes the origin easy to probe.
Cloudflare Tunnel reverses the direction:
cloudflaredruns on a computer inside your Starlink network.- The connector starts an outbound connection to Cloudflare.
- Cloudflare maps a hostname to the local service you choose.
- Cloudflare Access can require an identity check before the application is shown.
- No inbound port-forwarding rule is needed on the Starlink router.
Cloudflare describes this as an outbound-only connection model in its Cloudflare Tunnel overview.
This is not a replacement for every kind of remote access. It is a good fit for a web application. For a private network, NAS shares, printers or several personal devices, a private mesh VPN may be simpler. See How to Use Tailscale With Starlink for Safe Remote Access and Starlink CGNAT and Port Forwarding: Remote Access Options.
Before you start
Have these ready:
- A Cloudflare account with a domain active in the account. Cloudflare's published-application flow requires an active domain.
- An always-on computer, mini PC, Raspberry Pi or server connected to the Starlink network.
- The local URL and port of the application, such as
http://127.0.0.1:8123. - Administrative access to install
cloudflaredon that computer. - A second internet connection, such as a phone with Wi-Fi disabled, for testing from outside the Starlink network.
- A written rollback note showing how to stop
cloudflared, remove the route and disable the Access application.
Do not start with your Starlink router's administration page, a NAS management page or any service that still uses a default password. Pick one low-risk application and confirm that it works locally first.
Keep the local service private
Before creating the tunnel, check the application itself.
- Open the service from a device on the Starlink network.
- Confirm the service is listening on the expected port.
- Change any default password and enable the application's own multifactor authentication if available.
- Update the application and the computer that runs it.
- Prefer a service bound to localhost or a private LAN address rather than one listening on every interface without a reason.
- Record the local URL you will enter in Cloudflare, for example
http://127.0.0.1:8123.
The tunnel is an access path, not an application security upgrade. Cloudflare Access adds an identity layer, but the origin still needs its own patching and account controls.
Create the tunnel
Cloudflare's current dashboard workflow is documented in Create a tunnel.
- Sign in to the Cloudflare dashboard.
- Open Networking and then Tunnels.
- Select Create a tunnel.
- Give it a descriptive name, such as
starlink-home-dashboard. - Choose the operating system used by the always-on computer.
- Copy the installation command shown by Cloudflare and run it on that computer.
- Wait for the connector to appear as connected or healthy in the dashboard.
Treat the installation command or connector token like a password. Do not paste it into a public issue, chat, screenshot or guide. If it is exposed, revoke or rotate it in Cloudflare and reinstall the connector with new credentials.
If your Starlink router or firewall uses restrictive outbound rules, Cloudflare's setup guidance says to verify that the computer can reach Cloudflare on port 7844. This is an outbound check; it does not mean you should create an inbound port-forwarding rule.
Add identity protection before the hostname
A published application can be reachable by anyone who knows its hostname unless an access policy is in place. Cloudflare specifically recommends creating the Access application before adding the tunnel route.
Use the current Cloudflare workflow:
- Open Zero Trust and then Access controls > Applications.
- Select Create new application.
- Choose Self-hosted and private.
- Add the hostname you plan to use, such as
dashboard.example.com. - Create an Allow policy for the people who need access.
- Choose an identity provider, such as email one-time codes or your organisation's single sign-on provider.
- Require multifactor authentication where your identity provider supports it.
- Set a session duration that matches the sensitivity of the application.
- Save the application and confirm that the policy is deny-by-default for everyone else.
Cloudflare's self-hosted application guidance explains this order. Do not skip the policy step because the application is “only” on a private Starlink network; the tunnel deliberately creates an external access path.
Publish one application route
After the tunnel is connected and the Access application exists:
- Return to Networking > Tunnels and select the tunnel.
- Open Routes and choose Add route.
- Select Published application.
- Enter a dedicated subdomain, such as
dashboard.example.com. - Choose the Cloudflare-managed domain.
- Enter the local Service URL, for example
http://127.0.0.1:8123. - Save the route.
Use one hostname for one application until the first test is complete. Do not point the route at the Starlink router's management address, a whole LAN range or a wildcard hostname unless you have a specific design and have tested its access policy.
If the application runs on a different computer, use a stable private address or local DNS name and verify that the computer running cloudflared can open that address. A DHCP reservation can prevent the route from silently breaking after a reboot.
Test from inside and outside
Test each layer separately.
Local test
From a device on the Starlink network:
- Open the local service URL.
- Confirm that the application responds normally.
- Check that the computer running
cloudflaredcan reach the same URL. - Leave the service running while you test the public hostname.
External test
From a phone with Wi-Fi disabled or another connection away from the Starlink site:
- Open the new hostname.
- Confirm that Cloudflare Access asks for the expected sign-in method.
- Sign in with an account that should be allowed.
- Confirm that the application loads and that its normal login still works.
- Test a user who is not in the Allow policy, if you can do so safely.
Failure test
- Stop the local application. The hostname should fail with an origin or gateway error rather than showing an unrelated service.
- Start the application again and confirm recovery.
- Stop
cloudflared. The hostname should no longer reach the origin. - Restart
cloudflaredand confirm the tunnel returns to a healthy state. - Check the Starlink router's port-forwarding list. It should remain empty for this setup.
Do not pull the dish cable or repeatedly power-cycle the Starlink system to test the tunnel. The useful failure cases are the local application and the connector.
Starlink-specific troubleshooting
The tunnel is unhealthy or never connects. Check the computer's date and time, DNS resolution, local firewall and outbound access to Cloudflare. If your router has custom egress rules, verify port 7844. Do not respond by opening an inbound port.
The tunnel is healthy but the hostname shows a 502 or similar origin error. Open the service URL from the computer running cloudflared. Check the application port, local firewall and whether the service is bound only to an address that the connector cannot use.
The hostname opens without an Access sign-in. Stop testing and review the Access application, hostname match and Allow policy. A route created before the Access application can be publicly reachable.
It works on the Starlink LAN but not from mobile data. Confirm that you are really using mobile data, that DNS has finished updating and that the hostname points to the intended tunnel. Review the tunnel and Access event logs.
A remote desktop or SSH service does not work like a web page. Do not force an arbitrary protocol through a public HTTP route. Use Cloudflare's documented protocol and Access method for that service, or use a private mesh VPN. For a small personal network, the latter is often easier to limit and recover.
Changing to bypass mode did not help. That is expected. Bypass mode can remove a router layer inside your home, but it does not by itself remove provider-side CGNAT. See Does Starlink Provide a Static IP? Public IP, CGNAT and Safe Alternatives.
Roll back cleanly
When you no longer need the remote service:
- Remove the published application route from the tunnel.
- Disable or delete the matching Cloudflare Access application.
- Stop and uninstall
cloudflaredfrom the origin computer if the tunnel has no other routes. - Remove the unused DNS record or hostname.
- Revoke exposed connector credentials and remove old tokens.
- Remove any temporary local firewall exception.
- Test the hostname from outside the Starlink network and confirm it no longer reaches the service.
Keep the rollback note with the service's normal recovery instructions. It is especially valuable at a seasonal property or remote site.
Security checklist
- Use a dedicated hostname for each application.
- Put Cloudflare Access in place before publishing the route.
- Require named users, multifactor authentication and short sessions for sensitive tools.
- Keep the application's own login and updates enabled.
- Expose the smallest service surface possible.
- Never publish Starlink router administration or an unprotected NAS interface.
- Do not create inbound Starlink port forwards for this design.
- Treat connector tokens, API keys and screenshots as secrets.
- Keep one local recovery path that does not depend on the tunnel.
- Review Cloudflare Access and tunnel logs after the first test and after any policy change.
Bottom line
Cloudflare Tunnel can make one Starlink-connected web application reachable without port forwarding, even when the connection is behind CGNAT. The safe sequence is: confirm the service works locally, install the connector, create the Access policy, add one hostname route, test from outside the Starlink network and keep a tested rollback path.
Use Cloudflare Tunnel when the job is an authenticated web application. Use a private mesh VPN when the job is access to several personal devices or private network services.