ipfw and tablearg formatting

Andreas Nilsson andrnils at gmail.com
Tue Jun 4 15:59:33 UTC 2013


On Tue, Jun 4, 2013 at 5:55 PM, Eugene Grosbein <eugen at grosbein.net> wrote:

> On 03.06.2013 18:43, Andreas Nilsson wrote:
> > Hello,
> >
> > Still trying out the tablearg functionality of ipfw and found the
> following:
> >
> > 1)
> > # ipfw table 100 add 192.168.0.0/24 10.0.0.1
> > # ipfw table 100 list
> > 192.168.0.0/24 167772161
> >
> > I guess it is correct, but not user friendly. Can't the tablearg part be
> > printed as normal dotted decimal?
>
> # ipfw -i table 100 list
> 192.168.0.0/24 10.0.0.1
>
> man ipfw:
>
>      -i      When listing a table (see the LOOKUP TABLES section below for
>              more information on lookup tables), format values as IP
>              addresses. By default, values are shown as integers.
>

There is always something new to discover in the manpage. Thanks.


> > 2)
> >
> > # ipfw table 100 add 2a01:280:1::88/64 2a01:280:1::89
> > # ipfw table 100 list
> > 2a01:280:1::/64 2
> >
> > I don't really see any chance of this one working.
>
> At present, values are 32 bit unsigned integers internally and are parsed
> so.
>
> Ah. No chance of using tablearg for ipv6 fwd rules then I guess.

Best regards
Andreas


More information about the freebsd-net mailing list