Repository navigation
Conversation
Fixed Target so that it accepts a table parameter. Fixed native exceptions in new x6 support code.
|
When attempting to build this patch in ubuntu 12.04 I get an error: ../iptables/include/xtables.h.in: No such file or directory. Just need to change line 6 of wrapper.c to |
|
I'm also getting an error when attempting to use this with SNAT. Ubuntu 12.04 64-bit: Kernel 3.2.0-27-generic
Backtrace includes: |
|
Yeah the implementation seems to be really buggy for me as well. I ended up just starting an iptables process with the arguments I wanted in order to add rules with extended options. There's a lot of data fields which seem to be initialized in different places for the extension mechanism, and it's not really clear from the iptables source code where everything happens, so it's a bit hard to make it work. |
|
Please take a look at HEAD and http://nilvec.com/python-iptables-update/ - if you experience problems please open a new ticket. |
Since the last official version of this library was worked on, a lot of the iptables extensions have moved to use the extension system that supports IPv6 and dropped support for the original 'extra_opts' method. This pull request adds support for setting extensions in the new system so that features like MARK and udp port selection work again.