用 tcpdump 抓到了所有的迅雷服务器IP
--------------bock_thunder.sh-------------------------
#!/bin/sh
# create new chains
/sbin/iptables -F THUNDER_FW 2>> /dev/null
/sbin/iptables -F THUNDER_IN 2> /dev/null
/sbin/iptables -N THUNDER_FW 2> /dev/null
/sbin/iptables -N THUNDER_IN 2> /dev/null
/sbin/iptables -F THUNDER_FW 2>> /dev/null
/sbin/iptables -F THUNDER_IN 2> /dev/null
/sbin/iptables -N THUNDER_FW 2> /dev/null
/sbin/iptables -N THUNDER_IN 2> /dev/null
# anchor to main chains
/sbin/iptables -D INPUT -j THUNDER_IN 2>/dev/null
/sbin/iptables -I INPUT -j THUNDER_IN
/sbin/iptables -D FORWARD -j THUNDER_FW 2>/dev/null
/sbin/iptables -I FORWARD -j THUNDER_FW
/sbin/iptables -D INPUT -j THUNDER_IN 2>/dev/null
/sbin/iptables -I INPUT -j THUNDER_IN
/sbin/iptables -D FORWARD -j THUNDER_FW 2>/dev/null
/sbin/iptables -I FORWARD -j THUNDER_FW
echo "Building deny rules for Thunder..."
while read i; do
/sbin/iptables -I THUNDER_FW -s $i -j DROP
/sbin/iptables -I THUNDER_FW -d $i -j DROP
/sbin/iptables -I THUNDER_IN -s $i -j DROP
/sbin/iptables -I THUNDER_IN -d $i -j DROP
done < /root/script/thunder_ip.txt
echo "Building deny rules for Thunder...DONE."
while read i; do
/sbin/iptables -I THUNDER_FW -s $i -j DROP
/sbin/iptables -I THUNDER_FW -d $i -j DROP
/sbin/iptables -I THUNDER_IN -s $i -j DROP
/sbin/iptables -I THUNDER_IN -d $i -j DROP
done < /root/script/thunder_ip.txt
echo "Building deny rules for Thunder...DONE."
下面是IP列表,保存为:/root/script/thunder_ip.txt
116.18.220.173
116.21.170.34
116.227.24.132
117.88.214.74
121.10.105.151
121.10.105.152
121.11.69.108
121.14.76.213
121.205.192.202
121.229.149.54
121.32.155.52
121.33.246.172
121.9.209.3
121.9.209.7
124.227.192.180
124.236.92.176
124.40.134.114
124.72.193.116
125.115.86.151
125.119.26.125
125.126.172.156
125.71.23.136
125.77.153.47
125.91.133.252
125.91.203.86
125.91.93.157
192.111.4.26
202.38.64.8
203.91.44.162
218.0.130.247
218.18.113.239
218.18.17.48
218.22.71.166
218.60.11.2
218.6.128.32
218.78.192.166
218.92.216.59
218.94.36.224
219.129.229.252
219.129.83.2
219.130.213.20
219.134.255.45
219.136.244.101
220.166.36.18
220.173.136.250
220.173.136.252
220.173.222.202
220.181.12.208
220.181.12.209
220.184.188.39
221.225.154.48
221.239.147.215
221.239.153.203
222.137.116.12
222.181.117.80
222.182.82.239
222.185.248.36
222.187.198.2
222.191.242.60
222.209.42.121
222.212.55.88
222.216.3.245
222.240.178.20
222.240.205.187
222.244.207.20
222.244.227.118
222.67.138.89
222.69.172.211
222.78.213.143
222.82.118.17
222.85.135.35
222.85.179.28
222.90.252.37
222.93.131.121
239.255.255.250
58.210.181.143
58.211.230.85
58.211.98.252
58.212.139.20
58.216.213.50
58.251.60.34
58.251.63.113
58.34.152.31
58.39.95.57
58.60.67.252
58.61.39.208
58.61.39.209
58.61.39.211
58.61.39.212
58.61.39.213
58.61.39.214
58.61.39.216
58.61.39.225
58.61.39.231
58.62.225.226
59.36.97.33
59.37.235.139
59.41.235.120
59.45.106.97
59.49.198.52
59.49.74.155
59.52.5.103
59.56.82.54
60.165.214.1
60.171.159.172
60.176.120.145
60.176.127.173
60.176.47.194
60.178.56.210
60.186.239.81
60.191.14.67
60.191.211.18
60.28.14.158
60.28.14.45
60.28.232.13
60.28.232.21
61.146.118.99
61.153.6.178
61.154.122.212
61.172.120.238
61.173.123.26
61.177.75.244
61.183.55.218
61.183.55.225
65.55.137.200
78.61.39.211
121.9.209.15
116.18.220.173
116.21.170.34
116.227.24.132
117.88.214.74
121.10.105.151
121.10.105.152
121.11.69.108
121.14.76.213
121.205.192.202
121.229.149.54
121.32.155.52
121.33.246.172
121.9.209.3
121.9.209.7
124.227.192.180
124.236.92.176
124.40.134.114
124.72.193.116
125.115.86.151
125.119.26.125
125.126.172.156
125.71.23.136
125.77.153.47
125.91.133.252
125.91.203.86
125.91.93.157
192.111.4.26
202.38.64.8
203.91.44.162
218.0.130.247
218.18.113.239
218.18.17.48
218.22.71.166
218.60.11.2
218.6.128.32
218.78.192.166
218.92.216.59
218.94.36.224
219.129.229.252
219.129.83.2
219.130.213.20
219.134.255.45
219.136.244.101
220.166.36.18
220.173.136.250
220.173.136.252
220.173.222.202
220.181.12.208
220.181.12.209
220.184.188.39
221.225.154.48
221.239.147.215
221.239.153.203
222.137.116.12
222.181.117.80
222.182.82.239
222.185.248.36
222.187.198.2
222.191.242.60
222.209.42.121
222.212.55.88
222.216.3.245
222.240.178.20
222.240.205.187
222.244.207.20
222.244.227.118
222.67.138.89
222.69.172.211
222.78.213.143
222.82.118.17
222.85.135.35
222.85.179.28
222.90.252.37
222.93.131.121
239.255.255.250
58.210.181.143
58.211.230.85
58.211.98.252
58.212.139.20
58.216.213.50
58.251.60.34
58.251.63.113
58.34.152.31
58.39.95.57
58.60.67.252
58.61.39.208
58.61.39.209
58.61.39.211
58.61.39.212
58.61.39.213
58.61.39.214
58.61.39.216
58.61.39.225
58.61.39.231
58.62.225.226
59.36.97.33
59.37.235.139
59.41.235.120
59.45.106.97
59.49.198.52
59.49.74.155
59.52.5.103
59.56.82.54
60.165.214.1
60.171.159.172
60.176.120.145
60.176.127.173
60.176.47.194
60.178.56.210
60.186.239.81
60.191.14.67
60.191.211.18
60.28.14.158
60.28.14.45
60.28.232.13
60.28.232.21
61.146.118.99
61.153.6.178
61.154.122.212
61.172.120.238
61.173.123.26
61.177.75.244
61.183.55.218
61.183.55.225
65.55.137.200
78.61.39.211
121.9.209.15
©著作权归作者所有:来自51CTO博客作者skandbug的原创作品,如需转载,请注明出处,否则将追究法律责任
0
收藏
推荐专栏更多
猜你喜欢
我的友情链接
vSphere6总提示已弃用VMFS卷
IntelliJ Idea 常用快捷键列表
使用iLO远程管理HP系列服务器
搭建ELK日志分析平台(下)—— 搭建kibana和logstash服务器
python的排序函数sort,sorted在列表排序和字典排序中的应用详解和举例
Windows路由表详解
CentOS6.4+LAMP+Postfix+Dovecot+Postfixadmin+Roundcubemail 打造企业级邮件服务器 (1)
用Windows Storage Server 2008做iSCSI存储服务器
服务器排障 之 nginx 499 错误的解决
apache做反向代理服务器
常用邮箱、网盘地址列表
简述centOS 7系统用户和组的管理及配置
解析DELL R710服务器迁移操作内容
开学季出大事:某教育局丢失3台虚拟机
EVA4400存储虚拟机+数据库数据恢复成功案例
服务器数据恢复通用方法+服务器分区丢失恢复案例
在CentOS7上部署squid缓存服务器及代理功能
EMC 5400服务器raid阵列瘫痪数据恢复成功案例
服务器数据恢复案例 / raid5阵列多块硬盘离线处理方法
![f92360e227f9d91cdff7ea95120630ef.png](https://i-blog.csdnimg.cn/blog_migrate/224cfb471d126971b1596dad7c9cd022.png)
![left-qr.jpg](https://i-blog.csdnimg.cn/blog_migrate/70bc5c3884aa823724e684bce77428e2.jpeg)
扫一扫,领取大礼包
转载于:https://blog.51cto.com/skandbug/282558
Ctrl+Enter 发布
发布
取消