哈哈,有没有遇到安装完LNMP,Ubuntu的ufw感觉失效了一样,80外面还是能访问,来,看这里
root@ubuntu:/etc/iptables# whereis iptables
iptables: /sbin/iptables /etc/iptables /usr/share/iptables /usr/share/man/man8/iptables.8.gz
root@ubuntu:/etc/iptables#
root@ubuntu:/etc/iptables# pwd
/etc/iptables
root@ubuntu:/etc/iptables# ls -l
total 20
-rw-r----- 1 root root 5288 Aug 2 14:39 rules.v4
-rw-r----- 1 root root 8229 Aug 2 14:27 rules.v6
#修改rules.v4
#规则产生作用
iptables-restore < /etc/iptables/rules.v4
不谢!