Using DPI/QoS with OpenVPN

I’m trying to understand your setup and if DPI/QoS could work at all.
Could you share your full system configuration? Could I try to replicate it here?
To bypass web UI checks, we could set the rule in the configuration database using the shell, but I can’t guess how to write the rule. Understanding your setup may help me. Thank you.