Best settings for gaming QoS+DSCP
Posted: Sat Sep 21, 2019 1:20 pm
Hello everyone.
I've been trying to improve the performance of my games on Ps4.
I'm not an advanced user, I just want my online games to have the best performance possible.
So I believe I have found the best setting for online games.
Some people have already posted their settings here in the forum, including me.
Helped me a lot.
Now I've found a way to increment these settings, marking ports the games use a higher priority, using DSCP.
more about DSCP : https://medium.com/mindorks/improve-net ... e766d3373a
Just use this simple script in: /etc/firewall.user
(use vi command to edit)
iptables -t mangle -A PREROUTING -p udp -d 192.168.1.142 --dport 1024:65535 -j DSCP --set-dscp 48
iptables -t mangle -A POSTROUTING -p udp -s 192.168.1.142 --sport 1024:65535 -j DSCP --set-dscp 48
iptables -t mangle -A PREROUTING -p icmp -j DSCP --set-dscp 48
iptables -t mangle -A POSTROUTING -p icmp -j DSCP --set-dscp 48
run the commands after:
service firewall restart
reboot
Change the ip to your game machine.
Most games use udp high ports, icmp is just for ACC ping to work better.
udp ports and icmp are marked 48(CS6), this marking worked best for me.
You can also try 56 (CS7), 46 (EF) or 40 (CS5).
For consoles works fine, but if you play on PC and run a lot of torrents, it is better to tag ports individually:
iptables -t mangle -A PREROUTING -p udp -m multiport --dport 3659,3074,9305:9308,3478,3479 -j DSCP --set-dscp 48
iptables -t mangle -A POSTROUTING -p udp -m multiport --sport 3659,3074,9305:9308,3478,3479 -j DSCP --set-dscp 48
Change to the udp ports your games use.
I've been trying to improve the performance of my games on Ps4.
I'm not an advanced user, I just want my online games to have the best performance possible.
So I believe I have found the best setting for online games.
Some people have already posted their settings here in the forum, including me.
Helped me a lot.
Now I've found a way to increment these settings, marking ports the games use a higher priority, using DSCP.
more about DSCP : https://medium.com/mindorks/improve-net ... e766d3373a
Just use this simple script in: /etc/firewall.user
(use vi command to edit)
iptables -t mangle -A PREROUTING -p udp -d 192.168.1.142 --dport 1024:65535 -j DSCP --set-dscp 48
iptables -t mangle -A POSTROUTING -p udp -s 192.168.1.142 --sport 1024:65535 -j DSCP --set-dscp 48
iptables -t mangle -A PREROUTING -p icmp -j DSCP --set-dscp 48
iptables -t mangle -A POSTROUTING -p icmp -j DSCP --set-dscp 48
run the commands after:
service firewall restart
reboot
Change the ip to your game machine.
Most games use udp high ports, icmp is just for ACC ping to work better.
udp ports and icmp are marked 48(CS6), this marking worked best for me.
You can also try 56 (CS7), 46 (EF) or 40 (CS5).
For consoles works fine, but if you play on PC and run a lot of torrents, it is better to tag ports individually:
iptables -t mangle -A PREROUTING -p udp -m multiport --dport 3659,3074,9305:9308,3478,3479 -j DSCP --set-dscp 48
iptables -t mangle -A POSTROUTING -p udp -m multiport --sport 3659,3074,9305:9308,3478,3479 -j DSCP --set-dscp 48
Change to the udp ports your games use.