【CentOS7.x】关闭系统自带防火墙或调整设置iptables
2017-09-04 23:03
549 查看
【CentOS7.x】关闭系统自带防火墙或调整设置iptables
CentOS 7.x系统默认使用的是firewall做防火墙,而且有些端口没有开放,需要临时关闭或进行调整。如使用iptables需重新设置。1、直接关闭防火墙
systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动
2、设置 iptables service
yum -y install iptables-services
如果要修改防火墙配置,可以直接编辑配置文件或使用命令进行添加即可。
比如编辑配置文件增加规则:
vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
保存退出。
systemctl restart iptables.service #重启生效 systemctl enable iptables.service #设置开机启动
相关文章推荐
- centos7.x 防火墙配置:关闭firewall 安装iptables
- CentOS 6.5系统中如何关闭seLinux和iptables防火墙
- centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等
- CentOS7系统中关闭firewall,并使用iptables管理防火墙
- 电脑防火墙在哪 系统自带防火墙的设置方法
- CentOS 7.0关闭默认防火墙启用iptables防火墙的设置方法
- 通过Linux系统下iptables防火墙开启/关闭指定端口方法
- CentOS系统iptables防火墙的启动、停止以及开启关闭端口的操作
- Centos7基础环境配置(为普通用户添加root权限/更换yum源/关闭防火墙/系统SELinux设置)
- linux 防火墙 iptables 设置 (系统管理员)
- centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等
- centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等
- 分享:centos关闭iptables防火墙的方法
- 设置LINUX防火墙开启与关闭
- Linux CentOS关闭iptables及设置ifcfg-eth0文件
- linux系统关闭禁用防火墙
- linux防火墙iptables常用规则(屏蔽IP地址、禁用ping、协议设置、NAT与转发、负载平衡、自定义链)
- linux系统对外开放80、8080等端口,防火墙设置
- redhat5关闭防火墙的方法-chkconfig临时关闭iptables
- linux系统iptables 的简单设置