the most important for traffic management are those who manage everything the way I would say qosify does,
you are free to use either the first or the second version,
# Unmarked TCP traffic
meta nfproto ipv4 tcp sport != { 80, 443, 8080, 1935-1936, 2396, 2935 } tcp dport != { 80, 443, 8080, 1935-1936, 2396, 2935 } meta mark != 75 meta length 0-575 ip dscp cs1 counter meta mark set 80 comment \"Packet mark for unmarked TCP traffic of packet lengths between 0 and 575 bytes\"
meta nfproto ipv4 meta l4proto tcp meta length 0-575 ct direction reply meta mark 80 counter ip dscp set af41 comment \"Prioritize ingress unmarked traffic of packet lengths between 0 and 575 bytes to AF41 \(TCP\)\"
meta nfproto ipv4 meta l4proto tcp meta length 0-77 ct direction original meta mark 80 counter ip dscp set cs0 comment \"Prioritize egress unmarked traffic of packet lengths between 0 and 77 bytes to CS0 \(TCP\)\"
meta nfproto ipv4 meta l4proto tcp meta length 77-575 limit rate 230/second ct direction original meta mark 80 counter ip dscp set af41 comment \"Prioritize egress unmarked traffic of packet lengths between 77 and 575 bytes to AF41 \(TCP\)\"
meta nfproto ipv4 meta l4proto tcp meta length 77-575 limit rate over 230/second ct direction original meta mark 80 counter ip dscp set cs0 comment \"Deprioritize egress unmarked traffic of packet lengths between 77 and 575 bytes that have more than 230 pps to CS0 \(TCP\)\"
# Unmarked UDP traffic (Some games also tend to use really tiny packets on upload side (same range as ACKs))
meta nfproto ipv4 udp sport != { 80, 443 } udp dport != { 80, 443 } meta mark != 75 meta length 0-1256 limit rate over 230/second burst 100 packets ip dscp cs1 counter meta mark set 85 comment \"Packet mark for unmarked UDP traffic of packet lengths between 0 and 1256 bytes that have more than 230 pps\"
meta nfproto ipv4 meta l4proto udp numgen random mod 1000 \< 5 meta mark 85 counter meta mark set 0 comment \""0.5%" probability of unmark a packet that go over 230 pps to be prioritized to CS4 \(UDP\)\"
meta nfproto ipv4 meta l4proto udp meta length 0-77 ct direction reply meta mark 85 counter ip dscp set af41 comment \"Prioritize ingress unmarked traffic of packet lengths between 0 and 77 bytes that have more than 230 pps to AF41 \(UDP\)\"
meta nfproto ipv4 meta l4proto udp meta length 0-77 ct direction original meta mark 85 counter ip dscp set cs0 comment \"Prioritize egress unmarked traffic of packet lengths between 0 and 77 bytes that have more than 230 pps to CS0 \(UDP\)\"
meta nfproto ipv4 udp sport != { 80, 443 } udp dport != { 80, 443 } meta mark != { 75, 85 } meta length 0-1256 ip dscp cs1 counter ip dscp set cs4 comment \"Prioritize unmarked traffic of packet lengths between 0 and 1256 bytes that have less than 230 pps to CS4 \(UDP\) - Gaming "&" VoIP\"
second version
# Unmarked TCP traffic
meta nfproto ipv4 tcp sport != { 80, 443, 8080, 1935-1936, 2396, 2935 } tcp dport != { 80, 443, 8080, 1935-1936, 2396, 2935 } meta mark != { 40, 41 } meta length 0-1256 limit rate over 200/second burst 100 packets ip dscp cs1 counter meta mark set 45 comment \"Packet mark for unmarked TCP traffic of packet lengths between 0 and 575 bytes\"
meta nfproto ipv4 meta l4proto tcp numgen random mod 1000 \< 5 meta mark 45 counter meta mark set 0 comment \"Prioritize ingress unmarked traffic of packet lengths between 0 and 575 bytes to AF41 \(TCP\)\"
meta nfproto ipv4 meta l4proto tcp meta length 0-77 ct direction reply meta mark 45 counter ip dscp set af41 comment \"Prioritize egress unmarked traffic of packet lengths between 0 and 77 bytes to CS0 \(TCP\)\"
meta nfproto ipv4 meta l4proto tcp meta length 0-77 ct direction original meta mark 45 counter ip dscp set cs0 comment \"Prioritize egress unmarked traffic of packet lengths between 77 and 575 bytes to AF41 \(TCP\)\"
meta nfproto ipv4 meta l4proto tcp meta length \> 77 meta mark 45 counter ip dscp set af41 comment \"Deprioritize egress unmarked traffic of packet lengths between 77 and 575 bytes that have more than 230 pps to CS0 \(TCP\)\"
meta nfproto ipv4 tcp sport != { 80, 443, 8080, 1935-1936, 2396, 2935 } tcp dport != { 80, 443, 8080, 1935-1936, 2396, 2935 } meta mark != { 40, 41, 45 } meta length 0-1256 ip dscp cs1 counter ip dscp set cs4 comment \"Deprioritize egress unmarked traffic of packet lengths between 77 and 575 bytes that have more than 230 pps to CS0 \(TCP\)\"
# Unmarked UDP traffic (Some games also tend to use really tiny packets on upload side (same range as ACKs))
meta nfproto ipv4 udp sport != { 80, 443 } udp dport != { 80, 443 } meta mark != { 42, 43 } meta length 0-1256 limit rate over 250/second burst 100 packets ip dscp cs1 counter meta mark set 50 comment \"Packet mark for unmarked UDP traffic of packet lengths between 0 and 1256 bytes that have more than 230 pps\"
meta nfproto ipv4 meta l4proto udp numgen random mod 1000 \< 5 meta mark 50 counter meta mark set 0 comment \"0.5% probability of unmark a packet that go over 230 pps to be prioritized to CS4 \(UDP\)\"
meta nfproto ipv4 meta l4proto udp meta length 0-77 ct direction reply meta mark 50 counter ip dscp set af41 comment \"Prioritize ingress unmarked traffic of packet lengths between 0 and 77 bytes that have more than 230 pps to AF41 \(UDP\)\"
meta nfproto ipv4 meta l4proto udp meta length 0-77 ct direction original meta mark 50 counter ip dscp set cs0 comment \"Prioritize egress unmarked traffic of packet lengths between 0 and 77 bytes that have more than 230 pps to CS0 \(UDP\)\"
meta nfproto ipv4 meta l4proto udp meta length \> 77 meta mark 50 counter ip dscp set af41 comment \"Packet mark for unmarked UDP traffic of packet lengths between 0 and 1256 bytes that have more than 230 pps\"
meta nfproto ipv4 udp sport != { 80, 443 } udp dport != { 80, 443 } meta mark != { 42, 43, 50 } meta length 0-1256 ip dscp cs1 counter ip dscp set cs4 comment \"Prioritize unmarked traffic of packet lengths between 0 and 1256 bytes that have less than 230 pps to CS4 \(UDP\) - Gaming "&" VoIP\"
@Kimcha