bugzilla-daemon at netfilter.org
2014-Feb-20 20:20 UTC
[Bug 905] New: Please support passing a filename to iptables-save
https://bugzilla.netfilter.org/show_bug.cgi?id=905
Summary: Please support passing a filename to iptables-save
Product: iptables
Version: unspecified
Platform: x86_64
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: iptables-save
AssignedTo: netfilter-buglog at lists.netfilter.org
ReportedBy: mgorny at gentoo.org
Estimated Hours: 0.0
I'm working on systemd integration in Gentoo. One of the issues I've hit
while
integrating iptables support is that 'iptables-save' does not support
specifying a file to output to, and instead outputs to stdout only. Since
systemd does not support cleanly redirecting stdout to any file, calling it
requires quite ugly shell indirection that looks like:
/bin/sh -c 'iptables-save > ...'
It would be really helpful to us if iptables-save supported specifying the
output file on argv, much like iptables-restore does.
I can provide a patch if you prefer. Just please let me know if I should pass
the output file as a parameter to the functions, as a global variable or use
dup2() on stdout.
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
bugzilla-daemon at netfilter.org
2017-May-08 09:28 UTC
[Bug 905] Please support passing a filename to iptables-save
https://bugzilla.netfilter.org/show_bug.cgi?id=905
Oliver Ford <ojford at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ojford at gmail.com
Assignee|netfilter-buglog at lists.netf |ojford at gmail.com
|ilter.org |
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20170508/c8eb2f3e/attachment.html>
bugzilla-daemon at netfilter.org
2017-May-08 09:28 UTC
[Bug 905] Please support passing a filename to iptables-save
https://bugzilla.netfilter.org/show_bug.cgi?id=905
Oliver Ford <ojford at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20170508/424e4cec/attachment.html>
bugzilla-daemon at netfilter.org
2017-May-30 08:16 UTC
[Bug 905] Please support passing a filename to iptables-save
https://bugzilla.netfilter.org/show_bug.cgi?id=905
Oliver Ford <ojford at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #1 from Oliver Ford <ojford at gmail.com> ---
Feature added in commit 8d994bcf6be09cd0a13d6f22c6e01e98fb130415.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20170530/91ed6d4e/attachment.html>
Reasonably Related Threads
- [Bug 1131] New: iptables-restore crashes on some fuzzed input
- [Bug 1085] New: No warning for weird interface characters if interface contains wildcard character
- [Bug 1152] New: iptables-xml crashed on -D rules
- [Bug 961] New: Can not remove rules with the default --mask parameter (-m recent)
- [Bug 1094] New: Inverted labels with xml option