restarting iptables killed all my services
Posted: 2017/09/22 11:11:36
Hi, I am running CentOS 6.6 server with DirectAdmin and I was trying to open 3306 to be able to reach mysql database from outside.
So this is what happened:
- made a copy of /etc/sysconfig/iptables
- added a line to existing /etc/sysconfig/iptables
- /etc/init.d/iptables restart
and this didnt help, so I have done some research and
- run system-config-firewall-tui and decided that this is not what I wanted, but I am pretty sure that I have cancelled all chages
at this moment I have realized that all services are down, the server is not responding at any port
so I have replaces /etc/sysconfig/iptables with the original one and /etc/init.d/iptables restart
nothing hepls - this is what I get when I start iptables:
Opening /proc/modules: No such file or directory
iptables: Setting chains to policy ACCEPT: raw nat mangle f[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
[ OK ]
iptables: Applying firewall rules: [ OK ]
the server only runs when i stop iptables
What I have done wrong?
How can I do to fix this?
So this is what happened:
- made a copy of /etc/sysconfig/iptables
- added a line to existing /etc/sysconfig/iptables
- /etc/init.d/iptables restart
and this didnt help, so I have done some research and
- run system-config-firewall-tui and decided that this is not what I wanted, but I am pretty sure that I have cancelled all chages
at this moment I have realized that all services are down, the server is not responding at any port
so I have replaces /etc/sysconfig/iptables with the original one and /etc/init.d/iptables restart
nothing hepls - this is what I get when I start iptables:
Opening /proc/modules: No such file or directory
iptables: Setting chains to policy ACCEPT: raw nat mangle f[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
[ OK ]
iptables: Applying firewall rules: [ OK ]
the server only runs when i stop iptables
What I have done wrong?
How can I do to fix this?