网吧多线上传标记
网吧出口为三条PPPOE拨号光纤,使用PCCA进行带宽叠加,对于上传,网上教程,有的只标记一次连接,在根据该连接标记上传包;
17 ;;; DNS
chain=prerouting action=mark-connection new-connection-mark=small_conn
passthrough=yes src-address-list=lan_ip layer7-protocol=DNS
18 chain=postrouting action=mark-packet new-packet-mark=dns_up passthrough=n>
src-address-list=lan_ip connection-mark=small_conn
19 chain=prerouting action=mark-packet new-packet-mark=dns_down
passthrough=no src-address-type=!local connection-mark=small_conn
有的分别标记到三个出口的连接,在根据该连接标记上传包
90 ;;; DNS
chain=prerouting action=mark-connection new-connection-mark=DNS
passthrough=yes protocol=udp dst-port=53
91 chain=prerouting action=mark-packet new-packet-mark=DNS passthrough=yes
connection-mark=DNS
92 chain=postrouting action=mark-connection new-connection-mark=DNS_up
passthrough=yes protocol=udp dst-port=53
93 I chain=postrouting action=mark-packet new-packet-mark=DNS_up passthrough=n>
out-interface=pppoe-out1 connection-mark=DNS_up
94 I chain=postrouting action=mark-packet new-packet-mark=DNS_up passthrough=n>
out-interface=pppoe-out2 connection-mark=DNS_up
95 I chain=postrouting action=mark-packet new-packet-mark=DNS_up passthrough=n>
out-interface=pppoe-out3 connection-mark=DNS_up
请有实战经验的高手谈谈这两种标记有何不同,效果哪一种好点 我公司双光纤,用的是第一种,不错
页:
[1]