I’m trying to set up NPM with my domain name being handled with Cloudflare and I keep getting a Error 522 code.

Cloudflare’s webpage states:

  • (Most common cause)  Cloudflare IP addresses are rate limited or blocked in .htaccess, iptables, or firewalls. Confirm your hosting provider allows Cloudflare IP addresses. I’m struggling to work out how to do this properly on my debian.
  • An overloaded or offline origin web server drops incoming requests. This is not the case, I have sufficient resources and it’s not offline.
  • Keepalives are disabled at the origin web server. I don’t really understand what to look for this?
  • The origin IP address in your Cloudflare DNS app does not match the IP address currently provisioned to your origin web server by your hosting provider. I have an A name record for mydomain.com pointing to my.external.IP.address and CNAME records for my services pointing to @.
  • Packets were dropped at your origin web server.The only thing I can come up with is that I need to whitelist cloudflare’s IP addresses. If I ping the site npm.mydomain.com it comes back successful so I don’t think this is it.

If you know what I’m missing or you’d like me to provide further information or clarification, I’m all ears.

You are viewing a single thread.
View all comments
1 point

Problem…solved?

ISP Uses CGNAT so I have set up a tunnel and all is well in the world.

permalink
report
reply

Self-Hosted Main

!main@selfhosted.forum

Create post

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.

For Example

  • Service: Dropbox - Alternative: Nextcloud
  • Service: Google Reader - Alternative: Tiny Tiny RSS
  • Service: Blogger - Alternative: WordPress

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

Community stats

  • 17

    Monthly active users

  • 1.8K

    Posts

  • 11K

    Comments

Community moderators