-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: 'route delete NUM' unsupported. Use 'delete NUM' instead. #45
Comments
Hi @arminus those messages indeed look so wrong. I haven't tested this in Ubuntu 22 or Debian 11. I'll test it out let's see what happens. In the meantime, if you could provide reproducible steps to get those errors that'd be helpful as well. |
Thanks for the quick response... For the reproducible steps: I basically followed the setup steps as outlined in your README, all this is on a debian 11 box which I had set up recently from scratch. ufw is version 0.36, docker is 20.10.5+dfsg1, build 55c4c88 All other steps are really listed above, the 2 rules for 22 and 443 were added with an ufw command before all that. The docker containers I'm running are basically caddy docker proxy and nextcloud at this point. But I think that's irrelevant for the strange ufw commands... If I manually try the route delete command which is apparently being attempted by ufw-docker-automated, I get the same result:
So the question is, why does it use 'route delete' instead of 'delete' - and why does it attempt to delete rules which have nothing todo with docker? (The latter makes me a bit nervous...) |
I see. I'll spend some time to debug this this weekend. |
hi
after processing the rule to clean, you delete 10 chars first and run the delete ufw function, and it tries to delete the open ports. |
I was able to reproduce the issue, will fix. |
Hello @arminus , @surbiks . I just cut a new release v0.10.0 Looks like this specific error message was a regression introduced in previous v0.9.0 release. I've fixed this bug in a new release and improved some log messages. Please try a latest release and let me know if it works for you. |
@shinebayar-g thanks, it works fine. |
@shinebayar-g thanks a lot, works for me as well. |
ufw on debian 11 with ufw-docker-automated latest, couple of docker containers with UFW_MANAGED=true labels
Before starting ufw-docker-automated, I have these rules:
running ufw-docker-automated results in this:
I take that as a warning, to be ignored...
why does it try to delete my existing port 22 rule? good thing it fails, otherwise I'd be ssh locked out...
different error now, again not sure why it tries to delete the existing general 443 rule?
After that, ufw shows this which is ok I guess - but the above errors are kind of irritating and the attempt to delete 22 potentially dangerous...
The text was updated successfully, but these errors were encountered: