dy-router
发表于 2009-12-4 17:57:10
支持
qbs315
发表于 2009-12-4 22:29:12
顶你一下呀
zhanghui
发表于 2009-12-14 17:50:07
后背兄 值得学习啊
WGHBOY
发表于 2009-12-15 02:50:55
多谢顶顶
samboy
发表于 2009-12-15 07:27:55
鼎爷
WGHBOY
发表于 2009-12-15 16:29:22
;P
crack_ros
发表于 2009-12-15 17:15:04
这个NTH还是 之前2。9。7的版本啊
#限速设置部分
/queue type
add kind=pcq name=up pcq-classifier=src-address pcq-limit=50 pcq-rate=128000 \
pcq-total-limit=2000
add kind=pcq name=down pcq-classifier=dst-address pcq-limit=50 pcq-rate=\
1000000 pcq-total-limit=2000
set default-small kind=pfifo name=default-small pfifo-limit=10
/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
direction=download disabled=no dst-address=0.0.0.0/0 interface=all \
limit-at=0/0 max-limit=1000000/10000000 name=down parent=none priority=8 \
queue=up/down target-addresses=192.168.10.0/24 total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
direction=upload disabled=no dst-address=0.0.0.0/0 interface=all \
limit-at=0/0 max-limit=1000000/11000000 name=up parent=none priority=8 \
queue=up/down target-addresses=192.168.10.0/24 total-queue=default-small
#nth设置部分
/ip firewall mangle
add action=mark-connection chain=prerouting comment=nth_1 connection-state=\
new disabled=no new-connection-mark=nth_1 nth=5,1 passthrough=yes \
src-address=192.168.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_1 \
disabled=no new-routing-mark=routing_1 passthrough=no src-address=\
192.168.10.0/24
add action=mark-connection chain=prerouting comment=nth_2 connection-state=\
new disabled=no new-connection-mark=nth_2 nth=4,1 passthrough=yes \
src-address=192.168.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_2 \
disabled=no new-routing-mark=routing_2 passthrough=no src-address=\
192.168.10.0/24
add action=mark-connection chain=prerouting comment=nth_3 connection-state=\
new disabled=no new-connection-mark=nth_3 nth=3,1 passthrough=yes \
src-address=192.168.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_3 \
disabled=no new-routing-mark=routing_3 passthrough=no src-address=\
192.168.10.0/24
add action=mark-connection chain=prerouting comment=nth_4 connection-state=\
new disabled=no new-connection-mark=nth_4 nth=2,1 passthrough=yes \
src-address=192.168.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_4 \
disabled=no new-routing-mark=routing_4 passthrough=no src-address=\
192.168.10.0/24
add action=mark-connection chain=prerouting comment=nth_5 connection-state=\
new disabled=no new-connection-mark=nth_5 passthrough=yes src-address=\
192.168.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_5 \
disabled=no new-routing-mark=routing_5 passthrough=no src-address=\
192.168.10.0/24
/ip firewall nat
add action=masquerade chain=srcnat comment=1 connection-mark=nth_1 disabled=\
no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment=2 connection-mark=nth_2 disabled=\
no out-interface=pppoe-out2
add action=masquerade chain=srcnat comment=3 connection-mark=nth_3 disabled=\
no out-interface=pppoe-out3
add action=masquerade chain=srcnat comment=4 connection-mark=nth_4 disabled=\
no out-interface=pppoe-out4
add action=masquerade chain=srcnat comment=5 connection-mark=nth_5 disabled=\
no out-interface=pppoe-out5
add action=masquerade chain=srcnat comment=nat disabled=no
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out2 routing-mark=routing_2
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out3 routing-mark=routing_3
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out4 routing-mark=routing_4
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out1 routing-mark=routing_1
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out5 routing-mark=routing_5
htqt
发表于 2009-12-19 12:02:34
WGHBOY 大哥的作品 ,要顶顶~~
jkyunpan
发表于 2009-12-19 16:45:06
进来看看一下,多谢了。
vslzx
发表于 2010-1-21 23:36:55
下来看看,谢谢
imlaozhao
发表于 2010-1-22 11:07:29
能用在3.13 上 吗? 3.22没用过不知道有什么差别。。。
jzl168
发表于 2010-1-24 21:15:53
顶起来啊`呵呵`
heguo2008
发表于 2010-1-29 12:29:30
猛男是我的偶像!!!
asnijian
发表于 2010-2-4 05:24:27
111111111111111111111111111111111111111
TheHorizon
发表于 2010-2-7 22:17:14
今天刚好用到,翻出来看了一下。惊讶!肌肉男,果然厉害。再来顶顶。
页:
1
2
3
4
5
6
[7]
8
9
10
11