Bug 993428
Summary: | [RFE] Replace iptables system calls with a Python library: python-iptables. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | DaveG <daveg> |
Component: | firewalld | Assignee: | Thomas Woerner <twoerner> |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | jpopelka, twoerner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-08-23 12:33:46 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
DaveG
2013-08-05 22:34:16 UTC
Sounds nice to me at first glance, however ... and now I'll cite from [1]: " The recommended solution given by iptables developers is to spawn the iptables command with execl() or system(). It’s explicitly stated that there’s no stable/public API to do that [2] " Given that python-iptables is just a libiptc/libxtables bindings, the situation is similar. We've been also planning a re-write to C for a long time so I'm not sure we want to experiment with another library meanwhile. [1] http://www.bani.com.br/lang/en/2012/05/programmatically-managing-iptables-rules-in-c-iptc/ [2] http://www.netfilter.org/documentation/FAQ/netfilter-faq-4.html#ss4.5 Thanks for the prompt reply. Just thought I'd float the idea. Happy to close the issue. Good luck with the C rewrite! --DaveG. Thanks for the suggestion, but I'm sure we won't go this way so closing right now. |