Re: blackhole defaults

From: Yuri <yuri_at_aetern.org>
Date: Sat, 06 May 2023 22:01:21 UTC
Gary Aitken wrote:
> I don't think I've specifically set any of these:
> 
> $ sysctl net.inet | grep blackhole
> net.inet.tcp.v6pmtud_blackhole_mss: 1220
> net.inet.tcp.pmtud_blackhole_mss: 1200
> net.inet.tcp.pmtud_blackhole_detection: 0
> net.inet.tcp.blackhole: 2
> net.inet.udp.blackhole: 1
> net.inet.sctp.blackhole: 0
> 
> Can someone explain to me the logic behind the last 3 (tcp,udp,sctp)
> defaults, and why they aren't all at 2?

blackhole(4) says it's disabled by default, and indeed all 3 are 0 on my
system, so something might have set it for you after all?

$ sysctl net.inet.tcp.blackhole net.inet.udp.blackhole
net.inet.sctp.blackhole
net.inet.tcp.blackhole: 0
net.inet.udp.blackhole: 0
net.inet.sctp.blackhole: 0