RSS
热门关键字:  Linux  图形  项目管理  p2p  LAMP
当前位置 : 首页>开源安全>列表

安全教堂:Linux系统下防火墙设置方法介绍

来源:中国开源社区 作者:佚名 时间:2008-04-27 点击:
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,如果要开放哪个端口,在里面添加一条。

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT 字串8

就可以了,其中 1521 是要开放的端口号,然后重新启动linux的防火墙服务。 字串9

停止/启动防火墙服务的命令:

字串2

用root登录后,执行

字串7

service iptables stop --停止

字串5

service iptables start --启动 字串2

(service命令位于/sbin)

字串4

防火墙规则只有在 iptables 服务运行的时候才能被激活。要手工启动服务,使用以下命令:

字串8

/sbin rvice iptables restart

字串6

要确保它在系统引导时启动,使用以下命令: 字串4

/sbin/chkconfig --level 345 iptables on 字串3

ipchains 服务不能和 iptables 服务同时运行。要确定 ipchains 服务被禁用,执行以下命令: 字串5

/sbin/chkconfig --level 345 ipchains off

字串3

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册