Best settings for gaming QoS+DSCP

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

-taz-
Posts: 44
Joined: Wed Oct 23, 2019 11:21 pm

Re: Best settings for gaming QoS+DSCP

Post by -taz- »

hello this configuration has been the best for my games and to navigate it is necessary to configure the mtu to 1492 to work
:D

ports (Battlefield v)

iptables -t mangle -A POSTROUTING 192.168.1.190 -p udp -sport 3659,14000:14016,22990:23006,25200:2530 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING 192.168.1.190 -p udp -dport 3659,14000:14016,22990:23006,25200:2530 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING 192.168.1.190 -p tcp -sport 80,443,5222,9988,17502,20000:20100,22990,42127 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING 192.168.1.190 -p tcp -dport 80,443,5222,9988,17502,20000:20100,22990,42127 -j DSCP -set-dscp-class cs4

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

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

Image

Image

Image

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post by VanCleef »

Interesting settings, I will test as well.
Thanks for sharing!
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

SirSWE
Posts: 88
Joined: Sat Jul 13, 2019 2:54 pm

Re: Best settings for gaming QoS+DSCP

Post by SirSWE »

Yo Taz. I will try your settings.

I replaced your with the ports for Black Ops 4 on ps4 Which are
TCP: 1935,3478-3480
UDP: 3074,3478-3479

So I put this in firewall.user?

iptables -t mangle -A POSTROUTING 192.168.1.100 -p udp -sport 3074,3478:3479 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING 192.168.1.100 -p udp -dport 3074,3478:3479 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING 192.168.1.100 -p tcp -sport 1935,3478:3480 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING 192.168.1.100 -p tcp -dport 1935,3478:3480 -j DSCP -set-dscp-class cs4

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

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

SirSWE
Posts: 88
Joined: Sat Jul 13, 2019 2:54 pm

Re: Best settings for gaming QoS+DSCP

Post by SirSWE »

i open putty and put this:

"service firewall restart"'

And get alot of errors. Is it correct?

