找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3043|回复: 9

[其它] 到底防火墙有必要要那么专业的设置吗?网吧应用

[复制链接]
发表于 2006-9-13 13:20:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
刚开始做ros,潜了一个月水,从不会到会做,只是停留在会做。还不能灵活应用ROS的强大功能,我的网吧是200来台机器电信+网通双线策略,什么都做好了,就差最后防火墙策略,在网上收集很多资料,也看了很多帖子,但就是理不出一个思路来,防火墙这边网吧除了要禁P2P,防止外网登陆外
别的有必要要那么复杂的设置吗?搜集很多好心人提供的防火墙策略,实在是不敢用,不敢往上加,现在看运行情况,一直很稳定,没有出现什么异常。再看看论坛的防火墙方面的帖子,有很多有关防火墙方面出现的问题,所以大家可不可以给出个解释,在不影响速度和稳定的前提下,有没必要设置专业防火墙?如果有我应该从那方面着手?
routeros
发表于 2006-9-13 14:21:10 | 显示全部楼层
不是有必要,是相当有必要了!
routeros
回复

使用道具 举报

发表于 2006-9-26 18:13:27 | 显示全部楼层
有必要,如果你不想内网设置太麻烦的话 ,可以不开WINXP的防火墙,用ROS把大部分的病毒和网上攻击给挡住,再加个还原卡,有问题重新启动就能解决了,否则每个机器玩的游戏端口都不一样,每个去搞的话烦死你
routeros
回复

使用道具 举报

发表于 2006-9-28 14:23:08 | 显示全部楼层

我在这里顶一下!目的是进来讨论一下!

我也刚学会做ROS!防火墙这方面就是里不出个头绪来!
routeros
回复

使用道具 举报

