码迷,mamicode.com
首页 > 系统相关 > 详细

linux和ubuntu防火墙相关命令

时间:2018-07-03 14:57:05      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:cmak   number   star   tables   防火墙   火墙   keyword   config   lin   

1.永久有效

开启: chkconfig iptables on 
关闭: chkconfig iptables off

2.即刻生效

开启: service iptables start 
关闭: service iptables stop 


1、关闭ubuntu的防火墙

  ufw disable

2、开启防火墙

 ufw enable

linux和ubuntu防火墙相关命令

标签:cmak   number   star   tables   防火墙   火墙   keyword   config   lin   

原文地址:https://www.cnblogs.com/cing/p/9257834.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!