Hey guys, I wanted to share my experience and my settings with you, because my game only improved when I limited bandwidth on the internet via port 3074 in my game, which is Warzone. In many of my searches I see people reporting that they use qosify to improve their games, and mainly use dscp cs4 or cs6 in the rules on port 3074, but that never worked for me when it comes to games, and my game always had that I felt like I was always late. In many forums here in Brazil, people reported that they use their dscp in CS0 and said that the worse prioritization in their game "COD WARZONE", their game ran better. I did a test using SQM QOS, limiting my internet to 5mb Down and 5mb Up with all the Cake settings, and my internet is 700mb down and 350mb Up, and my experience in the game was wonderful without loss and feelings of delay, but the bad thing about all this is that you have a 700mb internet, limiting it to 5mb just for the game wouldn't make much sense and I started looking for a way to limit my internet via the game's port which is 3074. Firstly I want to say that I'm not one specialist in internet networks, I do everything by error and success and deduction and day-to-day experience. As I don't know how to write scripts, I started talking to chatgpt artificial intelligence so he could help me make a script that limits the internet per port, and kabummm, he made me a script that limits the internet bandwidth on the port 3074 of my game for 5mb of DOwn and 5mb of Up, as I don't know how to test this script to see if it was working I tested it while playing, as my experience with the bandwidth limitation script per port turned off in the game was horrible and when Enabled it was Wonderful with much more fluid gameplay and no feeling of delay. I'm going to share the Script here with you and also my qosfy settings that I use so that everyone can test it. I'll say right away that I'm no script or internet expert.
Follow all the steps without skipping anything. This is a tutorial for laypeople like me.
I made the commands using MS-DOS.
Bandwidth Limitation Script for Port 3074.
To limit bandwidth on a specific port in OpenWrt, you can use tc (Traffic Control), which is a tool for controlling network traffic. I will provide an example script that you can use to limit bandwidth on port 3074 to 5 Mbps upload and 5 Mbps download.
Make sure you access your OpenWrt router via SSH or console and run the following commands:
1-Open MS-Dos Prompt and Type:
2-Open the text editor to create a new script:
3-Add the following content to the file, use your I key to edit, copy and paste the script inside:
# Bandwidth limit for port 3074
tc qdisc add dev br-lan root handle 1: htb default 10
tc class add dev br-lan parent 1: classid 1:1 htb rate 5mbit
tc class add dev br-lan parent 1:1 classid 1:10 htb rate 5mbit
# Filter packets on port 3074 and apply bandwidth rules
iptables -t mangle -A PREROUTING -p udp --dport 3074 -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -p udp --sport 3074 -j MARK --set-mark 1
# Apply markup rules to the created class
tc filter add dev br-lan parent 1: protocol ip prio 1 handle 1 fw classid 1:10
Once edited, click "Esc" and type ":wq" to exit.
4- Enter this command afterwards to make the script executable:
chmod +x /etc/firewall.user
5- Enter this command and restart the firewall to apply the changes:
My Qosify settings were based on this link:
Minhas configurações .cake.sh