
前言 一台安全的服务器必然会涉及 iptables 规则的配置,配置完成后,我们还需要对其进行持久化保存,以避免重新启动系统后规则丢失的问题。 方法 for Ubuntu 安装 iptables-persistent 工具 sudo apt install iptables-persisten 确保 iptables-persistent 服务已启用 sudo systemctl is-enabled netfilter-persistent 如果没有启用,执行: sudo systemctl enable netfilter-persistent sudo systemctl start...