Skip Menu |

This queue is for tickets about the App-Iptables2Dot CPAN distribution.

Report information
The Basics
Id: 120616
Status: resolved
Priority: 0/
Queue: App-Iptables2Dot

People
Owner: Nobody in particular
Requestors: bdamian [...] gmx.de
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: v0.2.3



Subject: Unknown argument in rule
Date: Tue, 14 Mar 2017 10:48:59 +0100
To: bug-App-Iptables2Dot [...] rt.cpan.org
From: bdamian [...] gmx.de
Hallo Herr Weidner,
 
auch diese Version kommt mit dem Output von ChaosCalmer wohl nicht zurecht:
 
$ cat iptables-save.out | iptables2dot -edgelabel -table filter Unknown option: comment unknown argument in rule: -m comment --comment "user chain for postrouting" -j postrouting_rule at /usr/lib/perl5/site_perl/5.20.1/App/Iptables2Dot.pm line 272, <STDIN> line 25.
 
iptables-save.out[25]:
-A delegate_postrouting -m comment --comment "user chain for postrouting" -j postrouting_rule
 
Schöne Grüße
B. Damian
Hallo Herr Damian, die Optionen, die das Modul nicht kennt, füge ich demnächst hinzu. In der Zwischenzeit können Sie als Workaround die Option '--add-optdef comment=s' zum Aufruf hinzufügen. Die Handbuchseite sagt dazu folgendes: DIAGNOSTICS "unknown argument in rule: %s" The program will die with this message showing the rule for iptables-save that contained an unknown option. Since the rules are parsed by "GetOptionsFromString()" from module Getopt::Long, you may workaround this by adding the unknown option to the array @optdefs at the top of Apt/Iptables2Dot.pm. After that please file a bug at <https://rt.cpan.org/> or send me a notice at mamawe@cpan.org to have it fixed in one of the next releases of this distribution. Alternatively you may want to use the program like this iptables2dot --add-optdef unknown-opt=s ... if the program dies with message unknown argument in rule: --unknown-opt arg ... and you don't want to touch the library file Apt/Iptables2Dot.pm.
Subject: Re: [rt.cpan.org #120616] Unknown argument in rule
Date: Wed, 15 Mar 2017 08:00:56 +0100
To: bug-app-iptables2dot [...] rt.cpan.org
From: bdamian [...] gmx.de
Guten Morgen, Herr Weidner,
 
danke für den Hinweis! RTFM, schätze ich :-)
Nach Angabe des Parameters taucht eine weitere unbekannte Option auf:
 
Unknown option: ctstate unknown argument in rule: -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT at /usr/lib/perl5/site_perl/5.20.1/App/Iptables2Dot.pm line 272, <STDIN> line 108
 
Mit einem weiteren Argument "--add-optdef" funktioniert es jetzt aber!
 
Vielen Dank und schöne Grüße
B. Damian
 
> Mathias Weidner via RT <bug-App-Iptables2Dot@rt.cpan.org> hat am 14. März 2017 um 21:40 geschrieben: > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=120616 > > > Hallo Herr Damian, > > die Optionen, die das Modul nicht kennt, füge ich demnächst hinzu. > > In der Zwischenzeit können Sie als Workaround die Option '--add-optdef comment=s' > zum Aufruf hinzufügen. > > Die Handbuchseite sagt dazu folgendes: > > DIAGNOSTICS >     "unknown argument in rule: %s" >         The program will die with this message showing the rule for >         iptables-save that contained an unknown option. > >         Since the rules are parsed by "GetOptionsFromString()" from module >         Getopt::Long, you may workaround this by adding the unknown option >         to the array @optdefs at the top of Apt/Iptables2Dot.pm. After that >         please file a bug at <https://rt.cpan.org/&gt; or send me a notice at >         mamawe@cpan.org to have it fixed in one of the next releases of this >         distribution. > >         Alternatively you may want to use the program like this > >          iptables2dot --add-optdef unknown-opt=s ... > >         if the program dies with message unknown argument in rule: >         --unknown-opt arg ... and you don't want to touch the library file >         Apt/Iptables2Dot.pm.