Summary: | Kernel Panic in IPFW when adding entries to table | ||
---|---|---|---|
Product: | Base System | Reporter: | Thierry Dussuet <thierry.dussuet> |
Component: | kern | Assignee: | freebsd-ipfw (Nobody) <ipfw> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | dpetrov67 |
Priority: | --- | Keywords: | crash |
Version: | 14.0-RELEASE | ||
Hardware: | amd64 | ||
OS: | Any |
Description
Thierry Dussuet
2023-12-01 12:46:35 UTC
Skipping the problem of kernel panic itself I'd like to propose a workaround for your script: TMPFILE=`mktemp -t tbl53` || exit 1 awk '/^[0-9]/ && !/127.0.0/ {print "table 53 add "$1}' /tmp/dnsbl/dnsbl-1.uceprotect.net > $TMPFILE ipfw -q $TMPFILE rm $TMPFILE It also should be much faster and lighter on CPU. for example it takes less than a second of wall time on ancient core2: # ipfw table 53 flush # ipfw table 53 list | wc 0 0 0 # time ipfw -q /tmp/tbl53.0kfeoXCu 0.179u 0.242s 0:00.42 97.6% 158+184k 0+0io 0pf+0w # ipfw table 53 list | wc 65698 131396 1278284 (In reply to Eugene Perevyazko from comment #1) Thank you, that's very kind, and a great idea! |