question for (existing?) feature
Hi.
Please answer to the list and to me - thnx.
Is there a possibility to provice a description to rule - which will be printed out with "iptables -L" or "iptables -L -v"???
The idea of such a (self-choosen) description would be that you have speaking explanations for the several rules - so that it is MUCH easier to keep in mind the purpose of each line which is printed with the -L flag.
Cause me for myself builds up a firewall rule by rule (understanding them and what I am doing (hopefully) too). And I have lots of comments in the file building the firewall. But nevertheless I would like to recheck everything with the -L flag and at this point (short) names for rules would be very nice to have.
So my questions all together:
Is there a possibility like this already?
What are you thinking about it?
Greetings,
Knuth.
Quoted 2 lines · K. Posern
Is there a possibility to provice a description to rule - which will be printe d out with "iptables -L" or "iptables -L -v"???
Yes, just implement a comment field.
Quoted 9 lines
The idea of such a (self-choosen) description would be that you have speaking explanations for the several rules - so that it is MUCH easier to keep in mind the purpose of each line which is printed with the -L flag.
Cause me for myself builds up a firewall rule by rule (understanding them and what I am doing (hopefully) too). And I have lots of comments in the file buil ding the firewall. But nevertheless I would like to recheck everything with th e -L flag and at this point (short) names for rules would be very nice to have .
Same for me. The firewall-rule structure is pretty simple - fluash everything at the start, no user chains, just append the next rule - so it is pretty easy to check the rules.
The comments are in the script and I only edit there and simply start the script - voila, now config is applied.
Quoted 3 lines
So my questions all together:
Is there a possibility like this already?
No.
Quoted 1 line
What are you thinking about it?
It is more than superflous (read: No, do not do it.). Reason: see above.
Bernd
Signature · 4 lines
Bernd Petrovitsch Email : [email protected] g.a.m.s gmbh Fax : +43 1 205255-900 Prinz-Eugen-Straße 8 A-1040 Vienna/Austria/Europe LUGA : http://www.luga.at
Quoted 5 lines · Bernd Petrovitsch
Quoted 2 lines · K. Posern
Is there a possibility to provice a description to rule - which will be printe d out with "iptables -L" or "iptables -L -v"???
Yes, just implement a comment field.
If somebody were to set out to implement such a thing, my suggestion would be to implement it as a normal match, usable whereever other matches are possible: takes a string argument, the comment, and when used, it always matches, whatever the packet content.
Probably a five minute cut job, ripping out all functionality from the string match, would do it.
best regards
Patrick
Quoted 5 lines · Bernd Petrovitsch
Quoted 2 lines · K. Posern
Is there a possibility to provice a description to rule - which will be printe d out with "iptables -L" or "iptables -L -v"???
Yes, just implement a comment field.
[snip]
Quoted 4 lines
Quoted 1 line
What are you thinking about it?
It is more than superflous (read: No, do not do it.). Reason: see above.
I disagree. Eg. if you do accounting using iptables it is vital to be able to identify the correct rule, regardless of possibly added or rearranged rules. A comment field can provide for this quite nicely. Then you might implement accounting using bash + grep only.
You can't do that with a script containing the comments.
peter