发表于 2006-9-28 23:02:39 | 显示全部楼层
P2P不用禁,做个整体限速就可以了,我的防火墙规则是/ ip firewall filter
ad ch input pr tcp dst-po 82 act drop comm Worm.NetSky.Y@mm
ad ch input pr tcp dst-po 113 act drop comm W32.Korgo.A/B/C/D/E/F-1
ad ch input pr tcp dst-po 2041 act drop comm W33.Korgo.A/B/C/D/E/F-2
ad ch input pr tcp dst-po 3067 act drop comm W32.Korgo.A/B/C/D/E/F-3
ad ch input pr tcp dst-po 6667 act drop comm W32.Korgo.A/B/C/D/E/F-4
ad ch input pr tcp dst-po 445 act drop comm W32.Korgo.A/B/C/D/E/F-5660
ad ch input pr tcp dst-po 1000-1001 act drop comm Backdoor.Nibu.B-1
ad ch input pr tcp dst-po 2283 act drop comm Backdoor.Nibu.B-2
ad ch input pr tcp dst-po 10000 act drop comm Backdoor.Nibu.E/G/H
ad ch input pr tcp dst-po 3422 act drop comm Backdoor.IRC.Aladinz.R-1
ad ch input pr tcp dst-po 43958 act drop comm Backdoor.IRC.Aladinz.R-2
ad ch input pr tcp dst-po 5554 act drop comm W32.Dabber.A/B-1
ad ch input pr tcp dst-po 8967 act drop comm W32.Dabber.A/B-2
ad ch input pr tcp dst-po 9898-9999 act drop comm W32.Dabber.A/B-3
ad ch input pr tcp dst-po 6789 act drop comm Worm.NetSky.S/T/U@mm
ad ch input pr tcp dst-po 8787 act drop comm Back.Orifice.2000.Trojan-1
ad ch input pr tcp dst-po 8879 act drop comm Back.Orifice.2000.Trojan-2
ad ch input pr tcp dst-po 31666 act drop comm Back.Orifice.2000.Trojan-3
ad ch input pr tcp dst-po 31337-31338 act drop comm Back.Orifice.2000.Trojan-4
ad ch input pr tcp dst-po 54320-54321 act drop comm Back.Orifice.2000.Trojan-5
ad ch input pr tcp dst-po 12345-12346 act drop comm Block.NetBus.Trojan-1
ad ch input pr tcp dst-po 20034 act drop comm Block.NetBus.Trojan-2
ad ch input pr tcp dst-po 21554 act drop comm GirlFriend.Trojan-1
ad ch input pr tcp dst-po 41 act drop comm DeepThroat.Trojan-1
ad ch input pr tcp dst-po 3150 act drop comm DeepThroat.Trojan-2
ad ch input pr tcp dst-po 999 act drop comm DeepThroat.Trojan-3
ad ch input pr tcp dst-po 6670 act drop comm DeepThroat.Trojan-4
ad ch input pr tcp dst-po 6771 act drop comm DeepThroat.Trojan-5
ad ch input pr tcp dst-po 60000 act drop comm DeepThroat.Trojan-6
ad ch input pr tcp dst-po 2140 act drop comm DeepThroat.Trojan-7
ad ch input pr tcp dst-po 10067 act drop comm Portal.of.Doom.Trojan-1
ad ch input pr tcp dst-po 10167 act drop comm Portal.of.Doom.Trojan-2
ad ch input pr tcp dst-po 3700 act drop comm Portal.of.Doom.Trojan-3
ad ch input pr tcp dst-po 9872-9875 act drop comm Portal.of.Doom.Trojan-4
ad ch input pr tcp dst-po 6883 act drop comm Delta.Source.Trojan-1
ad ch input pr tcp dst-po 26274 act drop comm Delta.Source.Trojan-2
ad ch input pr tcp dst-po 4444 act drop comm Delta.Source.Trojan-3
ad ch input pr tcp dst-po 47262 act drop comm Delta.Source.Trojan-4
ad ch input pr tcp dst-po 3791 act drop comm Eclypse.Trojan-1
ad ch input pr tcp dst-po 3801 act drop comm Eclypse.Trojan-2
ad ch input pr tcp dst-po 65390 act drop comm Eclypse.Trojan-3
ad ch input pr tcp dst-po 5880-5882 act drop comm Y3K.RAT.Trojan-1
ad ch input pr tcp dst-po 5888-5889 act drop comm Y3K.RAT.Trojan-2
ad ch input pr tcp dst-po 30100-30103 act drop comm NetSphere.Trojan-1
ad ch input pr tcp dst-po 30133 act drop comm NetSphere.Trojan-2
ad ch input pr tcp dst-po 7300-7301 act drop comm NetMonitor.Trojan-1
ad ch input pr tcp dst-po 7306-7308 act drop comm NetMonitor.Trojan-2
ad ch input pr tcp dst-po 79 act drop comm FireHotcker.Trojan-1
ad ch input pr tcp dst-po 5031 act drop comm FireHotcker.Trojan-2
ad ch input pr tcp dst-po 5321 act drop comm FireHotcker.Trojan-3
ad ch input pr tcp dst-po 6400 act drop comm TheThing.Trojan-1
ad ch input pr tcp dst-po 7777 act drop comm TheThing.Trojan-2
ad ch input pr tcp dst-po 1047 act drop comm GateCrasher.Trojan-1
ad ch input pr tcp dst-po 6969-6970 act drop comm GateCrasher.Trojan-2
ad ch input pr tcp dst-po 2774 act drop comm SubSeven-1
ad ch input pr tcp dst-po 27374 act drop comm SubSeven-2
ad ch input pr tcp dst-po 1243 act drop comm SubSeven-3
ad ch input pr tcp dst-po 1234 act drop comm SubSeven-4
ad ch input pr tcp dst-po 6711-6713 act drop comm SubSeven-5
ad ch input pr tcp dst-po 16959 act drop comm SubSeven-7
ad ch input pr tcp dst-po 11000 act drop comm Senna.Spy.Trojan-1
ad ch input pr tcp dst-po 13000 act drop comm Senna.Spy.Trojan-2
ad ch input pr tcp dst-po 25685-25686 act drop comm Moonpie.Trojan-1
ad ch input pr tcp dst-po 25982 act drop comm Moonpie.Trojan-2
ad ch input pr tcp dst-po 1024-1030 act drop comm NetSpy.Trojan-1
ad ch input pr tcp dst-po 1033 act drop comm NetSpy.Trojan-2
ad ch input pr tcp dst-po 31337-31339 act drop comm NetSpy.Trojan-3
ad ch input pr tcp dst-po 8102 act drop comm Trojan
ad ch input pr tcp dst-po 7306 act drop comm Netspy3.0Trojan
ad ch input pr tcp dst-po 8011 act drop comm WAY.Trojan
ad ch input pr tcp dst-po 7626 act drop comm Trojan.BingHe
ad ch input pr tcp dst-po 19191 act drop comm Trojan.NianSeHoYian
ad ch input pr tcp dst-po 23444-23445 act drop comm NetBull.Trojan
ad ch input pr tcp dst-po 2583 act drop comm WinCrash.Trojan-1
ad ch input pr tcp dst-po 3024 act drop comm WinCrash.Trojan-2
ad ch input pr tcp dst-po 4092 act drop comm WinCrash.Trojan-3
ad ch input pr tcp dst-po 5714 act drop comm WinCrash.Trojan-4
ad ch input pr tcp dst-po 1010-1012 act drop comm Doly1.0/1.35/1.5trojan-1
ad ch input pr tcp dst-po 1015 act drop comm Doly1.0/1.35/1.5trojan-2
ad ch input pr tcp dst-po 1999-2005 act drop comm TransScout.Trojan-1
ad ch input pr tcp dst-po 9878 act drop comm TransScout.Trojan-2
ad ch input pr tcp dst-po 2773 act drop comm Backdoor.YAI..Trojan-1
ad ch input pr tcp dst-po 7215 act drop comm Backdoor.YAI.Trojan-2
ad ch input pr tcp dst-po 54283 act drop comm Backdoor.YAI.Trojan-3
ad ch input pr tcp dst-po 1003 act drop comm BackDoorTrojan-1
ad ch input pr tcp dst-po 5598 act drop comm BackDoorTrojan-2
ad ch input pr tcp dst-po 5698 act drop comm BackDoorTrojan-3
ad ch input pr tcp dst-po 2716 act drop comm PrayerTrojan-1
ad ch input pr tcp dst-po 9999 act drop comm PrayerTrojan-2
ad ch input pr tcp dst-po 21544 act drop comm SchwindlerTrojan-1
ad ch input pr tcp dst-po 31554 act drop comm SchwindlerTrojan-2
ad ch input pr tcp dst-po 18753 act drop comm Shaft.DDoS.Trojan-1
ad ch input pr tcp dst-po 20432 act drop comm Shaft.DDoS.Trojan-2
ad ch input pr tcp dst-po 65000 act drop comm Devil.DDoS.Trojan
ad ch input pr tcp dst-po 11831 act drop comm LatinusTrojan-1
ad ch input pr tcp dst-po 29559 act drop comm LatinusTrojan-2
ad ch input pr tcp dst-po 1784 act drop comm Snid.X2Trojan-1
ad ch input pr tcp dst-po 3586 act drop comm Snid.X2Trojan-2
ad ch input pr tcp dst-po 7609 act drop comm Snid.X2Trojan-3
ad ch input pr tcp dst-po 12348-12349 act drop comm BionetTrojan-1
ad ch input pr tcp dst-po 12478 act drop comm BionetTrojan-2
ad ch input pr tcp dst-po 57922 act drop comm BionetTrojan-3
ad ch input pr tcp dst-po 3127-3198 act drop comm Worm.Novarg.a.Mydoom.a.-1
ad ch input pr tcp dst-po 4444 act drop comm Worm.MsBlaster-1
ad ch input pr tcp dst-po 6777 act drop comm Worm.BBeagle.a.Bagle.a.
ad ch input pr tcp dst-po 8866 act drop comm Worm.BBeagle.b
ad ch input pr tcp dst-po 2745 act drop comm Worm.BBeagle.c-g/j-l
ad ch input pr tcp dst-po 2556 act drop comm Worm.BBeagle.p/q/r/n
ad ch input pr tcp dst-po 20742 act drop comm Worm.BBEagle.m-2
ad ch input pr tcp dst-po 4751 act drop comm Worm.BBeagle.s/t/u/v
ad ch input pr tcp dst-po 2535 act drop comm Worm.BBeagle.aa/ab/w/x-z-2
ad ch input pr tcp dst-po 5238 act drop comm Worm.LovGate.r.RpcExploit
ad ch input pr tcp dst-po 1068 act drop comm Worm.Sasser.a
ad ch input pr tcp dst-po 5554 act drop comm Worm.Sasser.b/c/f
ad ch input pr tcp dst-po 9996 act drop comm Worm.Sasser.b/c/f
ad ch input pr tcp dst-po 9995 act drop comm Worm.Sasser.d
ad ch input pr tcp dst-po 10168 act drop comm Worm.Lovgate.a/b/c/d
ad ch input pr tcp dst-po 20808 act drop comm Worm.Lovgate.v.QQ
ad ch input pr tcp dst-po 1092 act drop comm Worm.Lovgate.f/g
ad ch input pr tcp dst-po 20168 act drop comm Worm.Lovgate.f/g
ad ch input pr tcp dst-po 1363-1364 act drop comm ndm.requester
ad ch input pr tcp dst-po 1368 act drop comm screen.cast
ad ch input pr tcp dst-po 1373 act drop comm hromgrafx
ad ch input pr tcp dst-po 1377 act drop comm cichlid
ad ch input pr tcp dst-po 3410 act drop comm Backdoor.OptixPro
ad ch input pr tcp dst-po 135-139 act drop
ad ch input pr tcp dst-po 7000 act drop
add chain=input protocol=tcp dst-port=69 action=drop
add chain=input protocol=tcp dst-port=161-162 action=drop
add chain=input protocol=tcp dst-port=52 action=drop
add chain=input protocol=tcp dst-port=54 action=drop
add chain=input protocol=tcp dst-port=416 action=drop
add chain=input protocol=tcp dst-port=420 action=drop
add chain=input protocol=tcp dst-port=514 action=drop
add chain=input protocol=tcp dst-port=555 action=drop
add chain=input protocol=tcp dst-port=559 action=drop
add chain=input protocol=tcp dst-port=666 action=drop
add chain=input protocol=tcp dst-port=669 action=drop
add chain=input protocol=tcp dst-port=743 action=drop
add chain=input protocol=udp dst-port=743 action=drop
add chain=input protocol=tcp dst-port=901 action=drop
add chain=input protocol=tcp dst-port=1013 action=drop
add chain=input protocol=tcp dst-port=1042 action=drop
add chain=input protocol=tcp dst-port=1203 action=drop
add chain=input protocol=tcp dst-port=1088 action=drop
add chain=input protocol=tcp dst-port=1111 action=drop
add chain=input protocol=tcp dst-port=1234 action=drop
add chain=input protocol=tcp dst-port=1241 action=drop
add chain=input protocol=tcp dst-port=1243 action=drop
add chain=input protocol=tcp dst-port=1433 action=drop
add chain=input protocol=tcp dst-port=2022 action=drop
add chain=input protocol=tcp dst-port=2023 action=drop
add chain=input protocol=tcp dst-port=3000 action=drop
add chain=input protocol=tcp dst-port=3332 action=drop
add chain=input protocol=tcp dst-port=4006 action=drop
add chain=input protocol=tcp dst-port=4889 action=drop
add chain=input protocol=tcp dst-port=5800 action=drop
add chain=input protocol=tcp dst-port=5900 action=drop
add chain=input protocol=tcp dst-port=6129 action=drop
add chain=input protocol=tcp dst-port=6267 action=drop
add chain=input protocol=tcp dst-port=6720 action=drop
add chain=input protocol=tcp dst-port=7000-7001 action=drop
add chain=input protocol=tcp dst-port=7306 action=drop
add chain=input protocol=tcp dst-port=8000 action=drop
add chain=input protocol=tcp dst-port=8888 action=drop
add chain=input protocol=tcp dst-port=11927 action=drop
add chain=input protocol=tcp dst-port=15804 action=drop
add chain=input protocol=tcp dst-port=16660 action=drop
add chain=input protocol=tcp dst-port=16661 action=drop
add chain=input protocol=tcp dst-port=17300 action=drop
add chain=forward protocol=tcp src-port=5354 action=drop
add chain=forward protocol=tcp src-port=9000 action=drop
add chain=forward protocol=tcp src-port=9099 action=drop
add chain=input protocol=tcp dst-port=1080 action=drop
add chain=input protocol=tcp dst-port=5554 action=drop
add chain=input protocol=tcp dst-port=8866 action=drop
add chain=input protocol=tcp dst-port=65506 action=drop
add chain=input protocol=tcp dst-port=593 act drop
add chain=input protocol=tcp dst-port=1214 act drop


