Year: 2026
-
Rocky Linux security auto update
3671 2026-11-12 04:31:35 dnf update -y 刷新软件包缓存3672 2026-11-12 04:43:33 dnf makecache 查看当前可用的安全更新3673 2026-11-12 04:43:44 dnf updateinfo summary –security 应用所有安全更新(推荐)3674 2026-11-12 04:44:11 dnf upgrade –security3675 2026-11-12 04:44:34 dnf needs-restarting -r3676 2026-11-12 04:44:45 init 6检查是否需要重启系统3681 2026-11-12 04:45:45 dnf needs-restarting -r 配置自动安全更新3682 2026-11-12 04:45:54 dnf install dnf-automatic 修改配置文件 /etc/dnf/automatic.conf: 将 upgrade_type 设置为 security,并将 apply_updates 设置为 yes。 启动并启用系统定时器(Timer)3683 2026-11-12…
-
X25519MLKEM768 混合后量子加密算法
三大浏览器(Chrome、Firefox 和 Safari)均已在当前最新版本中默认支持并启用了 X25519MLKEM768 混合后量子加密算法。 这一更新意味着主流网络浏览器的 TLS 握手已经全面迈入抗量子计算攻击的阶段。 什么是 X25519MLKEM768? 这是一个后量子密码学(PQC)混合密钥交换算法。它将两种算法结合在一起: 更新的核心目的:防御“先收集,后解密”攻击 虽然能够实用化的大规模量子计算机尚未问世,但攻击者已经在实行 “先收集,后解密”(Harvest Now, Decrypt Later) 策略。他们通过截获并存储当前的敏感通信流量,等待数年后量子计算机成熟时再进行离线解密。三大浏览器普及该算法后,可以立刻对当前的 HTTPS 通信提供抗量子保护,确保数据的长期隐私安全。 如何验证你的浏览器已经启用?
-

-

mac check local dns after ikev2
ping not ok ,it’s normal https://www.dnsleaktest.com ,Standard test , look you strongswan public IP mac: scutil –dns | grep -A 5 “resolver”|grep nameservernameserver is you swanctl.conf dns dig google.com ,look SERVER is you swanctl.conf dns
-

mac ikev2 authentication of ‘moneyslow.com’ (myself) with RSA signature failed
swanctl –log reason: Mac IKEv2 still force SHA-1 , but Rocky Linux 9 (Crypto Policies)not support SHA-1 ,so :
-

-

Batch generation of nginx configuration files
first,need a template file like this: all the domain in file : domain_moneyslow.txt next , a shell for create config file from domain_moneyslow.txt and template :
-

-
ubuntu22.04 strongswan swanctl
https://pcvogel.sarakura.net/2024/05/01/42720 只允许用户从一个终端登录上来(第二个终端登录,会踢掉第一个终端): monitor connections: https://medium.com/@prasanth.swaminathan/tiny-experiments-2-exploring-strongswans-commands-to-manage-and-monitor-ipsec-connections-63c5c7c3ea1c
-

-

ubuntu22.04 auto run on startup iptables -t nat -A POSTROUTING -j MASQUERADE
在 Ubuntu 22.04 中,由于系统默认使用 systemd 且 iptables 规则重启后会丢失,要实现开机自动执行这条 NAT 转发规则,最可靠的方式是通过 systemd 服务来实现。以下是详细步骤: 新建一个文件 /usr/local/bin/iptables-nat.sh ,内容: chmod +x /usr/local/bin/iptables-nat.sh 再新建一个启动文件:/etc/systemd/system/iptables-nat.service systemctl daemon-reloadsystemctl enable iptables-nat.servicesystemctl start iptables-nat.service 以下是验证: