I have 192.168.2.0/24 set up to go through a vpn(pptp client) and would like for it to go through the queue tree.
Does anyone have any ideas on how to mangle the packet marks for qos?
It is still not completely clear to me what is the goal.Thanks for your suggestions. I didn't realize the packet marks were dropped when they went through the vpn. Here are all the mangle rules for the vpn:
add action=mark-routing chain=prerouting comment=vpn new-routing-mark=vpn-rt passthrough=no src-address=192.168.2.0/24
add action=mark-packet chain=prerouting in-interface=vpn new-packet-mark=vpn-dn passthrough=no
add action=mark-packet chain=output new-packet-mark=vpn-up out-interface=ether1 passthrough=no
I had to mark the packet in both directions to get it to work, but I'm not sure if this is the best way of doing it. Is there a better/more efficient way, or is this it?
add action=mark-packet chain=output new-packet-mark=vpn-up out-interface=ether1 passthrough=no
To be able to control bandwidth, one have to account for it all. That's what that rule is for: all packets with that tag will be accounted for under the right leaf of queue tree.[*]But why the second rule should be necessary for it to work is not clear to me - are you throttling packets which come via VPN to leave more bandwidth for other download traffic? Because if you want to prioritize them instead, it cannot work as priority depends on the sending remote side.