ipfw table add problem (need to supply mask even for single ip)
Mikhail Manuylov
mikhail.manuilov at gmail.com
Mon Mar 14 17:48:37 PST 2005
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 at 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
More information about the freebsd-ipfw
mailing list