Hey,
I am trying to set up QOS using queue tree, however I am struggling to mark a related connections. To be more specific, I want to mark all BitTorrent traffic, so in order to achieve this I have specified in BitTorrent client (uTorrent) to use port 60464. In Mangle, I am marking all connections and packets for this port:
/ip firewall mangle
add action=mark-connection chain=prerouting comment="TORRENT connections" connection-mark=no-mark \
connection-state=new layer7-protocol=L7-torrent-sites new-connection-mark=torrent-mark \
passthrough=yes
add action=mark-connection chain=prerouting comment="TORRENT connections" connection-mark=no-mark \
connection-state=new layer7-protocol=L7-Torrent new-connection-mark=torrent-mark passthrough=yes
add action=mark-connection chain=prerouting comment="TORRENT connections" connection-mark=no-mark \
connection-state=new new-connection-mark=torrent-mark passthrough=yes protocol=udp src-port=\
60464
add action=mark-packet chain=prerouting comment="TORRENT packets" connection-mark=torrent-mark \
new-packet-mark=torrent-mark passthrough=no
/ip firewall layer7-protocol
add name=L7-torrent-sites regexp="^.*(get|GET).+(torrent|thepiratebay|isohunt|entertane|demonoid|btju\
nkie|mininova|flixflux|torrentz|vertor|h33t|btscene|bitunity|bittoxic|thunderbytes|entertane|zooz\
le|vcdq|bitnova|bitsoup|meganova|fulldls|btbot|flixflux|seedpeer|fenopy|gpirate|linkomanija|commo\
nbits).*\$"
add name=L7-Torrent regexp="^(\\x13bittorrent protocol|azver\\x01\$|get /scrape\\\?info_hash=get /ann\
ounce\\\?info_hash=|get /client/bitcomet/|GET /data\\\?fid=)|d1:ad2:id20:|\\x08'7P\\)[RP]"
However I have noticed that majority of traffic appears to happen on a different port, not on 60464. Although the traffic is being initiated under this port.
The question is - how can i mark the related traffic? In the rule i can select that this is for related connections, however how do I specify for which connection it is related?
