Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2005 21:34:41 +0300
From:      Mikhail Manuylov <mikhail.manuilov@gmail.com>
To:        freebsd-ipfw@freebsd.org
Subject:   ipfw table add problem (need to supply mask even for single ip)
Message-ID:  <7ec6def9050314103429478a51@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello.

I got a problem with adding several address names to one table without
specifying subnet cidr mask for each.

#for example:

ipfw -n table 1 add 192.168.1.1, 172.16.1.2, 10.1.1.3, 10.1.1.4
ipfw: hostname ``192.168.1.1,172.16.1.2,10.1.1.3,10.1.1.4'' unknown
echo $?
68

#but
ipfw -n table 1 add 192.168.0.0/24, 172.16.0.0/16, 10.0.0.0/8
echo $?
0

#and
ipfw -n table 1 add 192.168.1.1/32, 172.16.1.2/32, 10.1.1.3/32, 10.1.1.4/32
echo $?
0

Is it necessary to specify cidr mask?

ipfw(8) says "no":
"If masklen is not specified, it defaults to 32"

$uname -vm
FreeBSD 4.11-STABLE #0: Wed Feb 23 18:14:56 MSK 2005    
root@exapmple.com:/usr/obj/usr/src/sys/CUSTOM  i386

I've compiled my kernel and world with defined IPFW2 option and
variables respectively.

Thanks beforehand for response.

-- 
Truly yours, Mikhail Manuilov


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7ec6def9050314103429478a51>