# Ensure iptables Service Is Enabled and Active

- Source: https://support.icompaas.com/support/solutions/articles/62000235376-ensure-iptables-service-is-enabled-and-active
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS Amazon Linux 2 Benchmark v3.0.0](https://support.icompaas.com/support/solutions/62000112696) › [CIS Amazon Linux 2 Benchmarks](https://support.icompaas.com/support/solutions/folders/62000169265)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

**Profile Applicability:** • Level 1

**Description:**  
 The iptables service manages firewall rules on Linux systems. Ensuring that the iptables service is enabled and actively running guarantees that firewall policies are enforced consistently across reboots, protecting the system from unauthorized network traffic.

**Rationale:** Enabling and running the iptables service ensures continuous firewall protection and consistent application of security policies.

**Impact:** Pros:

-   Provides continuous firewall enforcement.  
    
-   Supports stateful firewall operation and network security.  
    

Cons:

-   Requires proper rule configuration to be effective.  
    

**Default Value:** The iptables service may be installed but not enabled or running by default on some systems.

**Pre-requisites:**

-   Root or sudo privileges to manage system services.  
    

**Remediation:**

### **Test Plan:**

**Using Linux command line:**

1\. Check if iptables service is enabled:  

systemctl is-enabled iptables

2\. Check if iptables service is active:  

systemctl is-active iptables

### **Implementation Plan:**

**Using Linux command line:**

1\. Enable the iptables service:  

systemctl enable iptables

2\. Start the iptables service:  

systemctl start iptables

3\. Verify the service status:  

systemctl is-enabled iptables  
systemctl is-active iptables

### **Backout Plan:**

**Using Linux command line:**

1\. Disable the iptables service if necessary:  

systemctl disable iptables

2\. Stop the iptables service:  

systemctl stop iptables

3\. Verify the service status.  
  
**References:**

-   CIS Amazon Linux 2 Benchmark v3.0.0  
    
-   iptables Documentation  
    
-   Systemd Service Management

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
