Page 5 of 15

Re: Best settings for gaming QoS+DSCP

Posted: Tue Nov 19, 2019 3:07 pm
by SirSWE
Solved it. When its more then 1 ports it has to be multiport. Here's a working one

iptables -t mangle -A PREROUTING -j DSCP --set-dscp-class CS0

iptables -t mangle -A PREROUTING -p icmp -j DSCP --set-dscp-class CS5

iptables -t mangle -A PREROUTING -p udp --match multiport --sport 3074,3478:3479 -s 192.168.1.100 -j DSCP --set-dscp-class CS5

iptables -t mangle -A PREROUTING -p udp --match multiport --dport 3074,3478:3479 -d 192.168.1.100 -j DSCP --set-dscp-class CS5

iptables -t mangle -A PREROUTING -p tcp --match multiport --sport 1935,3478:3480 -s 192.168.1.100 -j DSCP --set-dscp-class CS5

iptables -t mangle -A PREROUTING -p tcp --match multiport --dport 1935,3478:3480 -d 192.168.1.100 -j DSCP --set-dscp-class CS5

---

Lmao I see you changed to preroutring, i changed to postroutring instead. My gaming experience is alot better. But what is the diffrence between CS6 and EF?

Re: Best settings for gaming QoS+DSCP

Posted: Tue Nov 19, 2019 6:23 pm
by SirSWE
I will use this setup instead.

iptables -t mangle -A POSTROUTING -j DSCP --set-dscp-class CS1

iptables -t mangle -A POSTROUTING -p icmp -j DSCP --set-dscp-class CS4

iptables -t mangle -A POSTROUTING -p udp --match multiport --sport 3074,3478:3479 -s 192.168.1.100 -j DSCP --set-dscp-class CS4

iptables -t mangle -A POSTROUTING -p udp --match multiport --dport 3074,3478:3479 -d 192.168.1.100 -j DSCP --set-dscp-class CS4

iptables -t mangle -A POSTROUTING -p tcp --match multiport --sport 1935,3478:3480 -s 192.168.1.100 -j DSCP --set-dscp-class CS4

iptables -t mangle -A POSTROUTING -p tcp --match multiport --dport 1935,3478:3480 -d 192.168.1.100 -j DSCP --set-dscp-class CS4

Re: Best settings for gaming QoS+DSCP

Posted: Wed Nov 20, 2019 6:59 pm
by VanCleef
For me, tcp ports were not productive, they were being used for download and not for real-time game traffic.
I use only udp again.

I also changed CS5 to EF.

Re: Best settings for gaming QoS+DSCP

Posted: Wed Nov 20, 2019 9:44 pm
by SirSWE
Same, I feelt the game feels more responsive with ICMP priotized. I used it on Advanced Tomato and it helped alot.

Re: Best settings for gaming QoS+DSCP

Posted: Wed Nov 20, 2019 9:46 pm
by -taz-
My settings are incorrect, I will try other settings

(That's why CS4)
https://tools.ietf.org/html/rfc4594

Re: Best settings for gaming QoS+DSCP

Posted: Mon Nov 25, 2019 8:17 pm
by VanCleef
Thanks @taz for this documentation, very interesting.
CS4 seems to be the right class for gaming, here goes well.



iptables -t mangle -A PREROUTING -j DSCP --set-dscp-class CS0

iptables -t mangle -A FORWARD -p icmp -j DSCP --set-dscp-class EF


iptables -t mangle -A FORWARD -s 192.168.1.142 -p udp --sport 1024:65535 -j DSCP --set-dscp-class CS4

iptables -t mangle -A FORWARD -d 192.168.1.142 -p udp --dport 1024:65535 -j DSCP --set-dscp-class CS4

Re: Best settings for gaming QoS+DSCP

Posted: Tue Nov 26, 2019 4:09 am
by FuUuRyyyyY
Hello friend, I wanted to ask for help, since I did the steps to follow according to your tutorial and when I want to save the iptables commands they are not saved, it does not let me save I put the command /etc/init.d/firewall restart and it does not restart :(
[img]/VVrLcN7[/img]

Re: Best settings for gaming QoS+DSCP

Posted: Tue Nov 26, 2019 8:22 pm
by -taz-
I can not see the image

Re: Best settings for gaming QoS+DSCP

Posted: Tue Nov 26, 2019 10:17 pm
by FuUuRyyyyY
-taz- wrote:I can not see the image
I don't know why it doesn't let me upload a link to the image, when I put the command /etc/init.d/firewall restart
At the bottom, "pattern not found" and does not let me save the commands, I already executed as admin the putty and there is no case. Thanks in advance

Re: Best settings for gaming QoS+DSCP

Posted: Wed Nov 27, 2019 1:21 am
by -taz-
WinSCP program, etc / Firewall.user

the commands here