centos 7中 iptables删除不掉规则
平台:centos7
我用命令:
查看,
iptables -t filter --line -vnL INPUT
一般有第7条如下:
7 637 25983 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
然后,我用命令删除:
iptables -D INPUT 7
然后保存:
service iptables save
但是重启了firewall后,又出现了。
systemctl restart firewalld.service
请问下怎么永久删除那一条?
我用命令:
查看,
iptables -t filter --line -vnL INPUT
一般有第7条如下:
7 637 25983 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
然后,我用命令删除:
iptables -D INPUT 7
然后保存:
service iptables save
但是重启了firewall后,又出现了。
systemctl restart firewalld.service
请问下怎么永久删除那一条?
...全文
相关推荐
centOS7 下利用iptables配置IP地址白名单的方法
下面小编就为大家带来一篇centOS7 下利用iptables配置IP地址白名单的方法。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
CentOS 7.0关闭默认防火墙启用iptables防火墙的设置方法
主要介绍了CentOS 7.0关闭默认防火墙启用iptables防火墙的设置方法,需要的朋友可以参考下
CentOS 7 下使用 iptables
禁用FireWallD,安装&启用iptables-servicessystemctl stop firewalldsystemctl mask firewalldyum install iptables-services -y systemctl enable iptables
Centos 7开放和删除端口
Centos 7开放和删除端口,Centos 7 或 RHEL 7 或 Fedora 中防火墙由 firewalld 来管理,而不是 iptables
centos7防火墙(firewalld、iptables)
一、firewalld和iptables netfilter/iptables是集成在linux2.4.x版本内核中的包过滤防火墙系统。 该框架可以实现数据包过滤,网络地址转换以及数据包管理功能。linux中的防火墙系统包括两个部分:netfilte和iptables。netfilte可以对本机所有流入、流出、转发的数据包进行查看、修改、丢弃、拒绝等操作。由于netfilter在内核空间中,用户通常无法接触内核和修改内核,此时需要命令行工具,一般使用iptables,firewalld等工具。使用iptab


系统维护与使用区
