Skip to content

Commit de3faa8

Browse files
committed
local-unbound-setup: Set so-sndbuf to 0
Without this setting, Unbound 1.24.0 and newer will attempt to set the socket buffer size to 4 MB to mitigate issues that mostly affect servers with large numbers of clients on local networks, which is not a scenario local-unbound is intended for. This is not only a waste of resources, it can also fail, resulting in a warning message on daemon startup. Fixes: b2efd60 ("unbound: Vendor import 1.24.0") Reviewed by: jlduran, cy Differential Revision: https://reviews.freebsd.org/D52977
1 parent e41e099 commit de3faa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

usr.sbin/unbound/setup/local-unbound-setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ gen_unbound_conf() {
261261
if [ "${use_tls}" = "yes" ] ; then
262262
echo " tls-cert-bundle: /etc/ssl/cert.pem"
263263
fi
264+
echo " so-sndbuf: 0"
264265
echo ""
265266
if [ -f "${forward_conf}" ] ; then
266267
echo "include: ${forward_conf}"

0 commit comments

Comments
 (0)