21
submitted 1 year ago* (last edited 1 year ago) by chandz05@lemmy.world to c/selfhosted@lemmy.world

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@Lemmylefty@lemmy.world and @voidx@futurology.today !!

you are viewing a single comment's thread
view the rest of the comments
[-] lilShalom@lemmy.basedcount.com 2 points 1 year ago

When it doesnt work, check the log files for the firewall block message.

[-] chandz05@lemmy.world 2 points 1 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.

[-] lilShalom@lemmy.basedcount.com 1 points 1 year ago

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

this post was submitted on 05 Sep 2023
21 points (88.9% liked)

Selfhosted

39257 readers
223 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS