Dynamically save and restore iptables rules for some chain(s)
Project description
Dynamically save and restore iptables rules for some chain(s)
Description
When there’s an iptables service restart, all of the docker rules gets wiped out. This script was written to dynamically save and restore iptables rules pertaining to some chain(s) and make them persist.
Dependencies
iptables (Must have the commands iptables-save and iptables-restore commands available)
Installation
pip install iptables-dynamic
Usage
iptables-dynamic --chains DOCKER SOME-OTHER-CHAIN --save
which would save them at /etc/iptables/rules.v4
One can restore those rules by
iptables-dynamic --restore
One may also use ip6tables-dynamic for IPv6.
Credits
The copyright owner is Regents of the University of California and this script is published under a BSD 3-Clause license.
Developed at UCSB LSIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iptables-dynamic-0.2.1.tar.gz.
File metadata
- Download URL: iptables-dynamic-0.2.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
960d7b86c309426d90c509fd869841742c433b044393f1769170372125917205
|
|
| MD5 |
8bfea12c33838bc79e5d6d3853a3cd10
|
|
| BLAKE2b-256 |
695473f2843eb66fbb543783ddf6aa47d9a4419409cba71b35d7515cba20e548
|
File details
Details for the file iptables_dynamic-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: iptables_dynamic-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
616c091061b3f18394e4c7ee761f3455e3789f22914eac6ad09fc6fa1bbd8ebb
|
|
| MD5 |
f7e4f2b6579df7ce5eab5a0779e0f274
|
|
| BLAKE2b-256 |
5d05b77d3dafdb47dbf36a1866dfdc72fed787af59e06ffbfca952892cb9f869
|