Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

NOTE: CentOS Enterprise Linux is built from the Red Hat Enterprise Linux source code. Other than logo and name changes CentOS Enterprise Linux is compatible with the equivalent Red Hat version. This document applies equally to both Red Hat and CentOS Enterprise Linux.

19.2. Activating the iptables Service

The firewall rules are only active if the iptables service is running. To manually start the service, use the command:

       /sbin/service iptables restart
      

To ensure that it is started when the system is booted, issue the command:

       /sbin/chkconfig --level 345 iptables on
      

The ipchains service is not included in Red Hat Enterprise Linux. However, if ipchains is installed (for example, an upgrade was performed and the system had ipchains previously installed), the ipchains service should not be activated along with the iptables service. To make sure the ipchains service is disabled and configured not to start at boot time, execute the following two commands:

       /sbin/service ipchains stop /sbin/chkconfig
          --level 345 ipchains off
      

The Services Configuration Tool can be used to enable or disable the iptables and ipchains services.

 
 
  Published under the terms of the GNU General Public License Design by Interspire