NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: npf.conf tables | blocks of addresse




I want for my hash file table to contain address blocks; e.g., 127.0.0.0/8

It seems that when anything other than a single address is in the table then this error is thrown:

(hostname nor servname provided, or not known) near <tableFile>

Is there some alternate way of dealing with address blocks in npf?


After running CIDR addresses like 127.0.0.0/8 through the 'whatmask' application and updating my IPv4 table to the netmask format; i.e., 127.0.0.0 0.255.255.255 then npfctl loads my table.

Which still leaves the problem of how to make a IPv6 table, since npf throws and error from ::1/128 or using prefixlen; e.g.,

# npfctl reload
/etc/npf.conf:12:39: cannot parse '::1 prefixlen 128
' (hostname nor servname provided, or not known) near '"/etc/tbl2"'

Darrel


Home | Main Index | Thread Index | Old Index