root@Gargoyle:~# service firewall restart
Warning: Section 'redirect_enabled_number_0' has no target specified, defaulting to DNAT
* Flushing IPv4 filter table
* Flushing IPv4 nat table
* Flushing IPv4 mangle table
* Flushing IPv6 filter table
* Flushing IPv6 mangle table
* Flushing conntrack table ...
* Populating IPv4 filter table
* Rule 'Allow-DHCP-Renew'
* Rule 'Allow-Ping'
* Rule 'Allow-IGMP'
* Rule 'Allow-IPSec-ESP'
* Rule 'Allow-ISAKMP'
* Redirect 'COD'
* Forward 'lan' -> 'wan'
* Zone 'lan'
* Zone 'wan'
* Populating IPv4 nat table
* Redirect 'COD'
* Zone 'lan'
* Zone 'wan'
* Populating IPv4 mangle table
* Zone 'lan'
* Zone 'wan'
* Populating IPv6 filter table
* Rule 'Allow-DHCPv6'
* Rule 'Allow-MLD'
* Rule 'Allow-ICMPv6-Input'
* Rule 'Allow-ICMPv6-Forward'
* Rule 'Allow-IPSec-ESP'
* Rule 'Allow-ISAKMP'
* Forward 'lan' -> 'wan'
* Zone 'lan'
* Zone 'wan'
* Populating IPv6 mangle table
* Zone 'lan'
* Zone 'wan'
* Set tcp_ecn to off
* Set tcp_syncookies to on
* Set tcp_window_scaling to on
* Running script '/etc/firewall.user'
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `CS1'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
! Failed with exit code 2
* Running script '/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall'
root@Gargoyle:~# service firewall restart
Warning: Option @defaults[0].enforce_dhcp_assignments is unknown
Warning: Section 'redirect_enabled_number_0' has no target specified, defaulting to DNAT
* Flushing IPv4 filter table
* Flushing IPv4 nat table
* Flushing IPv4 mangle table
* Flushing IPv6 filter table
* Flushing IPv6 mangle table
* Flushing conntrack table ...
* Populating IPv4 filter table
* Rule 'Allow-DHCP-Renew'
* Rule 'Allow-Ping'
* Rule 'Allow-IGMP'
* Rule 'Allow-IPSec-ESP'
* Rule 'Allow-ISAKMP'
* Redirect 'COD'
* Forward 'lan' -> 'wan'
* Zone 'lan'
* Zone 'wan'
* Populating IPv4 nat table
* Redirect 'COD'
* Zone 'lan'
* Zone 'wan'
* Populating IPv4 mangle table
* Zone 'lan'
* Zone 'wan'
* Populating IPv6 filter table
* Rule 'Allow-DHCPv6'
* Rule 'Allow-MLD'
* Rule 'Allow-ICMPv6-Input'
* Rule 'Allow-ICMPv6-Forward'
* Rule 'Allow-IPSec-ESP'
* Rule 'Allow-ISAKMP'
* Forward 'lan' -> 'wan'
* Zone 'lan'
* Zone 'wan'
* Populating IPv6 mangle table
* Zone 'lan'
* Zone 'wan'
* Set tcp_ecn to off
* Set tcp_syncookies to on
* Set tcp_window_scaling to on
* Running script '/etc/firewall.user'
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `CS1'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `192.168.1.100'
Try `iptables -h' or 'iptables --help' for more information.
! Failed with exit code 2
* Running script '/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall'
iptables: No chain/target/match by that name.

SirSWE
Posts: 88
Joined: Sat Jul 13, 2019 2:54 pm

Re: Best settings for gaming QoS+DSCP

Post by SirSWE »

I think your iptables are wrong taz. I tried diffrent ways by running /etc/init.d/firewall restart

Only working config for me is:
iptables -t mangle -A POSTROUTING -j DSCP --set-dscp-class CS0

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

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

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

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post by VanCleef »

"-s" and "-d" is missing from ip, that's the problem.
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

SirSWE
Posts: 88
Joined: Sat Jul 13, 2019 2:54 pm

Re: Best settings for gaming QoS+DSCP

Post by SirSWE »

Can you write the right config here please?

SirSWE
Posts: 88
Joined: Sat Jul 13, 2019 2:54 pm

Re: Best settings for gaming QoS+DSCP

Post by SirSWE »

I tried like this but it gives me error port?

iptables -t mangle -A POSTROUTING -s 192.168.1.100 -p udp -sport 3074,3478:3479 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING -d 192.168.1.100 -p udp -dport 3074,3478:3479 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING -s 192.168.1.100 -p tcp -sport 1935,3478:3480 -j DSCP -set-dscp-class cs4
iptables -t mangle -A POSTROUTING -d 192.168.1.100 -p tcp -dport 1935,3478:3480 -j DSCP -set-dscp-class cs4

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

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

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post by VanCleef »

I decided to give the tcp ports a try, it really is better.
Now the default mtu (1500 in my case) is better than the others.

Remembering that I play on ps4 on wifi.
For cable users, CS5 instead of CS6.
CS5 and EF are equivalent.

For PC it is still better to use individual ports instead of all high ports, especially because torrents are a problem.

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 --sport 1024:65535 -s 192.168.1.142 -j DSCP --set-dscp-class CS5

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

iptables -t mangle -A PREROUTING -p tcp --sport 1024:65535 -s 192.168.1.142 -j DSCP --set-dscp-class CS5

iptables -t mangle -A PREROUTING -p tcp --dport 1024:65535 -d 192.168.1.142 -j DSCP --set-dscp-class CS6


(@Lajkasir, try this one, see how it goes)
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

SirSWE
Posts: 88
Joined: Sat Jul 13, 2019 2:54 pm

Re: Best settings for gaming QoS+DSCP

Post by SirSWE »

I swear the god. WTF is wrong???????

SOMEONE CORRECT THIS 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 --sport 3074,3478:3479 -s 192.168.1.100 -j DSCP --set-dscp-class CS5

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

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

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


GIVES ME THIS:

*iptables v1.4.21: Port "3074,3478" does not resolve to anything.

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Port "3074,3478" does not resolve to anything.

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: invalid port/service `1935,3478' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: invalid port/service `1935,3478' specified
Try `iptables -h' or 'iptables --help' for more information.
! Failed with exit code 2



Im confused i WANT only these ports becuz of black ops 4

Post Reply