Re: Best settings for gaming QoS+DSCP
Posted: Sat Sep 05, 2020 3:47 am
You still use these?VanCleef wrote: ↑Mon Feb 03, 2020 5:28 pmI put the dscp lines inside the script qos gargoyle, this prevents the rules from being duplicated after the reboot.
to edit: vi /etc/init.d/qos_gargoyle
Download:
# squash ingress
iptables -t mangle -A fwmark -j DSCP --set-dscp 0
#Go back and touch up the root qdisc to have the proper default class
tc qdisc change dev imq0 $overhead root handle 1:0 hfsc default $def_download_idx
# Create ingress chain
iptables -t mangle -N qos_ingress
# Mark ingress in FORWARD and INPUT chains to make sure any DNAT (virt. server) is taken into account
iptables -t mangle -A FORWARD -i $qos_interface -j qos_ingress
iptables -t mangle -A INPUT -i $qos_interface -j qos_ingress
# icmp ingress
iptables -t mangle -A qos_ingress -p icmp -j DSCP --set-dscp-class CS6
# tcp flags ingress
iptables -t mangle -A qos_ingress -p tcp -m length --length :64 -j DSCP --set-dscp-class CS6
# ps4 ingress
iptables -t mangle -A qos_ingress -d 192.168.1.142 -p udp -j DSCP --set-dscp-class CS6
#Now the rest of the user entered rules.
Upload:
#Go back and touch up the root qdisc to have the proper default class
tc qdisc change dev $qos_interface $overhead root handle 1:0 hfsc default $def_upload_idx
# Set up egress chain
iptables -t mangle -N qos_egress
iptables -t mangle -A POSTROUTING -o $qos_interface -j qos_egress
# icmp egress
iptables -t mangle -A qos_egress -p icmp -j DSCP --set-dscp-class EF
# tcp flags egress
iptables -t mangle -A qos_egress -p tcp -m length --length :64 -j DSCP --set-dscp-class EF
# ps4 egress
iptables -t mangle -A qos_egress -s 192.168.1.142 -p udp -j DSCP --set-dscp-class CS4
#Next the user entered rules.
QoS in gui, download:
Destination: 192.168.1.142, Transport Protocol: UDP/ Ps4
Maximum Packet Length: 64 bytes, Transport Protocol: TCP /Fast
Transport Protocol: ICMP /Fast
Normal 40% zero nolimit
Fast 10% zero nolimit
Ps4 50% zero nolimit minrtt
gui, upload:
Source: 192.168.1.142, Transport Protocol: UDP /Ps4
Maximum Packet Length: 64 bytes, Transport Protocol: TCP /Fast
Transport Protocol: ICMP /Fast
Normal 10% zero nolimit
Fast 40% zero nolimit
Ps4 50% zero nolimit
Best setup for me so far, playing Ps4 over wifi.