关闭

防火墙

标签: 防火墙
298人阅读 评论(0) 收藏 举报
分类:

firewalld

查询防火墙状态:firewall-cmd --state

关闭防火墙:systemctl stop firewalld.service

开启防火墙: systemctl start firewalld.service

禁止firewall开机启动:systemctl disable firewalld.service

iptables

service iptables save
service iptables restart

Step 1 : Install iptables-services

yum install iptables-services
Step 2 : Manage iptables with systemctl

Use the below given syntax
systemctl [stop|start|restart|reload] iptables

Example.

To start iptables

systemctl start iptables
To stop iptables

systemctl stop iptables
To restart iptables

systemctl restart iptables
To reload iptables

systemctl reload iptables

http://www.server110.com/linux/201309/937.html

http://blog.csdn.net/xlgen157387/article/details/52672988

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:17529次
    • 积分:803
    • 等级:
    • 排名:千里之外
    • 原创:51篇
    • 转载:76篇
    • 译文:0篇
    • 评论:0条
    文章分类
    阅读排行
    评论排行