linux系统中防火墙配置
来源:互联网 发布:qq挂机软件 编辑:程序博客网 时间:2024/05/18 02:25
(1) 重启后永久性生效:
开启:chkconfig iptables on
关闭:chkconfig iptables off
(2) iptabels operation:
开启:service iptables start
关闭:service iptables stop
/etc/init.d/iptables start stop restart status
(3)在开启了防火墙时,做如下设置,开启相关端口,
修改/etc/sysconfig/iptables 文件,添加以下内容:
-A RH-Firewall-1-INPUT -m state ——state NEW -m tcp -p tcp ——dport 80 -j ACCEPT
比如开启SSH 端口22,可以加上如下内容:
-A RH-Firewall-1-INPUT -m state ――state NEW -m tcp -p tcp ――dport 22 -j ACCEPT
或者:
/etc/init.d/iptables status 会得到一系列信息,说明防火墙开着。
/etc/rc.d/init.d/iptables stop 关闭防火墙
0 0
- linux系统中防火墙配置
- Linux系统修改防火墙配置
- linux系统防火墙配置浅谈
- Linux中iptables防火墙配置实例分享
- Linux 中使用iptables配置防火墙
- Linux系统Iptables的常用防火墙配置方法
- Linux系统Iptables的常用防火墙配置方法
- linux系统关闭防火墙
- 在Linux系统中,在防火墙中添加端口
- linux防火墙配置
- Linux 防火墙配置
- Linux 防火墙配置
- Linux防火墙配置
- Linux防火墙配置
- Linux防火墙配置
- linux修改防火墙配置
- Linux 防火墙的配置
- Linux防火墙的配置
- Google Guice 入门教程07 - 整合第三方组件(1)
- eclipse安装tomcat插件问题(涉及到Tomcat性能)
- 手机基站是否有害健康
- HTTP协议
- Maven最佳实践:Maven仓库
- linux系统中防火墙配置
- URL Loading System Programing Guid (1)
- Android系统音量类型
- ia32-libs 安装问题
- 保持学习状态——2013总结(工作、职场)
- JavaWeb B/S架构中实现客户端浏览器打印(使用scriptX)
- SQLite多线程读写实践及常见问题总结
- linux编程学习笔记(八) 文件 定位 lseek pread pwrite
- Effective Objc : Object-C 中 @property 详解