I am using this:
##NORMAL
iptables -t mangle -A PREROUTING -i eth0.2 -j DSCP --set-dscp 0
##ACC PING
iptables -t mangle -A INPUT -i eth0.2 -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
iptables -t mangle -A POSTROUTING -o eth0.2 -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A INPUT -i eth0.2 -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A POSTROUTING -o eth0.2 -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
##GAMING
iptables -t mangle -A FORWARD -o br-lan -d 192.168.1.142 -p udp -j DSCP --set-dscp-class CS7
iptables -t mangle -A FORWARD -i br-lan -s 192.168.1.142 -p udp -j DSCP --set-dscp-class EF
##MTU
iptables -A FORWARD -s 192.168.1.142 -p tcp --tcp-flags SYN,RST SYN -o eth0.2 -j TCPMSS --set-mss 1360
(use everything, not only ##gaming)
for those who play in ps4, xbox ... defining all udp ports seems acceptable.
already on PC, better to set individually:
##GAMING
iptables -t mangle -A FORWARD -o br-lan -d 192.168.1.142 -p udp --match multiport --port 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
iptables -t mangle -A FORWARD -i br-lan -s 192.168.1.142 -p udp --match multiport --port 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
I play on wifi, so I use CS7 on the download side(-o br-lan -d 192.168.1.142)
CS7 / CS6 falls into voice class on wifi, which has the lowest latency, while on cable it is EF
can also be used CS4 in place of other
References:
https://tools.ietf.org/html/rfc8325
eth0.2 is my wan interface
To find out which one is yours, use the "ifconfig" command, the interface that has the ip address of your isp will be your Wan. (look in line "inet addr")
The br-lan, I believe to be the same for everyone.
I think it works better now because br-lan controls both wan and lan.
I found that using the br-lan interface in the rule is essential, at least for me games now have a faster response.
I also use the rule that sets mtu to 1400, only on output, I also felt an improvement.
I had no problem opening any website using this mtu value.
the mtu on my ps4 and gargoyle kept standard.
QoS Gargoyle:
Download Normal class 100% /ACC
(total bandwidth: 100%)
ACC manual control target ping time : Wan gateway ip or some dns with low ping
Upload Normal class 100%
(total bandwidth: 95%)