Metadata-Version: 2.0
Name: iptables-dynamic
Version: 0.2.0
Summary: Dynamically save and restore iptables rules for some chain(s)
Home-page: https://github.com/aalireza/iptables-dynamic
Author: Alireza Rafiei (aalireza)
Author-email: mail@rafiei.net
License: BSD 3-clause
Download-URL: https://github.com/aalireza/iptables-dynamic/tarball/0.2.0
Keywords: iptables,save chain,restore chain
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: System :: Networking :: Firewalls
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5

iptables-dynamic
================
Dynamically save and restore iptables rules for some chain(s)

- `Description <#description>`_
- `Dependencies <#dependencies>`_
- `Installation <#installation>`_
- `Usage <#usage>`_
- `Credits <#credits>`_

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 <http://regents.universityofcalifornia.edu/>`_ and this script is published under a `BSD 3-Clause <https://github.com/aalireza/iptables-dynamic/blob/master/LICENSE>`_ license. 

Developed at `UCSB LSIT <http://www.lsit.ucsb.edu/>`_


