Hello, I really need some help accessing my app via cloudfared tunnel. The app is installed on an AWS EC2 Debian machine. I can successfully hit the page using http://[EC2IP]:[port] configured via inbound security rules. I can also successfully setup the cloudflare tunnel and access it via that tunnel and my personal domain and CNAME, but ONLY if I expose all TCP ports for 0.0.0.0/0. Otherwise Cloudflare cannot access the application. I have tried adding the public cloudflare ipv4 ranges (https://www.cloudflare.com/ips/) to the inbound rules, but that does not work either. Can anyone help with this?

EDIT: got it to work! Thank you so much @lilshalom@[email protected] and @[email protected] !!

  • chandz05OP
    link
    English
    21 year ago

    The EC2 firewall? I was looking at the systemctl logs for cloudflare, so dunno why I didn’t even think of firewall logs. I should indeed have done that. Let me check that and post an update.

    • @[email protected]
      link
      fedilink
      English
      11 year ago

      If nothing shows in the logs, run a packet capture on the ec2 instance and test cloudflare again.