找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: yangliusp

[其它] 发个比讯雷还狠的H片下载器.

[复制链接]
发表于 2007-10-7 02:14:16 | 显示全部楼层
好像用limit模块可以限制..
routeros
回复

使用道具 举报

发表于 2008-8-5 11:49:13 | 显示全部楼层
方法很简单,效果不一般! i 不对之处欢迎拍砖!!!


/ ip firewall mangle
add chain=prerouting src-address=10.200.0.0/15 protocol=udp \
    src-port=1000-65535 packet-size=800-1500 src-address-list=p2p-udp \
    action=mark-packet new-packet-mark=P2PUP passthrough=yes comment="P2P-UDP" \
    disabled=no
add chain=prerouting src-address=10.200.0.0/16 protocol=!tcp \
    connection-limit=15,32 action=add-src-to-address-list address-list=p2p-udp \
    address-list-timeout=30s comment="" disabled=no
add chain=prerouting src-address=10.200.0.0/15 protocol=tcp dst-port=!80 \
    packet-size=800-1500 src-address-list=p2p-20 action=mark-packet \
    new-packet-mark=P2PUP passthrough=yes comment="P2P-TCP" disabled=no
add chain=prerouting src-address=10.200.0.0/15 protocol=tcp dst-port=!80 \
    connection-limit=20,32 packet-size=800-1500 action=add-src-to-address-list \
    address-list=p2p-20 address-list-timeout=30s comment="" disabled=no
#注意10.200.0.0/15是我内网源地址,你使用前改成你的源.

/ queue simple
add name="P2P-all" dst-address=0.0.0.0/0 interface=ydwan parent=none \
    packet-marks=P2PUP direction=download priority=8 queue=Pcq_UP_C/Pcq_UP_C \
    limit-at=64000/64000 max-limit=200000/128000 total-queue=default-small \
    disabled=no

#queue=Pcq_UP_C  自己建一个PCQ
#interface=ydwan 是ROS出口,我内网全是PPPOE上网,所以只好用出口限制.
#以是只是限制了P2P上传流量,别的限制应该很简单了.

/ ip firewall filter
add chain=forward protocol=udp src-port=10000-65535 \
    time=20h-23h,sat,fri,thu,wed,tue,mon,sun src-address-list=p2p-udp \
    action=drop comment="P2P-UDP" disabled=no
#再加个drop也很不错
routeros
回复

使用道具 举报

发表于 2008-8-5 12:33:12 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2008-8-5 19:57:41 | 显示全部楼层
病毒50%都是从那来的 !!!
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-17 10:40 , Processed in 0.083784 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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