-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with iptables v1.4.7 #25
Comments
I believe you mean iptables v1.4.7 It appears that afinfo is defined as static in 1.4.7 and earlier so the state switching that LDX implemented recently is unhappy. |
Indeed. The long term solution is to load and keep track of extensions ourselves without libxtables - should not be too difficult, actually we already use a hack to load a module manually if it has been loaded for another protocol family before. The only gotcha I see here is that extensions use parser routines from libxtables - but if we load all available extensions first to register with us (provide the hooks |
So as a workaround, would it be possible for it to try to access afinfo and then, if it fails, just load in the correct value when the context switches? If I recall correctly, there's a setter function but no getter. I really rather not have to use an older version of your library to get my stuff to work :( |
I'll look into this as soon as I have some free time. |
@Caligatio thanks for the idea - we just use the setter function now, and the extension name prefixes are hardcoded for the two supported protocols (IPv4, IPv6). Can you guys check that the current HEAD has fixed this? Works here with iptables 1.4.12. |
Closing as there has been no feedback for >month. Please feel free to reopen this if the problem still exists. |
I experienced this same problem just today: Running version: And: iptables v1.4.10 Any suggestions? I really didn't want to recompile iptables for this library to work. :/ |
Do you use the latest version of python-iptables from git? |
I also just experienced this issue this issue: Used 0.2.0 version of the module I'll give it a shot with the git version as well. |
Version from git works okay, though #45 causes issues on CentOS. |
Add CI test runner.
Hi,
We're running
iptables v1.4.7
which is the version packaged with CentOS (and possibly Debian) but running into errors. We've tried upgrading tov1.4.12
from source and it works, so the problem definitely with thelibxtables
version. Here's the trace:Thanks!
The text was updated successfully, but these errors were encountered: