<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Debian on 云边小站</title><link>https://ooohao.com/tags/debian/</link><description>Recent content in Debian on 云边小站</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sat, 21 Nov 2026 21:00:00 +0800</lastBuildDate><atom:link href="https://ooohao.com/tags/debian/index.xml" rel="self" type="application/rss+xml"/><item><title>给 Debian 13 补上安全补丁和几处加固</title><link>https://ooohao.com/posts/debian-hardening/</link><pubDate>Sat, 21 Nov 2026 21:00:00 +0800</pubDate><guid>https://ooohao.com/posts/debian-hardening/</guid><description>例行检查发现这台机器已经两周没升级：内核还跑着 6.12.107，nginx 停在 deb13u10，而 Debian 已经发布了对应的安全更新。
升级 apt-get update apt-get -y full-upgrade 关键变化：
内核 6.12.107 → 6.12.117（DSA-6628-1，43 个 CVE），需要重启生效； nginx u10 → u11（DSA-6642-1，9 个 CVE：HTTP/2、QUIC、resolver 释放后使用等）； openssl 3.5.7 → 3.5.9，glibc、sudo、vim、zlib 一并更新。 加固 之前这台机器完全没有主机防火墙，只靠云厂商安全组。补了一套 nftables 规则，入站默认拒绝：
nft add table inet filter nft add chain inet filter input &amp;#39;{ type filter hook input priority 0; policy drop; }&amp;#39; 再配合几件小事：
业务进程从 root 降权到独立系统用户，并开启 ProtectSystem=strict 等沙箱选项； SSH 关闭密码登录和端口转发，限制尝试次数； 装 unattended-upgrades 自动打安全补丁； 用 fail2ban 处理 SSH 爆破。 上线前记得先确认新规则允许自己当前的连接，否则会很尴尬。</description></item></channel></rss>