Hi there,
I'm trying to setup an application on Zero Trust Access. I created a tunnel, installed the connector on my server, and added a public hostname. That works fine and the status is Healthy. I then added an application in ZT Access using the same hostname. I added two policies: one allow for emails with a particular domain and a bypass policy for my local network (192.168.1.0/24). I left the last settings page with the defaults and I only have a one-time PIN idP. I enabled Protect with Access on the public hostname in the Cloudflare Tunnel and added a config.yaml file on the server that looks something like the following, then restarted cloudflared (I'm not sure if this is even right!):
tunnel: my-tunnel-id
originRequest:
connectTimeout: 30s
access:
required: true
teamName: my-team-name
audTag:
- aud1 my-application-aud-tag
ingress:
- hostname: myapp.example.com
service: http://localhost
- service: http_status:404
When I connect to the domain from another network, I get the App Launcher login page. I can login OK and be taken to the web app. When I connect from the local network using the public hostname (either from the web app server itself or another PC), I also get the login page... I thought the bypass policy would circumvent that and take me directly to the web application itself. If I delete the allow policy, I get a Cloudflare Access HTTP error 403 that shows my public IP. If I add the public IP to the bypass policy, I get a blank HTTP error 403 page. I also tried changing the bypass policy to Service Auth but got a similar result.
Am I missing something?
Thanks!