Does Firewall DSCP work with NAT Offloading?

firewall DSCp work

2.This is my QoS is it good-

3. Bufferbloat result is worse on Openwrt Router than my ONT

ONT

Openwrt Router with Qosify installed but disabled Notice low speeds

4. How to use QoSify and Firewall DSCP together ?

Packages

luci
luci-app-wireguard luci-app-pbr
stubby
qosify
luci-app-adblock (not configured)
banip (not configured)
kmod-ipt-geoip (not configured)
netdata
luci-app-nlbwmon
snort3 (not configured)
Netifyd (not configured)
iperf3
UDPspeeder
usbutils kmod-usb-storage-uas block-mount kmod-fs-ext4 kmod-usb-storage kmod-usb3 kmod-usb2 kmod-usb-core

Your qosify configurations would need to set DSCP using the + convention (e.g. +af41, +video) so that qosify only overrides the DSCP if it is still CS0.

With offloading, only the first packet of a connection will traverse the firewall rules, so the remaining packets won’t get marked. You can use methods used with the script below to use ctinfo to make it work however,

2 Likes

Is that what software offloading does or is it a side effect of enabling offloading?

Yes, after the first packet, connection info is cached in the flowtable and bypasses the netfilter stack for future packets. But it seems to let the tc egress filter restore the DSCP on this subsequent packets (at least in my experience so far).

https://www.kernel.org/doc/html/latest/networking/nf_flowtable.html