Skip to content

Instantly share code, notes, and snippets.

@francisuk1989
Created May 11, 2023 13:03
Show Gist options
  • Save francisuk1989/981bf7bf1484f84a77b73a7dcc51d8ef to your computer and use it in GitHub Desktop.
Save francisuk1989/981bf7bf1484f84a77b73a7dcc51d8ef to your computer and use it in GitHub Desktop.
qosify for OpenWrt 22.03.X/Snapshots
# /etc/qosify/00-defaults.conf
# The default class for traffic that is deprioritized.
# Add Ports/Domains here for traffic that should be prioritized e.g besteffort for Video Streams.
# IPs cant but used at the moment.
# Microsoft Remote Desktop (RDP)
tcp:3389 video_network
udp:3389 video_network
# Parsec - Remote Desktop
udp:8000-8010 video_network
udp:9000 video_network
# TeamViewer - Remote Desktop
tcp:5938 video_network
udp:5938 video_network
# Live Streaming to YouTube Live, Twitch, Vimeo and LinkedIn Live
tcp:1935-1936 video_broadcast
tcp:2396 video_broadcast
tcp:2935 video_broadcast
# IP Cameras, NVR/DVR
udp:554 video_broadcast
udo:34567 video_broadcast
udp:37777 video_broadcast
### Gaming ###
# GeForce Now
# Status: Tested
tcp:49006 video_gaming
udp:49003-49006 video_gaming
dns:cloudmatchbeta.nvidiagrid.net video_gaming
dns:*.cloudmatchbeta.nvidiagrid.net video_gaming
# Boosteroid (Game streaming service like GeForce Now)
# Status: Tested
dns:cloud.boosteroid.com video_gaming
dns:*.cloud.boosteroid.com video_gaming
# Xbox
udp:3074 video_gaming
udp:3544 video_gaming
# PlayStation
tcp:3478-3480 video_gaming
udp:3478-3479 video_gaming
# Call of Duty
udp:3075-3079 video_gaming
# Voice over Internet Protocol (VoIP)
tcp:5060-5061 +voice_telephony
udp:5060-5061 +voice_telephony
# Voice over WiFi or WiFi Calling (VoWiFi)
udp:500 +voice_telephony
udp:4500 +voice_telephony
####### Defaults ##########
config defaults
list defaults /etc/qosify/*.conf
# option dscp_icmp besteffort
# Make everything not list in /etc/qosify/*.conf set to bulk traffic
option dscp_default_tcp bulk
option dscp_default_udp bulk
config class besteffort
# The default class for traffic that is neither deprioritized.
option ingress CS0
option egress CS0
config class bulk
# Traffic that you want to be deprioritized, such as torrents
# or large downloads.
option ingress LE
option egress LE
config interface wan
option name wan
option disabled 0
option bandwidth_up 17mbit
option bandwidth_down 54mbit
option overhead_type ""
option ingress 1
option egress 1
option mode diffserv4
option nat 1
option host_isolate 1
option autorate_ingress 0
# Make sure to no add wash to these options
# if you want to be able to verify DSCP maks
# when sniffing the traffic.
# Below is set for VDSL2 with a ISP using VLAN 101 over FTTC
option ingress_options "ptm overhead 34 mpu 68"
option egress_options "ptm overhead 34 mpu 68"
option options "ether-vlan"
###################### Custom Classes ##########################################
config class video_gaming
# Should be used for online games and
# game streaming services like GeForce Now.
# Will use the Voice Tin
option ingress CS4
option egress CS4
config class video_gaming_streaming
# Should be used for game streaming services like GeForce Now
# Will use the Voice Tin
option ingress CS0
option egress CS0
config class video_conferencing
# Can be used for VIDEO conferencing, such as
# Zoom Video, Skype Video
# Will use the Video Tin
option ingress AF42
option egress AF42
config class voice_telephony
# Theoretically, this should be used for audio calls only.
# Will use the Voice Tin
option ingress EF
option egress EF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment