cloudflare / cloudflare/cloudflared

Need help creating a tunnel w/ specific port

Open
#433 18 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm diving into Cloudflare tunnels, and trying to get my Home Assistant instance to tunnel correctly, but having problems.

I use a non-standard port for the Home Assistant (HA) server, `9120`, and all my things are already connecting to that port, so I'd rather not have to change it.

I've successfully managed to create a tunnel using the following config:

```
tunnel: HA
credentials-file: /home/js/.cloudflared/[the-numbers].json

ingress:
- hostname: subdomain.domain.com
service: https://subdomain.domain.com:9120
- service: http_status:404
```

This _partially works_. I can connect to https://subdomain.domain.com:443 (and http on 80), plus various other ports as outlined in [this doc](https://support.cloudflare.com/hc/en-us/articles/200169156-Identifying-network-ports-compatible-with-Cloudflare-s-proxy). But I cannot connect to https://subdomain.domain.com:9120, which is the ultimate goal here.

Is this possible? How? :) Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.