jlund / ansible-ufw

Ansible role that installs and configures ufw, AKA The Uncomplicated Firewall (https://launchpad.net/ufw)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/etc/ufw instead of /lib/ufw

saintger opened this issue · comments

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

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).

@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