LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: caching

大家的Gentoo下都安装杀毒软件和防火墙了吗?

[复制链接]
发表于 2006-5-8 14:08:06 | 显示全部楼层
Post by Freesnake
iptables……看起来有点复杂的样子……

其实很简单:

  1. LAN=192.168.2.0/24
  2. OUT=eth0

  3. iptables -F
  4. iptables -t nat -F
  5. iptables -t mangle -F

  6. iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
  7. iptables -A INPUT -m state --state NEW -i ! $OUT -j ACCEPT
  8. iptables -A INPUT -p icmp -j ACCEPT
  9. iptables -A INPUT -s $LAN -j ACCEPT
  10. iptables -P INPUT DROP
  11. iptables -A FORWARD -i $OUT -o $OUT -j REJECT
复制代码
Post by Freesnake
病毒……刚好给了自己一个重装的理由……

重装系统太麻烦了,一装就是一两天。我一般1-2年才重装一次Gentoo。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表