What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

0

새해 축하 박 터트리기!     |   / ̄ ̄ ̄\  /  ∧  \ │  /川\  │  \/┏┻┓ \/ 。゛#┃해┃゛。 ゛,。┃피┃#。゛ 。゜#┃뉴┃゛。゛ ,*。┃이┃゜。# * ゜。┃어┃゜*。    ┃ ┃    ┗┯┛   ∩∩ │ (*´∀`)│  / ⊃

0
0
0
0
0
0
0
1
0
0

붉은 말의 해, 병오년의 핑키 파이 Pinkie Pie on the Year of Red Horse 두빛 그림 Drawn by Dubit 2026-01-01 붉은 말의 해, 병오년을 맞아 분홍색이지만 넓은 의미의 붉은 말인 핑키 파이를 그렸습니다. 새해 복 많이 받으세요! I drew Pinkie Pie, who's pink but also actually a red horse, celebrating the year of red horse. Happy new year! 포스타입 Postype: posty.pe/7qvgk1

0

Question to people more knowledgeable about #BSD systems (primarily #FreeBSD, but the more answers the merrier)!

On Linux, I can use ipset (or nftables sets) to create a set of IP addresses I can match against with one rule. Like:

# ipset create test-set iphash
# iptables -I INPUT -m set --match-set test-set src -j DROP

This would drop any and all source addresses that I add to test-set in the future, without having to update INPUT. It also does some magic hashing thing to make all this efficient.

The reason I want this is because I'll be adding a lot of unique IPs to this set (about half a million, if not more). When adding them directly to iptables, the Linux kernel was very unhappy about that. But with a set? Worked like a charm.

Can pf or any other packet filter tool on the BSDs do something similar? Allow me to block a very large number of unique IPs?

Blocking ASNs or ranges is not feasible, I need to block unique IPs.

Bonus points if it can automatically expire entries that were added or updated N seconds ago.

Boosts appreciated.

0
0
0
0
0
0
1
0
0
0
0
0
1
0

2025년, 블루스카이에서 독자님들을 만나 정말 반가웠습니다. 트위터에서 미처 듣지 못했던 다채로운 의견 통해 많이 배웠습니다. 새해에도 이곳에서만 들을 수 있는 목소리에 귀 기울이고, 더 좋은 기사 소개할 수 있도록 노력하겠습니다. 2026년도 잘 부탁드립니다. * SNS 담당자 1호가 출산으로 자리를 잠시 비웁니다. 그동안 1인 담당제였던 블루스카이를 2인 운영제로 변경하고, 더 풍성하게 꾸려갈 계획입니다. 아직 블루스카이가 낯설 담당자 2호와 3호에게도 따뜻한 격려 부탁드립니다. 한겨레 SNS 운영팀 드림 🦄🩷

0
0

붉은 말의 해, 병오년의 핑키 파이 Pinkie Pie on the Year of Red Horse 두빛 그림 Drawn by Dubit 2026-01-01 붉은 말의 해, 병오년을 맞아 분홍색이지만 넓은 의미의 붉은 말인 핑키 파이를 그렸습니다. 새해 복 많이 받으세요! I drew Pinkie Pie, who's pink but also actually a red horse, celebrating the year of red horse. Happy new year! 포스타입 Postype: posty.pe/7qvgk1

0
1
1
1
1
1
1
1
2
0
0
1
1
0
1
0
0
0
1
3
1
0
1
1