jlund / ansible-ufw

Ansible role that installs and configures ufw, AKA The Uncomplicated Firewall (https://launchpad.net/ufw)
31 stars 8 forks source link

/etc/ufw instead of /lib/ufw #4

Open saintger opened 6 years ago

saintger commented 6 years ago

Since version 0.35, rules are stored in /etc/ufw instead of /lib/ufw: https://bugs.launchpad.net/ufw/+bug/728128

saintger commented 6 years ago

Sorry I was not really understandable about the issue (I was in a hurry). The current version of ansible-ufw write the rules in /lib/ufw, but the current version of ufw read the rules in /etc/ufw. I found the problem when I was locked out of my own server because ansible-ufw activated the firewall but didn't correctly specified the opened port (as they were in /lib/ufw, they were not taken into account).

c-st commented 6 years ago

@saintger I ran into the same issue. However this role is not really necessary anymore because of http://docs.ansible.com/ansible/latest/ufw_module.html