Can someone please explain how to get the correct markings for traffic to show in two Queues’s?
I have two Queues:
- a Internet-Q
- a WiFi-Access-Point-Q
When traffic is marked correctly I expect the traffic to show in the WiFi-AP-Q and in the Internet-Q
Please consider this:
- The output interface is eth1 bridged with PPPoE
- The WiFi AP is on eth10 in its own bride, and has a address list named ap1_addr_list.
Here is my Mangle Rules
35 ;;; OTHER
chain=output action=mark-connection new-connection-mark=other-conn passthrough=yes connection-state=new out-interface=pppoe-isp log=no log-prefix=""
36 chain=prerouting action=mark-connection new-connection-mark=other-conn-ap1 passthrough=yes connection-state=new src-address-list=ap1_addr_list log=no log-prefix=""
37 ;;; upload
chain=forward action=mark-packet new-packet-mark=other-out-pk passthrough=no connection-mark=other-conn out-interface=pppoe-isp log=no log-prefix=""
38 chain=prerouting action=mark-packet new-packet-mark=other-out-pk passthrough=no connection-mark=other-conn-ap1 in-interface=bridge_wifi_ap log=no log-prefix=""
39 ;;; download
chain=prerouting action=mark-packet new-packet-mark=other-in-pk passthrough=no connection-mark=other-conn in-interface=pppoe-isp log=no log-prefix=""
40 chain=postrouting action=mark-packet new-packet-mark=other-in-pk passthrough=no connection-mark=other-conn-ap1 out-interface=bridge_wifi_ap log=no log-prefix=""
Here is the internet Q (“my global Q”)
/queue tree
add bucket-size=0.01 max-limit=100M name=internet-in parent=global priority=3 queue=default
add bucket-size=0.01 max-limit=50M name=internet-out parent=global priority=3 queue=default
add bucket-size=0.01 name=other-out packet-mark=other-out-pk parent=internet-out queue=pcq-upload-default
add bucket-size=0.01 name=other-in packet-mark=other-in-pk parent=internet-in queue=pcq-download-default
Here is the WiFi AP Q
add bucket-size=0.01 max-limit=50M name=ap-in parent=global priority=1 queue=default
add bucket-size=0.01 max-limit=25M name=ap-out parent=global priority=2 queue=default
add name=other-out-ap packet-mark=other-out-pk parent=ap-out queue=pcq-upload-default
add name=other-in-ap packet-mark=other-in-pk parent=ap-in queue=pcq-download-default