How do I Load / Start RHEL / CentOS / Fedora Linux Iptables Firewall on Computer Boot?

Posted on in Categories , , , , , , last updated January 29, 2008

Q. I’d like to start my Iptables based firewall when my computer comes online so that it get protected from the Internet? I’m using CentOS Linux Server version 4.x.

A. CentOS / RHEL / Fedora Linux has service located at /etc/init.d/iptables to start firewall on boot. All you have to do is type the following command to turn on firewall on boot:
# chkconfig iptables on

Your firewall rules are saved at /etc/sysconfig/iptables files.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment