2023年11月19日星期日

ubuntu22如何让iptables的设置永久生效

sudo apt-get update

sudo apt-get install iptables-persistent

sudo service netfilter-persistent start

然后

iptables-save > /etc/iptables/rules.v4

ip6tables-save > /etc/iptables/rules.v6

就可以保持v4和v6的设置,重启也会生效。

没有评论:

发表评论

Nextcloud Talk 高性能后端配置

先生成几个密钥,后面会用到: bash openssl rand -hex 32 # TURN_SECRET(coturn 与 signaling 共用) openssl rand -hex 32 # BACKEND_SECRET(signaling 与 Nextclo...