Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2013 17:59:33 +0200
From:      Andreas Nilsson <andrnils@gmail.com>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: ipfw and tablearg formatting
Message-ID:  <CAPS9%2BSuB7=-hvnzMGOdRE_wptByhg7xqv_drsoh9egVE0JPSrA@mail.gmail.com>
In-Reply-To: <51AE0DD5.2090608@grosbein.net>
References:  <CAPS9%2BSu=uQG5-s7qmgeUSgnqJscyMhRqXuApo0mkV%2BqZWU8u0g@mail.gmail.com> <51AE0DD5.2090608@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 4, 2013 at 5:55 PM, Eugene Grosbein <eugen@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPS9%2BSuB7=-hvnzMGOdRE_wptByhg7xqv_drsoh9egVE0JPSrA>