NetBSD-Bugs archive
[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
>Number: 51900
>Category: bin
>Synopsis: npfctl doesn't recognize x.x.x.x/32 as a valid address/mask
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 20 19:35:00 +0000 2017
>Originator: Rob Hunter
>Release: 7.0.2
>Organization:
>Environment:
NetBSD bard.localdomain 7.0.2 NetBSD 7.0.2 (GENERIC.201610210724Z) amd64
>Description:
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.
>How-To-Repeat:
# npfctl table goodguys add 1.2.3.4
npfctl: success
# npfctl table goodguys list
1.2.3.4/32
# npfctl table goodguys list | xargs npfctl table goodguys rem
npfctl: invalid address, mask or table ID
#
>Fix:
Home |
Main Index |
Thread Index |
Old Index