CAKE QoS Script (OpenWrt)

yes exactly if your router has pppoe-wan in interface generaly the colour red

put pppoe-wan at the start of script

ive done a fresh install on latest snapshot, think its working now, will test.

1 Like

if im running this on a router only, no wifi do i need veth? can this be turned off? i seem to be getting random disconnects

1 Like

It would be nice if someone shared the script without veth, I also have the problem of disconnections.

what do you mean by disconnection? the player has rollbacks for example the game freezes?

internet drops, cuts and the doll heavier than usual, besides that I do not see the need to use veth when I only have a lan output and I do not configure wifi in this router

ok what is tour connexion, thé script work Bad with thé fibre optic i has impression

I think it doesn't work very well with fiber... but I still need to try using it without veth, that's why I ask if someone can share it without veth

i have same issue, internets drops, browsing slow, playing online work for a time then connection will drop. Game play when its working is fine. As a test ive installed qosify and im not getting same issues, so must be something with the script.

ok I don't know if it is veth that causes the problem

For iptables or nftables?

I would like to start using it with nftables.

Nftables for me also, with out veth as running on router only with separate AP.

I’m not using the script at the moment and I can’t really test because I’m using iptables in my setup but I changed a few lines so you can try it.

Just fill in:

LAN=”your lan interface”

WAN=”your wan interface”

I’m just initiating cake on lan for download and wan for upload although I could provide a version with an ifb interface if you prefer.

Keep in mind this actually only makes sense if you don’t have multiple physical nics or wifi on your router. In my setup I only have 2 ethernet ports (one for lan and one for wan) so there is no need for a veth.

1 Like

ifb interface would be great, i know works really well with qosify, happy to test. Thanks

Same running on NanoPI R4s.

IFB on wan is incompatible with using nftables/iptables for classicifaction and DSCP-remarking of internet-download packets. Qosify uses its own eBPF based classification scheme and hence does not care, but the script of this topic very much leverages the xxtables subsystem and hence will not work as expected with an IFB on the wan interface.
The alternatives really are either veth-pairs or using a LAN-directed interface to deal with internet download (but that will typically not handle internet downloads by the router itself).

My own preferred approach is to wait for @ldir's excellent approach to become generally available which will allow to use iptables/nftables to classify egress/upload traffic and the will leverage the conntrack system to copy the same DSCPs to the ingress traffic of the same flows. Alas, I just upgraded to OpenWrt 21 and have not yet managed to start testing this approach.

2 Likes

currently testing, so far so good, will let you know if i have any issues, Thanks

1 Like

I don't know if I should disable some command lines in the script but I automatically lose my internet connection every time I run the script with the wan config in pppoe-wan.
When I delete the script my connection comes back to normal.
I voluntarily downloaded the latest version of OpenWrt, which was advised to do if we encountered this type of disconnection. I conclude that this is not yet resolved?

have you tried the above from @Hudra ?

it removes the veth, i have pppoe and so far the above script is working for me.

it doesnt work for me either the only site that is working is this forum