On Tue, Dec 23, 2003 at 08:51:57AM -0500, Lee Dilkie wrote:

> > I think that it's right:
> > ipfw 1000 add permit all from 192.168.1.1/24{3,5,9} to any
> > but I see follwing:
> > ipfw: bad width ``243''

 
>  192.168.1.1/24{3,5,9} translates to  192.168.1.1/243,  192.168.1.1/245 or
> 192.168.1.1/249.

Uh, at least, not in ipfw2 rulesets it doesn't.  Where it does expand
like that is in csh(1), bash(1), zsh(1) and similar shells (but not
sh(1)):

    % echo 192.168.1.1/24{3,5,9}
    192.168.1.1/243 192.168.1.1/245 192.168.1.1/249

Perhaps the original poster was typing the rules in at the command
prompt?  In which case, simply use a few quote marks to stop the
shell interfering:

    # ipfw add 1000 permit all from '192.168.1.1/24{3,5,9}'

Or load the rules out of a file.

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to