Queue Tree and Mangle Rules Example?

Hey,

Basically I have a computer 10.0.0.40 which both connects to a server on the internet and accepts connections via DST-NAT from the internet. I want to prioritize the traffic to and from that device ONLY to and from the internet lower than ALL other traffic. I don’t want to rate control anything locally (e.g. 10.0.0.20 connections to 10.0.0.40).

Do anyone happen to have an example of something like that? I somehow just can’t seem to a) find a good example of mangling rules/queue trees for that and b) cannot seem to figure it out myself. Thanks.

-Eric

This is what I have for my mangle rules so far. Would these work?

 

add connection-state=new protocol=tcp dst-port=22 dst-address=10.0.0.40/32 out-interface=bridge-local in-interface=ether1-gateway chain=forward action=mark-connection new-connection-mark=inbound passthrough=yes
add connection-mark=inbound chain=forward action=mark-packet new-packet-mark=inbound

add connection-state=new protocol=tcp dst-port=56565 src-address=10.0.0.40/32 out-interface=ether1-gateway  in-interface=bridge-local chain=forward action=mark-connection new-connection-mark=outbound passthrough=yes
add connection-mark=outbound chain=forward action=mark-packet new-packet-mark=outbound

add connection-state=new out-interface=ether1-gateway in-interface=bridge-local action=mark-connection new-connection-mark=other-outbound chain=forward
add connection-mark=other-outbound chain=forward action=mark-packet new-packet-mark=other-outbound

Can anyone help fixing those and help with how to set up the queues?

Sent from my SCH-I545 using Tapatalk 2