Why can't you start ufw on wsl2?

Viewed 3032

I have this error. I have days trying to solve it but I can not find the answer, if someone something similar happened I would appreciate your help.

ERROR: problem running ufw-init iptables-restore v1.8.4 (legacy): Couldn't load match `limit':No such file or directory

Error occurred at line: 63 Try iptables-restore -h' or 'iptables-restore --help' for more information. iptables-restore v1.8.4 (legacy): Couldn't load match limit':No such file or directory

Error occurred at line: 8 Try `iptables-restore -h' or 'iptables-restore --help' for more information.

Problem running '/etc/ufw/before.rules' Problem running '/etc/ufw/user.rules'

ERROR: problem running ufw-init

1 Answers

Adding a firewall to wsl2 might not be very useful because you can gain root access to wsl2 with a simple command: "wsl -u root".

Check this (https://superuser.com/a/1626513) post out for more details.

Related