NetBSD-Users archive

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

Re: npfctl table



On Wed, 20 Apr 2016, Christos Zoulas wrote:

In article <CAEKtCz1_O6wSfzdS_Jj5FhWLP2k7gMo78FNxnRH5rXd6Bbjd-A%mail.gmail.com@localhost>,
Siyar Erdemli  <siyar.erdemli%gmail.com@localhost> wrote:
-=-=-=-=-=-

Hi all.
I want to use fail2ban with npf.

script is ,

/sbin/npfctl table fail2ban add 10.10.2.1/32

npfctl: invalid address, mask or table ID


, i cant create and find table id. What is table id.

[11:39am] 8#npfctl table fail2ban add 10.10.10.1/32
npfctl: invalid address, mask or table ID
Exit 1
[11:39am] 9#npfctl table fail2ban add 10.10.10.1
npfctl: success
[11:40am] 10#npfctl table fail2ban list
10.10.10.1/32

Looks like a bug in npfctl, skip the /32 for now.

Not bug, but known behavior. I pointed this out a couple years ago and
tried to fix it myself but wasn't successful. I forgot all about it
until now.

--
Hisashi T Fujinaka - htodd%twofifty.com@localhost
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee


Home | Main Index | Thread Index | Old Index