Improve ufw rule addition changed when conditions