非常经典的一个iptables的脚本
--------------------------------------------------------------------------------
2007-08-20 18:33:29 标签:iptables 脚本 web
学习iptables中,想知道iptables跟ipchains的区别!好像我的RH9木有ipchains命令哎?? 听说Linux内核2.4版本以后就是使用iptables了,两者不能共存的说,哈哈
google:ipchains/go!
iptables不错脚本(参考 )
本文源地址:/bbs/index.php
#1 iptables不错脚本(参考 )
Quote:
[root@server ~]# cat /opt/iptables/iptables.rule
#!/bin/bash
#
# The interface that connect Internet
EXTIF="ppp0"
# the inside interface. if you don't have this one
# and you must let this be black ex> INIF=""
INIF="eth0"
INNET="192.168.1.0/24" # This is for NAT's network
kver=`uname -r | cut -c 1-3`
if [ "$kver" != "2.4" ] && [ "$kver" != "2.5" ] && [ "$kver" != "2.6" ]; then echo "Your Linux Kernel Version may not be suported by this script!"
…… …… 余下全文