Proxy to Specific Port of Public IP Address?

What is the name of the domain?

.com

What is the issue you’re encountering

Hypothetical

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

This is not exactly an issue, but rather a feature question. I am using Cloudflare to proxy our web traffic for security and DDOS protection. My question is, can i have the proxy point to a specific port of our public ip address? so a single public ip adress would have multiple websites behind it, and when Cloudflare would hit a certain port, the NAT router would point it to a certain web site behind it. this would not be apparent to the user. i know the question has been asked before, but i haven’t seen any detailed explanations on the matter.

Yes, you can do that with Origin Rules.

Though you can also run multiple websites on the same port without a problem.

hey laudian, thanks for dropping by.
is this completely hidden from the user? so that, if i do a let’s encrypt request for example, and it would shoot for the entered domain, cloudflare would still get the traffic there on the correct changed port?

lol. really? i thought that was supposed to be super difficult? you’re not talking about reverse proxy or something of the like, are you?

Yes.

It depends on the kind of your service, but using Nginx or Apache as a reverse proxy is a very common setup and not difficult at all.

ok. i’m not versed on Nginx yet :slight_smile: so i will look into having cloudflare do it for me for now.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.