0
votes

I installed webmin on my ec2 instances. It worked fine because I tested with curl http://localhost:10000 and got the webmin login HTML.

The problem is I cannot access http://elastic-ip:10000 from outside. Even from another ec2 instances. The error is: curl: (7) Failed to connect to x.x.x.x port 10000: Connection refused

I added port 10000 to iptables, I also create custom tcp rule for my security group on aws management console (the correct assigned security group). I even tried to stop iptables service but I cannot able to access webmin from outside. With curl it's above error, with Firefox and Chrome it just told me it cannot connect to that address.

I tried create a new security group, assign to the instance again, reboot the instance but it didnt work as well.

I have no idea why it doesn't work for me. I think this should be an easy task but I am not sure why it's too complicated.

Updated: netstat -an command gives this information: tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN So I think it's listening on all IPs

Please help me! Thank you very much!

Solved: The problem is that I installed webmin on wrong server and tried it on the server with-out webmin installed. That's really stupid mistake. So if you have similar problem, just need to follow Mark's comment: Add the rule to security group, open firewall on server for port 10000 (or disable firewal). That'll work!

3

3 Answers

1
votes

These two steps worked for me:

Step 1 edit /etc/webmin/miniserv.conf

Step 2 set ssl to 0 in miniserv.conf

It worked for me as I do not have SSL

1
votes

I had the same issue.

I followed this article to install the Webmin -- https://blog.programster.org/ubuntu-16-04-install-webmin

And then From the security group, I open port 10000 and under the Type choose Custom TCP Rule.

enter image description here

0
votes

You have to have a security group assigned to the instance, and open port 10000 in the security group. You should be able to change/add a security group if your instance is in an VPC. If it is in EC2 classic you will have to launch a new instance.