I’m trying to setup Virtualmin GPL on a CentOS 5.5 server and I can complete the installation fine.
Once it’s installed I add the extra IPs assigned to the server and setup the DNS. Everything works fine for a while then randomly I will lose all connection with the server and it appears as if a firewall has blocked all ports.
When this happened the first time I decided to do a fresh install after reinstalling CentOS thinking that maybe I’d misconfigured something however the problem happened again a second time.
I’m now wondering if I’m messing something up during the configuration which is causing this problem however I can’t think what it may be. I make no changes to the firewall at any point.
Is there a default firewall configuration which comes with Virtualmin? Am I missing an important step somewhere?
Basically I do the following:
Fresh CentOS install.
wget install.sh and run the installation.
Login to Virtualmin and add the 2 extra IPs as virtual interfaces on eth0
Everything runs fine for maybe an hour or so then all of a sudden I’m disconnected and can’t connect to the server through SSH or Virtualmin.
The IPs are added correctly and once I’ve created a virtual server through virtualmin I can get everything to resolve to the server.
Anything I should look for that can help me solve this? Would using Ubuntu or another distribution have the same problem?
What you’re seeing isn’t a normal problem… that almost sounds like a network issue of some sort.
If a network interface is up and running now, it should still be running after a few hours… if it isn’t, something is quite awry!
Virtualmin doesn’t setup any sort of defauly firewall.
In diagnosing your issue, you may want to run “dmesg”, and look towards the end of the output to see if there’s any network related errors that show up.
Also, are any of the IP’s on your server pingable when this problem is happening, or is it completely unavailable?
Ok it’s back online now after a remote reboot, but I still don’t know what the issue is. I am pretty sure it’s related to Virtualmin as before installing it, it ran for almost a day whilst running tests on it.
Is there any particular logs I should look at that might help?
EDIT- thanks for your reply Eric, I didn’t see it whilst posting this one. I’m leaving it up and monitoring it now to see if anything happens. The iptables do indeed show that there are no rules currently.
If the issue happens again I will check with the datacenter to see if there are any network issues.
Yeah, I don’t see any errors in that dmesg output.
So, asking your provider if they know of any issues might be a good next step (in addition to trying to ping your various IP addresses next time it’s not working).
I’ve found the source of the problem but not sure why it’s happening just yet. When I assign the extra IPs with the information the Datacenter provide me it all goes down after restarting network and the IPs disappear from the system.
It sounds like a problem their end so I’ll get in touch with them.
The problem has been solved. It was my fault I was mixing up some of the IP values when entering them. That’ll teach me to work all night on something… Thanks for your help.