由 bqsc 在 06-22-2004 14:22 发表:
我碰到个服务器是这样的规则,是怎么做出来的,老大们能不能教我一下?
[root@proxy root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP icmp -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@proxy root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
220.32.58.128 * 255.255.255.128 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 220.32.58.254 0.0.0.0 UG 0 0 0 eth1
由 Snoopy 在 06-22-2004 16:35 发表:
是不是这样 ?
iptables -A INPUT -p icmp -j DROP
iptables -A FORWARD -j ACCEPT
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 bqsc 在 06-23-2004 09:35 发表:
有朋友解释说IPTABLES里规则是不对PING做出反应。
ROUTE是怎么做的呢?
由 smile787 在 06-23-2004 12:21 发表:
route 是用route命令来做的。
man一下route
由 Brain 在 06-23-2004 14:08 发表:
不让ping。。。
IPTABLES -P INPUT ACCEPT
IPTABLES -P FORWARD ACCEPT
IPTABLES -P OUTPUT ACCEPT
IPTABLES -A INPUT -p icmp -j DROP
怎么这么奇怪的规则。
别以为苦出身就朴实长得拧吧就不花了
HP-COMPAQ NC6000
PM1.5,512M,ATI9600M,i8x0声卡,Combo光驱(幸福享用中)
内猫,无线网卡,兰牙(痛苦摸索中)
RH9,up to 2.6.4内核
由 smile787 在 06-23-2004 17:08 发表:
**** <