[Bug 255704] Feature Request: ipfw: print time in ISO8601 or allow to pass time format string
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat May 15 09:23:33 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255704
--- Comment #3 from Lutz Donnerhacke <donner at FreeBSD.org> ---
(In reply to parv from comment #2)
I'm a bit confused.
My version of ipfw in 13-STABLE reacts to the option -T and -aT in the same
way.
```
# ipfw -T show
00100 5197969 654927673 1621070102 allow ip from any to any
# ipfw -aT show
00100 5198030 654934164 1621070105 allow ip from any to any
```
This is easy to postprocess i.e.
```
# ipfw -T show | perl -pe '
next unless s/ +(\d+) +(\d+) +(\d+)/ XxX/;
$d = localtime($3);
if ($3 > 0) {
s/XxX/$d/;
} else {
s/XxX/ /
};'
00100 Sat May 15 11:19:54 2021 allow ip from any to any
07110 fwd tablearg,8000 tcp ...
07110 fwd tablearg,8000 tcp ...
07210 allow ip from any to any
65535 deny ip from any to any
```
You may write you a wrapper script which is using the options you really need.
Please don't get me wrong. The question is: "Is it worth the effort to include
a special form of postprocessing into a system binary?"
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ipfw
mailing list