I've just installed Webmin on CentOS 7. Why can't I connect to it?
I have installed and started webmin on my Linode with default port 10000. I've ensured that it is running, but when I try to connect to Webmin with my browser using my IP address, it refused my connection. What can I do to allow me to connect to Webmin?
If you are running CentOS 7 and are having trouble connecting to Webmin, it is very possible that you are running into a firewall issue. CentOS has firewalld enabled by default and drops connections over port 10000. To see if firewalld is running use the following command:
systemctl status firewalld
If you see that firewalld is enabled, you can add a rule to
iptables with it to allow traffic over port 10000 for Webmin. Use the following commands to add your new rule and then reload firewalld to allow it to take effect:
firewall-cmd --zone=public --add-port=10000/tcp --permanent firewall-cmd --reload
After you've added a rule to allow connections over port 10000, you should be all set to connect using your browser. Be sure to connect using https:
For more information, Webmin's documentation reference adding this rule using Firewalld at the bottom of their installation page. They also show the specific
iptables rule on their Configuring Your Firewall page. We have guides on both FirewallD and iptables if you'd like to learn more on either of these two topics.