poddmo / ufw-blocklist

IP blocklist extension for Ubuntu ufw
GNU General Public License v3.0
88 stars 13 forks source link

Using ufw-blocklist with other ufw rules #3

Closed BillTheGoat closed 9 months ago

BillTheGoat commented 10 months ago

Looking over your code and installation process, it appears that you just take over ufw. I have existing rules to limit ports etc that I would like to keep. Is there a way to set this up so that my original rules still work, but ufw-blocklist is simply appended?

Sorry if this question is too naive, I just started using ufw.

poddmo commented 10 months ago

It is fair to say that ufw-blocklist overrides ufw by using insert rules. That is intentional as the intent is to block all traffic to and from hosts on the blocklist with extreme prejudice. I also have ufw allow and allow limit rules for ports but I don't want any of them available to hosts on the blocklist. Thus the ufw-blocklist rules are inserted to give them precedence. Your original rules should still work, unless they are to or from hosts on the blocklist. Please let me know if you don't get that result.

BillTheGoat commented 9 months ago

Sorry for the delayed response. That makes perfect sense and I have everything working as intended. Much appreciated.