怎么封IP?

由 coldcoffee 在 11-04-2004 21:51 发表:

怎么封IP?

我用linux做的网关,内网有20台电脑,不想让其中一台电脑通过linux网关出去,其它的电脑可以通过网关出去,应该怎么作?


由 orphen 在 11-04-2004 22:03 发表:


iptables -A FORWARD -s X.X.X.X -j DROP

或者在/etc/hosts.deny中加入想封的IP

ALL: x.x.x.x

并保证x.x.x.x不在/etc/hosts.allow中出现


2.6.9-nitro3+KDE3.3.1+ReiserFS+Reiser4+xorg-x11-6.8.1

AMD Athlon-TBird 1.2G

SamSung DDR266 512MB

ST 5400 40GB

ATI Radeon LE

ADSL 512K


由 Snoopy 在 11-04-2004 22:54 发表:


参考置顶的iptables贴


Published At
Categories with 服务器类
Tagged with
comments powered by Disqus