ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 4886|回复: 5

[交流] 于松老师,请进.谢谢.

[复制链接]
发表于 2005-10-5 14:11:14 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

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

x
于松老师,公司4M带宽,我希望80 443 53 等端口的流量优先.可没匹配到流量,您帮我看下.下面是命令


0 ;;; 优先端口
chain=prerouting action=mark-connection new-connection-mark=Port
passthrough=yes protocol=tcp dst-port=443

1 chain=prerouting action=mark-connection new-connection-mark=Port
passthrough=yes protocol=tcp dst-port=3724

2 chain=prerouting action=mark-connection new-connection-mark=Port
passthrough=yes protocol=udp dst-port=8000

3 chain=prerouting action=mark-connection new-connection-mark=Port
passthrough=yes protocol=tcp dst-port=80

4 chain=prerouting action=mark-connection new-connection-mark=Port
passthrough=yes protocol=udp dst-port=53

5 chain=prerouting action=mark-packet new-packet-mark=Port-packet
passthrough=yes connection-mark=Port

6 ;;; 其他数据
chain=prerouting action=mark-connection new-connection-mark=Other
passthrough=yes

7 chain=prerouting action=mark-packet new-packet-mark=Other-packet
passthrough=yes connection-mark=Other


Flags: X - disabled, I - invalid
0 name="down" parent=global-in limit-at=0 queue=default priority=8
max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
发表于 2005-10-6 15:13:30 | 显示全部楼层
哦。是这样的 。谢谢了。
发表于 2005-10-7 01:24:01 | 显示全部楼层
回复 3# wpsliu


    改成NO是什么意思?
发表于 2005-10-11 00:23:15 | 显示全部楼层
我没做子队列,因为都没有流量触发
发表于 2005-10-11 06:01:16 | 显示全部楼层
回复  wpsliu


    改成NO是什么意思?
hechao0244 发表于 2011-1-11 20:20




每个连接只会有一个标记,如果前面标记过的connection且勾选了passthrough,后面条件符合该连接的时候就会标记成后面的连接。
说白点就是如果passthrough=no,那么,你当前标记的连接,不会向下匹配规则,也就不会因为下面的规则覆盖标记到.
发表于 2005-10-13 17:32:49 | 显示全部楼层
纯建议


先在mangle里把这两句的YES改成NO
5   chain=prerouting action=mark-packet new-packet-mark=Port-packet
    passthrough=no connection-mark=Port

7   chain=prerouting action=mark-packet new-packet-mark=Other-packet
    passthrough=no connection-mark=Other


然后修改Queue Tree,
0   name="down" parent=global-in limit-at=0 priority=8 max-limit=10M
     burst-limit=0 burst-threshold=0 burst-time=0s
max-limit=10M 表示总带宽,你自己看着修改
1   name=&quotort_down" parent=down packet-mark=Port limit-at=6M
     queue=default priority=1 max-limit=9M burst-limit=0 burst-threshold=0
     burst-time=0s

2   name="Other_down" parent=down packet-mark=Other limit-at=3M
     queue=default priority=8 max-limit=9M burst-limit=0 burst-threshold=0
     burst-time=0s
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-8-5 12:58 , Processed in 0.498329 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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