[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/51900: npfctl doesn't recognize x.x.x.x/32 as a valid address/mask
>Synopsis: npfctl doesn't recognize x.x.x.x/32 as a valid address/mask
>Arrival-Date: Fri Jan 20 19:35:00 +0000 2017
>Originator: Rob Hunter
NetBSD bard.localdomain 7.0.2 NetBSD 7.0.2 (GENERIC.201610210724Z) amd64
npfctl errors when adding a single IP address with a /32 mask to a table.
I wrote a script that takes the existing entries of a table with "npfctl table <table> list", compares it with new entries, then combines the 2 into a new table. "npfctl table <table> list" returns single IP addresses with the /32 mask on it so I had to strip the /32 off of it before re-adding it to the table.
I think it makes sense to have npfctl recognize /32 as valid so what comes out can also go back in.
# npfctl table goodguys add 18.104.22.168
# npfctl table goodguys list
# npfctl table goodguys list | xargs npfctl table goodguys rem
npfctl: invalid address, mask or table ID
Main Index |
Thread Index |