hostvac 发表于 2021-12-23 22:03
你没保存,最后输这个
service iptables save
telnetpig 发表于 2021-12-23 22:03
iptables -F 清空防火墙
修改完规则后,将规则保存到文件,位置根据需要可以改
yanqing001 发表于 2021-12-23 22:53
你没看明白我的问题
-------------------------------
没有 iptables 这个服务
hostvac 发表于 2021-12-23 22:59
我也用的Oracle Linux,没问题
yunyouu 发表于 2021-12-23 23:00
iptables 有个默认配置文件夹,开机会固定加载。改个名或者删了就行

yanqing001 发表于 2021-12-23 23:08
在哪里,我找半天没找到

yunyouu 发表于 2021-12-23 23:14
/etc/sysconfig/iptables 看看,其他就不知道了
三氧化二砷 发表于 2021-12-23 23:21
yum remove iptables -y?
yunyouu 发表于 2021-12-24 14:48
对了,突然想到 centos8 用 nftables 替换了 iptables。看下这个目录 /etc/nftables.conf ...

yanqing001 发表于 2021-12-24 14:58
ls /etc/nftables.conf
ls: cannot access '/etc/nftables.conf': No such file or directory
| 欢迎光临 全球主机交流论坛 (https://443502.xyz/) | Powered by Discuz! X3.4 |