---
title: Ensure iptables Rules are Saved
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Datadog Security > OOTB Rules > Ensure iptables Rules are Saved
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Ensure iptables Rules are Saved
 
## Description{% #description %}

The `iptables` service loads `/etc/sysconfig/iptables` at boot. That file must hold the complete rule set of the running `filter` table, as `iptables-save` writes it. After reviewing the running rules, save them:

```
# service iptables save
```

## Rationale{% #rationale %}

Rules that are not saved are lost when the system reboots, and the firewall comes up with whatever the file holds.

## Warning{% #warning %}

The check compares the rules as `iptables-save` writes them, so a file edited by hand fails until `service iptables save` rewrites it.
