Skip to content

Commit c0d2400

Browse files
committed
The source for docs is the RST files in doc/.
1 parent 47946d1 commit c0d2400

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

doc/examples.rst

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,19 @@ in/out inteface etc is. To print out all rules in the FILTER table::
153153
>>> print "======================="
154154

155155
As you see in the code snippet above, rules are organized into chains, and
156-
chains are in tables. You have a fixed set of tables; for IPv4::
156+
chains are in tables. You have a fixed set of tables; for IPv4:
157157

158-
* FILTER,
159-
* NAT,
160-
* MANGLE and
161-
* RAW.
158+
* ``FILTER``,
159+
* ``NAT``,
160+
* ``MANGLE`` and
161+
* ``RAW``.
162162

163-
For IPv6 the tables are::
163+
For IPv6 the tables are:
164164

165-
* FILTER,
166-
* MANGLE,
167-
* RAW and
168-
* SECURITY.
165+
* ``FILTER``,
166+
* ``MANGLE``,
167+
* ``RAW`` and
168+
* ``SECURITY``.
169169

170170
To access a table::
171171

@@ -409,3 +409,13 @@ commit it::
409409

410410
The drawback is that `Table` is a singleton, and if you disable autocommit, it
411411
will be disabled for all instances of that `Table`.
412+
413+
Known Issues
414+
============
415+
416+
These issues are mainly caused by complex interaction with upstream's
417+
Netfilter implementation, and will require quite significant effort to
418+
fix. Workarounds are available.
419+
420+
- The ``hashlimit`` match requires explicitly setting ``hashlimit_htable_expire``. See `Issue #201 <https://github.com/ldx/python-iptables/issues/201>`_.
421+
- The ``NOTRACK`` target is problematic; use ``CT --notrack`` instead. See `Issue #204 <https://github.com/ldx/python-iptables/issues/204>`_.

doc/intro.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ If you are looking for ``ebtables`` python bindings, check out
4444
:target: https://travis-ci.org/ldx/python-iptables
4545
:alt: Build Status
4646

47+
.. image:: https://coveralls.io/repos/ldx/python-iptables/badge.svg?branch=codecoverage
48+
:target: https://coveralls.io/r/ldx/python-iptables?branch=codecoverage
49+
:alt: Coverage Status
50+
51+
.. image:: https://landscape.io/github/ldx/python-iptables/codecoverage/landscape.svg
52+
:target: https://landscape.io/github/ldx/python-iptables/codecoverage
53+
:alt: Code Health
54+
4755
.. image:: https://pypip.in/d/python-iptables/badge.png
4856
:target: https://pypi.python.org/pypi/python-iptables
4957
:alt: Number of Downloads
@@ -85,7 +93,7 @@ installs into ``/usr/local/lib``.
8593

8694
Now you can run the tests::
8795

88-
% sudo PATH=$PATH ./test.py
96+
% sudo PATH=$PATH python setup.py test
8997
WARNING: this test will manipulate iptables rules.
9098
Don't do this on a production machine.
9199
Would you like to continue? y/n y

0 commit comments

Comments
 (0)