Linux系统修改防火墙配置
来源:互联网 发布:mac os装php 编辑:程序博客网 时间:2024/06/08 06:29
修改Linux系统防火墙配置需要修改
/etc/sysconfig/iptables
如果要开放哪个端口,在里面添加一条
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
就可以了,其中 3306 是要开放的端口号,然后重新启动linux的防火墙服务。
Linux下停止/启动防火墙服务的命令:
用root登录后,执行/sbin下的
service iptables stop --停止
service iptables start --启动
手工启动服务:
/sbin rvice iptables restart
在系统引导时启动:
/sbin/chkconfig --level 345 iptables on
ipchains 服务不能和 iptables 服务同时运行。要确定 ipchains 服务被禁用,执行以下命令:
/sbin/chkconfig --level 345 ipchains off
- Linux系统修改防火墙配置
- linux修改防火墙配置
- linux 修改防火墙配置
- linux 修改防火墙配置
- linux系统中防火墙配置
- linux系统防火墙配置浅谈
- linux关闭防火墙或者修改防火墙配置的命令
- 手动配置linux 网络时,修改默认网关,设置防火墙
- Linux防火墙端口配置和ftp修改端口
- 配置linux系统(修改/proc)
- Linux系统Iptables的常用防火墙配置方法
- Linux系统Iptables的常用防火墙配置方法
- linux系统关闭防火墙
- linux防火墙配置
- Linux 防火墙配置
- Linux 防火墙配置
- Linux防火墙配置
- Linux防火墙配置
- Log4Net使用指南
- C++资源导引
- 对参数使用某种表示输入,修改,输出的命名规则
- Android 计时器
- 关于Log4net在webservice中的使用
- Linux系统修改防火墙配置
- POJ 3624 0-1背包问题 动态规划
- Christmas Day is coming,we will give u a surprise
- asp.net2.0中异步调用WebService(异步页)
- 高位优先与低位优先
- 二舅今天过世了
- Windows PowerShell 2.0 代码调试并排除bug
- js特效--整死我了(2)
- 你的知识资产(程序员修炼之道摘录五)