ad ch input pr udp dst-po 135-139 act drop
ad ch input pr udp dst-po 8787 act drop comm Back.Orifice.2000.Trojan-6
ad ch input pr udp dst-po 8879 act drop comm Back.Orifice.2000.Trojan-7
ad ch input pr udp dst-po 31666 act drop comm Back.Orifice.2000.Trojan-8
ad ch input pr udp dst-po 31337-31338 act drop comm Back.Orifice.2000.Trojan-9
ad ch input pr udp dst-po 54320-54321 act drop comm Back.Orifice.2000.Trojan-10
ad ch input pr udp dst-po 12345-12346 act drop comm Block.NetBus.Trojan-3
ad ch input pr udp dst-po 20034 act drop comm Block.NetBus.Trojan-4
ad ch input pr udp dst-po 21554 act drop comm GirlFriend.Trojan-2
ad ch input pr udp dst-po 41 act drop comm DeepThroat.Trojan-8
ad ch input pr udp dst-po 3150 act drop comm DeepThroat.Trojan-9
ad ch input pr udp dst-po 999 act drop comm DeepThroat.Trojan-10
ad ch input pr udp dst-po 6670 act drop comm DeepThroat.Trojan-11
ad ch input pr udp dst-po 6771 act drop comm DeepThroat.Trojan-12
ad ch input pr udp dst-po 60000 act drop comm DeepThroat.Trojan-13
ad ch input pr udp dst-po 10067 act drop comm Portal.of.Doom.Trojan-5
ad ch input pr udp dst-po 10167 act drop comm Portal.of.Doom.Trojan-6
ad ch input pr udp dst-po 3700 act drop comm Portal.of.Doom.Trojan-7
ad ch input pr udp dst-po 9872-9875 act drop comm Portal.of.Doom.Trojan-8
ad ch input pr udp dst-po 6883 act drop comm Delta.Source.Trojan-5
ad ch input pr udp dst-po 26274 act drop comm Delta.Source.Trojan-6
ad ch input pr udp dst-po 44444 act drop comm Delta.Source.Trojan-7
ad ch input pr udp dst-po 47262 act drop comm Delta.Source.Trojan-8
ad ch input pr udp dst-po 3791 act drop comm Eclypse.Trojan-1
ad ch input pr udp dst-po 3801 act drop comm Eclypse.Trojan-2
ad ch input pr udp dst-po 5880-5882 act drop comm Eclypse.Trojan-3
ad ch input pr udp dst-po 5888-5889 act drop comm Eclypse.Trojan-4
ad ch input pr udp dst-po 34555 act drop comm Trin00.DDoS.Trojan-1
ad ch input pr udp dst-po 35555 act drop comm Trin00.DDoS.Trojan-2
ad ch input pr udp dst-po 31338 act drop comm NetSpy.DK.Trojan-1
ad ch input pr udp dst-po 69 act drop comm Worm.MsBlaster-2
ad ch input pr udp dst-po 123 act drop comm Worm.Sobig.f-1
ad ch input pr udp dst-po 995-999 act drop comm Worm.Sobig.f-2
ad ch input pr udp dst-po 8998 act drop comm Worm.Sobig.f-3
ad ch input pr udp dst-po 79 act drop
ad ch input pr udp dst-po 1024-1030 act drop
ad ch output pr tcp dst-po 1029 act drop
ad ch input pr udp dst-po 1000-1001 act drop
ad ch input pr udp dst-po 5238 act drop
ad ch input pr udp dst-po 445 act drop
ad ch input pr udp dst-po 9898-9999 act drop
ad ch input pr udp dst-po 4444 act drop
ad ch input pr udp dst-po 10000 act drop
ad ch input pr udp dst-po 7000 act drop
add chain=input protocol=udp dst-port=1433-1434 action=drop
add chain=input protocol=udp dst-port=1900 action=drop
add chain=input protocol=udp dst-port=161-162 action=drop
add chain=input protocol=udp dst-port=555 action=drop
add chain=input protocol=udp dst-port=15804 action=drop
add chain=input protocol=udp dst-port=11927 action=drop
add chain=input protocol=udp dst-port=8888 action=drop
add chain=input protocol=udp dst-port=8000 action=drop
add chain=input protocol=udp dst-port=8225 action=drop
add chain=input protocol=udp dst-port=7306 action=drop
add chain=input protocol=udp dst-port=6720 action=drop
add chain=input protocol=udp dst-port=6267 action=drop
add chain=input protocol=udp dst-port=6129 action=drop
add chain=input protocol=udp dst-port=5900 action=drop
add chain=input protocol=udp dst-port=5800 action=drop
add chain=input protocol=udp dst-port=2023 action=drop
add chain=input protocol=udp dst-port=1203 action=drop
add chain=input protocol=udp dst-port=1042 action=drop
add chain=input protocol=udp dst-port=995 action=drop
add chain=input protocol=udp dst-port=996-999 action=drop
add chain=input protocol=udp dst-port=420 action=drop
add chain=output protocol=udp dst-port=67-68 action=drop
add chain=input protocol=udp dst-port=416 action=drop
用到现在不错,for 2.9.6
routeros
回复

