Re: "Unknown error" message from pfctl on an existing table
Alexander Leidinger <[email protected]> Fri, 20 Sep 2024 12:39:16 +0200
| Newsgroups | gmane.os.freebsd.security.general |
|---|---|
| Organization | No organization, this is a private message. |
| Message-ID | <[email protected]> |
Am 2024-09-20 12:27, schrieb Kristof Provost:
> On 20 Sep 2024, at 11:21, Alexander Leidinger wrote:
>> When I list the non-working table (crowdsec-blocklists):
>> ---snip---
>> openat(AT_FDCWD,"/dev/pf",O_RDONLY,00) = 3 (0x3)
>> ioctl(3,DIOCGETALTQSV1,0x19fc93899a90) ERR#19 'Operation not
>> supported by device'
>> openat(AT_FDCWD,"/dev/pf",O_RDWR,00) = 4 (0x4)
>> socket(PF_NETLINK,SOCK_RAW,16) = 5 (0x5)
>> setsockopt(5,270,11,0x19fc93899a2c,4) = 0 (0x0)
>> getsockopt(5,SOL_SOCKET,SO_RCVBUF,0x19fc93899a24,0x19fc93899a28) = 0
>> (0x0)
>> ioctl(3,DIOCRGETADDRS,0x19fc938990f0) = 0 (0x0)
>> ioctl(3,DIOCRGETADDRS,0x19fc938990f0) ERR#22 'Invalid
>> argument'
>> issetugid() = 0 (0x0)
>> ---snip---
>>
> That’s not the error code I see for a non-existent table, so it’s not
> quite the same issue.
>
> DIOCRGETADDRS returns EINVAL, which is probably because the table is
> running into the net.pf.request_maxcount limit. Try increasing that
> sysctl.
Yes:
# pfctl -t crowdsec-blocklists -T show | wc -l
74167
Thanks!
Alexander.
--
http://www.Leidinger.net [email protected]: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org [email protected] : PGP 0x8F31830F9F2772BF
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmbtUOQACgkQEg2wmwP4 2IbngA/9EHyoXRglZlxt2WHTjXFu2Cgfh1NVvqTSgFm3vbwjw0ZEwvo9hEnMHxrG HE+nOv2Uj6FuU1RjfBtAHZdHtQ28t3oNXPJRV65wk+qiLielzOsAZchSFNSlZZ9u XP+GiObFuOIkHIuN5GLHHLSBTdzckIBeSWL3cJUnf/VBAOj2c8ntiOnv7iNxdXXQ 21K/ZMd/XPnh6ZFsOVCByf5xXRfCs4E5vvrjte3rXEXoNfC5NfHD8oCCXaDqAIK3 klZ/A5wtJvuIAbgWb17CPQnqed+e+WgqtK4RTJRHUPynEIlVzk8q74v5+fhzfjaB 1VfF1lFWXXujKMkfN4AamRVpC3kU7uWsqbWO5BUueOzokcqUPqb0prKf0mQjwW7F PB88eAtWu/7WG0Bvk7VT/B65oRhxc2cTqhEhii41RRArZLWxRl4jZLFH4TGDTDeK CNKCbuspvUI/RCkV8Hg4jPfuCW7glioz3UEgTfS9zpgD4zCJzmWIUpPLOCDWzVo7 quYtNJWlQcpNTjq1veUW4ycbRFat18LtD2ZFejNTT7LgmH79/1Do0SoncaJDQlfq 2BDrlzDYED29WRHaVZ5dTb3x5zm4MN6dqSKskszQjALdVhiaioNbglHt3JYFSMB3 KrKaLALvZOSJ1jgLghKJttU70NBp9zK72crcJAv0L1O3rKnoKyU= =Swg3 -----END PGP SIGNATURE-----