是否有“最佳实践”或标准可以使一些 iptables 规则永久化?我的意思是:在系统重新启动时自动应用?
我正在使用带有 Ubuntu Server 10.04 LTS (Lucid Lynx) 的 VPS。
谢谢你。
大编辑:我不希望保留任何规则(就像iptables-persistent包一样)。我只想重新加载我自己的特定设置...如果最终通过运行 iptables 添加了其他规则,则应丢弃这些规则...
iptables-persistent
server startup iptables reboot firewall
firewall ×1
iptables ×1
reboot ×1
server ×1
startup ×1