Webmin [Virtualmin] port number with Cloudflare

Hello, i have a Domain like sub.domain.com, and i want to access with this domain to virtualmin, so for now a apache server is running on Port 80 but Problem is how can i change port from virtualmin to 80 to access? or 443 for ssl?

Hello,

To do this, you’d need to either stop the webserver or use a private IP for a domain so Webmin can use port 443.

The port and IP address for Webmin can be configured at Webmin ⇾ Webmin Configuration: IP Access Control page.

Problem is on Port 80 and 443 runs Apache2, when i Stop Apache2 then the Virtual Servers of Virtualmin dont works anymore with Wordpress etc. what can we do?

Acquire an additional private (dedicated) IP address. Ensure that Apache is not configured to listen on this new (additional) IP, but Webmin is — you can achieve this by referring to the specified page to modify the IP address and port settings for Webmin.

Does changing port cause an issue as cloudflare does not allow to open virtualmin, usermin and webmin at port 10000, 20000
So when i change the port does it cause any kind of issue?

1 Like

I have same problem

You can make Webmin listen on port 8443 and it will work with Cloudflare in proxy mode!

How to rewrite the firwall rules for the port 8443 as the rule is written only for the port 10000

Considering that your system is using FirewallD, you don’t need to do anything. If you change the port using Webmin ⇾ Webmin Configuration: Ports and Addresses page, then the new port in firewall will be automatically opened.

But you can always make changes manually in Webmin / Networking ⇾ FirewallD page.

What should I do at Network → FirewallD, Just allow the single port 8443?

And for port 10000-10100 should i delete it?

You can just add a single port 8443. The range won’t work with Cloudlfare in proxy mode.

Yes i know that, And for the usermin it opens at port 20000 does it supported by cloudflare or i can’t acess the usermin?

You can use Usermin on any other available port.

Network ports compatible with Cloudflare’s proxy

By default, Cloudflare proxies traffic destined for the HTTPS ports listed below:

  • 443
  • 2053
  • 2083
  • 2087
  • 2096
  • 8443

Should I change the highlighted port to 443 to access Usermin?

We have already discussed it in the posts above. Please pay attention.

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