magnific0 / wondershaper

Command-line utility for limiting an adapter's bandwidth
GNU General Public License v2.0
1.71k stars 256 forks source link

It stopped working on Debian 12 #100

Open rwb196884 opened 1 month ago

rwb196884 commented 1 month ago

Installed wondershaper on Debian 12 and it was working, but it's stopped working this weekend.

Any idea what's going on?


# wondershaper hp 1024 1024
Error: Specified qdisc kind is unknown.
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
Error: Failed to find specified qdisc.
Error: Failed to find specified qdisc.
Error: Failed to find specified qdisc.
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
# uname -a
Linux calleva 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux
#
``
instinctualjealousy commented 1 month ago

Same thing on Linux Mint 20.3. It's been working splendidly for a good long while, and now it's throwing this exact set of errors.

$ sudo -S wondershaper wlp1s0 3072 256
[sudo] password for odells:
Error: Specified qdisc kind is unknown.
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
Error: Failed to find specified qdisc.
Error: Failed to find specified qdisc.
Error: Failed to find specified qdisc.
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 20.3
Release:        20.3
Codename:       una
$ uname -a
Linux ODells-EliteDesk 5.4.0-189-generic #209-Ubuntu SMP Fri Jun 7 14:05:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
rwb196884 commented 1 month ago

It turns out that some cunt has replaced iptables with something called nftables so everything firewall related is completely fucked.

It seems that iptables is symlinked to iptables-nft via /etc/alternatives/iptables and although running iptables-nft works in some cases, running the corresponding command with iptables doesn't.

Really didn't need to have to rewrite my firewall script.

andip71 commented 1 month ago

Newer linux kernels on many distributions have the CBQ net scheduler removed, which wondershaper uses internally. This explains the following error message of the wondershaper script: "Error: Specified qdisc kind is unknown."

It requires some good modifications to the wondershaper script to work again with one of the remaining net schedulers.

I have the same issue with wondershaper on my Rasbperry OS based on Debian bookworm.

HowardRubin-dev commented 5 days ago

Same error on Ubuntu 22.04.4 Jammy and 24.04 Noble