Arthur Fiorette
Explore posts from serversCDCloudflare Developers
•Created by Arthur Fiorette on 6/27/2023 in #general-help
Include public domain to service behind Zero Trust when connected to WARP client.
Context: I have a tunnel calledIf I use the commandzt-gate
which has a public hostname ofssh.mydomain.com -> ssh://10.0.0.30:22
and a private hostname with10.0.0.30/32
CIDR. I created anSSH
self-hosted application that I can access SSH normally through SSH browser rendering. In my WARP client settings, I've selectedGateway with WARP
and in my split tunnels configuration isInclude IPs and domains
with10.0.0.30/32
CIDR andssh.mydomain.com
. I'm asking for a SSH service but keep in mind that I have other non web/http services in the same way.
cloudflared access ssh --hostname ssh.mydomain.com --url localhost:1234
and login normally, I can SSH into localhost:1234
normally.
If I enable Zero Trust in my Windows WARP Client I can normally SSH into the same server using 10.0.0.30:22
address.
But, as I've configured a public hostname ssh.mydomain.com
I still cannot do any connections using the domain, only from IP addresses. There's a doc page on how to do SSH (not all use cases for me, just an non-web example) (https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/use-cases/ssh/#connect-to-ssh-server-with-warp-to-tunnel) which only shows examples connecting using IP addresses.
I thought that by using Include IPs and domains
and including my desired domain, I could access these services using my public hostname, is it possible? If not, how can I create domains for non-http services I only want to access when connected to my warp client/cloudflared cli?
This CURL shows that it is not getting redirected to my local ip. At least I thought it should after my Include IPs and domains
configuration.
Sorry If I blurred too much information, just trying to not leak sensitive information 🙂25 replies