Install and configure firewall on CentOS

First one have to install

yum install system-config-securitylevel

Now start this little tool

/usr/bin/system-config-securitylevel

and adapt settings as needed.

The configuration is saved in

/etc/sysconfig/iptables-config

and

/etc/sysconfig/iptables-config

To test new rules restart the service

service iptables restart ; sleep 20 ; service iptables stop

Take a look, we wait for 20 seconds and stop the service automatically.

Just in case one of the rule fails and system access is blocked.

Did it work for you. Just drop a comment.

Comments

Popular Posts