持久保存iptables规则

一个简单的命令为了使iptables规则永久化,运行@ sudo!
.

0

linux命令:iptables-save > firewall.conf; rm -f /etc/network/if-up.d/iptables; echo '#!/bin/sh' > /etc/network/if-up.d/iptables; echo "iptables-restore < firewall.conf" >> /etc/network/if-up.d/iptables; chmod +x /etc/network/if-up.d/iptables /etc/network/if-up.d/iptables +x chmod /etc/network/if-up.d/iptables; >> firewall.conf" < "iptables-restore echo /etc/network/if-up.d/iptables; > '#!/bin/sh' echo /etc/network/if-up.d/iptables; -f rm firewall.conf; > iptables-save iptables-save > firewall.conf; rm -f /etc/network/if-up.d/iptables; echo '#!/bin/sh' > /etc/network/if-up.d/iptables; echo "iptables-restore < firewall.conf" >> /etc/network/if-up.d/iptables; chmod +x /etc/network/if-up.d/iptablesrootopen.com
linux命令:iptables-save > firewall.conf; rm -f /etc/network/if-up.d/iptables; echo '#!/bin/sh' > /etc/network/if-up.d/iptables; echo "iptables-restore < firewall.conf" >> /etc/network/if-up.d/iptables; chmod +x /etc/network/if-up.d/iptables /etc/network/if-up.d/iptables +x chmod /etc/network/if-up.d/iptables; >> firewall.conf" < "iptables-restore echo /etc/network/if-up.d/iptables; > '#!/bin/sh' echo /etc/network/if-up.d/iptables; -f rm firewall.conf; > iptables-save iptables-save > firewall.conf; rm -f /etc/network/if-up.d/iptables; echo '#!/bin/sh' > /etc/network/if-up.d/iptables; echo "iptables-restore < firewall.conf" >> /etc/network/if-up.d/iptables; chmod +x /etc/network/if-up.d/iptablesrootopen.com
rlfn 2017-12-26 18:18:48
输出

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章