Linux关闭防火墙命令
来源:互联网 发布:保益读屏软件下载 编辑:程序博客网 时间:2024/06/18 02:55
转自:http://blog.163.com/zilichen0213@126/blog/static/17303755520109265551793/
Linux关闭防火墙命令
1) 永久性生效,重启后不会复原
开启:chkconfig iptables on
关闭:chkconfig iptables off
2) 即时生效,重启后复原
开启:service iptables start
关闭:service iptables stop
3)在开启了防火墙时,做如下设置,开启相关端口,
修改/etc/sysconfig/iptables 文件,添加以下内容:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
0 0
- linux防火墙关闭命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- linux关闭防火墙命令
- Linux关闭防火墙命令
- linux 关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭防火墙命令
- Linux关闭 开启 防火墙 命令
- linux下 关闭防火墙命令
- linux 怎样用命令关闭防火墙
- Magento获取当前店铺信息(首页,类别,地址等)
- 【译】如何使用Android MediaStore裁剪大图片
- 【数据结构】链式栈
- Cocos2d-x 3.x中43种常用动作汇总
- Magento Block获取各种URL的方法
- Linux关闭防火墙命令
- Bug 330215 - Crash in QPSQL driver when shutting down Akonadi
- Android WebView加载API接口代码显示
- iOS information from info.plist not available,file may not exist at specified path解决方法
- Magento如何调用图片
- IOS的触摸事件和手势处理
- 新的一年Android学习计划
- node.js安装express后显示“express不是内部或外部命令”
- Find Minimum in Rotated Sorted Array II