论坛风格切换切换到宽版
  • 847阅读
  • 7回复

[问题求助]问一基础问题,用iptables封网 [复制链接]

上一主题 下一主题
离线goto8809.
 
发帖
2096
C币
-152317
威望
413
贡献值
1
银元
-1
铜钱
4602
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
想封掉比如www.sina.com.cn。参照某些网站例子iptables -I FORWA.RD -d www.sina.com.cn -j DROP.运行规则的时候说host/network. 'www.si.na.com.cn' not found.电影
后来又换了几种写法比如:iptables -A INPUT -i eth0 -p TCP -s www.sina.com.cn -j DROP 也一样。把域名换成ip倒是不报错了,但是没封掉。或者不用iptables用别的也可以,只要能封就行。这么简单的问题就捆住我了,请老大们帮我一把吧!谢谢啦! http://upload.bbs.csuboy.com/Mon_1004/126_7046_d52cfbf2a8b1d40.gif[/img]             汽车

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线jiajiawang.
发帖
2083
C币
-236104
威望
413
贡献值
2
银元
-3
铜钱
4797
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
封一个IP没用的。

Non-authoritative answer:

www.sina.com.cn        canonical name = jupiter.sina.com.cn.

jupiter.sina.com.cn        canonical name = antares.sina.com.cn.

Name:        antares.sina.com.cn

Address: 218.30.12.178

Name:        antares.sina.com.cn

Address: 218.30.12.179

Name:        antares.sina.com.cn

Address: 218.30.12.180

Name:        antares.sina.com.cn

Address: 218.30.12.181

Name:        antares.sina.com.cn

Address: 218.30.12.182

Name:        antares.sina.com.cn

Address: 218.30.12.183

Name:        antares.sina.com.cn

Address: 218.30.12.184

Name:        antares.sina.com.cn

Address: 218.30.12.185

Name:        antares.sina.com.cn

Address: 218.30.12.186

Name:        antares.sina.com.cn

Address: 218.30.12.187

Name:        antares.sina.com.cn

Address: 218.30.12.190

Name:        antares.sina.com.cn

Address: 218.30.12.191

Name:        antares.sina.com.cn

Address: 218.30.12.173

Name:        antares.sina.com.cn

Address: 218.30.12.174

Name:        antares.sina.com.cn

Address: 218.30.12.175

Name:        antares.sina.com.cn

Address: 218.30.12.176

Name:        antares.sina.com.cn

Address: 218.30.12.177
复制代码

离线yylqymzk.
发帖
2146
C币
-131837
威望
395
贡献值
1
银元
-2
铜钱
4823
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
我也知道这点,那怎么办呢?

离线manbunet.
发帖
1923
C币
-61046
威望
353
贡献值
2
银元
-2
铜钱
4301
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
试试
iptables -A INPUT -i eth0 -p TCP -s 218.30.12.173-218.30.12.191 -j DROP

发帖
1998
C币
-193550
威望
372
贡献值
1
银元
-2
铜钱
4466
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
还不如218.30.12.0/24  哈哈
可是怎么取得他们所有的ip呢?

离线on99.
发帖
2137
C币
-60177
威望
414
贡献值
1
银元
-3
铜钱
4822
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
赫赫,没见过。不是linux命令吧?是个小工具?

发帖
2113
C币
-235288
威望
388
贡献值
1
银元
-2
铜钱
4716
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
大哥真行!写命令还大喘气阿!哈哈。
在看man nslookup了。谢谢!

离线computerfs.
发帖
2136
C币
5128
威望
390
贡献值
1
银元
-2
铜钱
4676
人人网人气币
0
只看该作者 7楼 发表于: 2010-04-13
竟然在dos 模式下也可以用啊!好使!
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个