ubuntu iptables重启生效:

ubuntu iptables重启生效:
save roles to a file:
iptables-save >/etc/iptables.roles

edit /etc/network/interfaces:
vim /etc/network/interfaces

add:
pre-up iptables-restore < /etc/iptables.roles

posted @ 2019-08-29 00:59  dzqabc  阅读(5935)  评论(0编辑  收藏  举报