CentOS 7 firewalld使用简介
来源:互联网 发布:加州枪击 知乎 编辑:程序博客网 时间:2024/06/05 04:23
由于centos 7版本以后默认使用firewalld后,网上关于iptables的设置方法已经不管用了,
Centos7 开放端口
开启端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
命令含义:
--zone #作用域
--add-port=80/tcp #添加端口,格式为:端口/通讯协议
--permanent #永久生效,没有此参数重启后失效
重启防火墙
firewall-cmd --reload
查询端口是否打开
firewall-cmd --query-port=80/tcp
FirewallD is not running 报错执行 systemctl start firewalld
安装firewalld
root执行 # yum install firewalld firewall-config
运行、停止、禁用firewalld
启动:# systemctl start firewalld
查看状态:# systemctl status firewalld 或者 firewall-cmd --state
停止:# systemctl disable firewalld
禁用:# systemctl stop firewalld
======================CentOS 6.5==========================
关闭命令: service iptables stop (开发测试中使用)。 [root@localhost ~]# /etc/rc.d/init.d/service iptables restart | stop |status
永久关闭防火墙:chkconfig iptables off (开发测试中使用)
两个命令同时运行,运行完成后查看防火墙关闭状态
service iptables status
用户添加sudo 执行权限
- CentOS 7 firewalld使用简介
- CentOS 7 firewalld使用简介
- CentOS 7 firewalld使用简介
- CentOS 7 firewalld使用简介
- CentOS 7下FirewallD使用简介
- CentOS 7 下使用 Firewalld
- CentOS 7 firewalld 的基本使用
- centos 7 安装 firewalld
- centos 7 firewalld
- CentOS 7之firewalld
- CentOS7中firewalld使用简介
- centos 7 firewalld基本配置
- CentOS 7 firewalld与iptables
- centos 7 配置防火墙 firewalld
- Centos 7的firewalld用法
- 了解 Centos 7 firewallD 配置
- CentOS 7 关闭防火墙 SELinux , FireWalld
- centos 7开启firewalld 防火墙端口
- 斐波那契数列
- 删除listview条目
- Linux环境变量设置指南
- java菱形图案的输出
- HDU 1023 Train Problem II (卡特兰数)
- CentOS 7 firewalld使用简介
- 我的第一篇博客
- Hdu 3686 Traffic Real Time Query System(双联通分量+LCA)
- 才搞清楚常量的存储位置
- android动画结束闪屏问题
- PAT 1007. Maximum Subsequence Sum (25)(dp动态规划)
- Linux和Windows磁盘映射
- 安全测试工具IBM Rational AppScan的使用教程
- html、css日常问题记录