I’m new to virtualmin and facing a problem that need your help.
I’m using CentOS 6.5 and just installed virtualmin for default without any custom configuration.
In an accident, my Linux Firewall on iptables had been empty and now my server are accepting every request. I searched for iptables restore to default but these is no lucky.
I known that re-install CentOS and fresh new Virtualmin is a good option but that is not the best solution. Could you please help to provide me the default Linux Firewall iptables that I can apply for my server?
Thank you in advance
I have similar problem. I installed Virtualmin on Centos 6, but I don’t see any iptables rules on Webmin - Networking - Linux Firewall page. I restarted Iptables but that page still empty. In the header it says: ‘Rules file /etc/sysconfig/iptables’ and when I watch this file then there are many rules and it’s starts with ‘# Generated by webmin’. I’m afraid that Webmin rewrite default Centos 6 /etc/sysconfig/iptables file and broke something and I can’t find what must be in that file by default. Before that I had Virtualmin on Centos 5 and there everything was ok. My question is: how to fix Linux Firewall page in Webmin and where I can find default file /etc/sysconfig/iptables for Centos 6? Thanks.
UPD: I found that if I set ‘Directly edit firewall rules instead of save file?’ to Yes then I can see firewall rules. But what’s wrong with default settings?
UPD2: Ok, I got it, Webmin generated wrong /etc/sysconfig/iptables file. It’s filter section started like this:
# Generated by webmin
*filter
-A INPUT -p udp -m udp --dport ftp-data -j ACCEPT
-A INPUT -p udp -m udp --dport ftp -j ACCEPT
…
Ie default rules missed. If you got the same problem, you can start iptables, save output of ‘iptables-save’ command, put it in /etc/sysconfig/iptables and now you can see all rules on Linux Firewall page in Webmin.