使用道具 举报

发表于 2006-9-29 03:36:12 | 显示全部楼层
我一条规则都不用,一样设置都不用,可能拖的少吧,反正,我自己开了20台机子,分别同时用迅雷下了三个热门软件。OFFISC2003 2007 CAD2006 跑到85M,其他人照样上网,看电影,聊天,下载,呵,再增了几台也没事,哈哈
routeros
回复

使用道具 举报

发表于 2006-9-29 08:57:11 | 显示全部楼层
还是加上好!我同意  辉哥得想法!
routeros
回复

使用道具 举报

发表于 2006-9-29 15:30:15 | 显示全部楼层
死搬硬套
不起作用!
routeros
回复

使用道具 举报

发表于 2006-10-1 15:58:26 | 显示全部楼层
没有必要的,因为很多网游使用很多端口,设置太多会影响网游更新.最重要的是不能禁止P2P下载
routeros
回复

使用道具 举报

发表于 2006-10-1 16:53:28 | 显示全部楼层
上边的防火墙,说它专业的是你根本就没有理解iptables的input .output,forward,三个链的区别,

至于其它的,我不想说多,

如果你非要说是mikrotik的路由里边就是那样的话,我只说你是死搬硬套,没有作用!
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-9-28 13:24 , Processed in 0.144365 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表