<commit_before>iptables-init-debian
====================

Init script for controlling iptables as a service in a Debian box.
Tested in Debian Squeeze, Wheezy and Sid.

## How to install iptables-init-debian
Download the script and place it in /etc/init.d/ with execution permissions, and use.
I you want this script to be recognized as a service and autostart in debian, you must issue the following command:

```bash
update-rc.d iptables defaults
```

## How to use the script
This script relies on iptables-save and iptables-restore commands, to save and read the rules in /etc/iptables.rules.
Once installed, this file must be created, by saving current rules (save command).

Available command are:

* start: loads /etc/init.d/iptables.rules
* stop: flushes iptables completely, and enforces ACCEPT policy
* restart: convenience start & stop command
* save: saves the current rules to /etc/init.d/iptables.rules

Example:

```bash
service iptables start<commit_msg>Fixed iptables.rules typo in README<commit_after>iptables-init-debian
====================

Init script for controlling iptables as a service in a Debian box.
Tested in Debian Squeeze, Wheezy and Sid.

## How to install iptables-init-debian
Download the script and place it in /etc/init.d/ with execution permissions, and use.
I you want this script to be recognized as a service and autostart in debian, you must issue the following command:

```bash
update-rc.d iptables defaults
```

## How to use the script
This script relies on iptables-save and iptables-restore commands, to save and read the rules in /etc/iptables.rules.
Once installed, this file must be created, by saving current rules (save command).

Available command are:

* start: loads /etc/iptables.rules
* stop: flushes iptables completely, and enforces ACCEPT policy
* restart: convenience start & stop command
* save: saves the current rules to /etc/iptables.rules

Example:

```bash
service iptables start
{'fraction_non_alphanumeric': 0.08787255909558069, 'fraction_numerical': 0.0, 'mean_word_length': 4.594827586206897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3414833', 'n_tokens_mistral': 563, 'n_tokens_neox': 538, 'n_words': 257}