[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-ipfw
Subject: ipfw table add problem (need to supply mask even for single ip)
From: Mikhail Manuylov <mikhail.manuilov () gmail ! com>
Date: 2005-03-14 18:34:41
Message-ID: 7ec6def9050314103429478a51 () mail ! gmail ! com
[Download RAW message or body]
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
_______________________________________________
freebsd-ipfw@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic