@@ -36,7 +36,11 @@ If you are looking for `ebtables` python bindings, check out
3636
3737[ ![ Latest Release] ( https://pypip.in/v/python-iptables/badge.png )] ( https://pypi.python.org/pypi/python-iptables )
3838
39- [ ![ Build Status] ( https://travis-ci.org/ldx/python-iptables.png?branch=master )] ( https://travis-ci.org/ldx/python-iptables ) [ ![ Coverage Status] ( https://coveralls.io/repos/ldx/python-iptables/badge.svg?branch=codecoverage )] ( https://coveralls.io/r/ldx/python-iptables?branch=codecoverage ) [ ![ Code Health] ( https://landscape.io/github/ldx/python-iptables/codecoverage/landscape.svg )] ( https://landscape.io/github/ldx/python-iptables/codecoverage )
39+ [ ![ Build Status] ( https://travis-ci.org/ldx/python-iptables.png?branch=master )] ( https://travis-ci.org/ldx/python-iptables )
40+
41+ [ ![ Coverage Status] ( https://coveralls.io/repos/ldx/python-iptables/badge.svg?branch=codecoverage )] ( https://coveralls.io/r/ldx/python-iptables?branch=codecoverage )
42+
43+ [ ![ Code Health] ( https://landscape.io/github/ldx/python-iptables/codecoverage/landscape.svg )] ( https://landscape.io/github/ldx/python-iptables/codecoverage )
4044
4145[ ![ Number of Downloads] ( https://pypip.in/d/python-iptables/badge.png )] ( https://pypi.python.org/pypi/python-iptables )
4246
@@ -77,6 +81,10 @@ installs into `/usr/local/lib`.
7781Now you can run the tests:
7882
7983 % sudo PATH=$PATH python setup.py test
84+ WARNING: this test will manipulate iptables rules.
85+ Don't do this on a production machine.
86+ Would you like to continue? y/n y
87+ [...]
8088
8189The ` PATH=$PATH ` part is necessary after ` sudo ` if you have installed
8290into a ` virtualenv ` , since ` sudo ` will reset your environment to a
@@ -279,17 +287,17 @@ in/out inteface etc is. To print out all rules in the FILTER table:
279287As you see in the code snippet above, rules are organized into chains,
280288and chains are in tables. You have a fixed set of tables; for IPv4:
281289
282- * FILTER,
283- * NAT,
284- * MANGLE and
285- * RAW.
290+ - ` FILTER ` ,
291+ - ` NAT ` ,
292+ - ` MANGLE ` and
293+ - ` RAW ` .
286294
287295For IPv6 the tables are:
288296
289- * FILTER,
290- * MANGLE,
291- * RAW and
292- * SECURITY.
297+ - ` FILTER ` ,
298+ - ` MANGLE ` ,
299+ - ` RAW ` and
300+ - ` SECURITY ` .
293301
294302To access a table:
295303
@@ -538,17 +546,16 @@ or more rules, than commit it:
538546The drawback is that Table is a singleton, and if you disable
539547autocommit, it will be disabled for all instances of that Table.
540548
541-
542549Known Issues
543550============
544551
545552These issues are mainly caused by complex interaction with upstream's
546553Netfilter implementation, and will require quite significant effort to
547554fix. Workarounds are available.
548555
549- * [ Issue # 201 ] ( https://github.com/ldx/python-iptables/issues/201 )
550- -- The ` hashlimit ` match requires explicitly setting ` hashlimit_htable_expire `
551-
552- * [ Issue # 204 ] ( https://github.com/ldx/python-iptables/issues/204 )
553- -- The ` NOTRACK ` target is problematic; use ` CT --notrack ` instead
556+ - The ` hashlimit ` match requires explicitly setting
557+ ` hashlimit_htable_expire ` . See [ Issue
558+ \# 201 ] ( https://github.com/ldx/python-iptables/issues/201 ) .
559+ - The ` NOTRACK ` target is problematic; use ` CT --notrack ` instead. See
560+ [ Issue \# 204 ] ( https://github.com/ldx/python-iptables/issues/204 ) .
554561
0 commit comments