attachmentgenie / attachmentgenie-ufw

MIT License
21 stars 27 forks source link

ufw --force enable returned 1 instead of one of [0] #31

Closed fletchowns closed 10 years ago

fletchowns commented 10 years ago

This is with Debian 6.0.9 running ufw 0.29.3-1

Error: ufw --force enable returned 1 instead of one of [0]
Error: /Stage[main]/Ufw/Exec[ufw-enable]/returns: change from notrun to 0 failed
: ufw --force enable returned 1 instead of one of [0]

Running the command manually:

vagrant@vagrant:~$ sudo ufw --force enable

Usage: ufw COMMAND

Commands:
 enable                          enables the firewall
 disable                         disables the firewall
 default ARG                     set default policy
 logging LEVEL                   set logging to LEVEL
 allow ARGS                      add allow rule
 deny ARGS                       add deny rule
 reject ARGS                     add reject rule
 limit ARGS                      add limit rule
 delete RULE                     delete RULE
 insert NUM RULE                 insert RULE at NUM
 status                          show firewall status
 status numbered                 show firewall status as numbered list of RULES
 status verbose                  show verbose firewall status
 show ARG                        show firewall report
 version                         display version information

Application profile commands:
 app list                        list application profiles
 app info PROFILE                show information on PROFILE
 app update PROFILE              update PROFILE
 app default ARG                 set default application policy
attachmentgenie commented 10 years ago

this is caused by commit 48431b9 from 2012. I ll have a look into reintroducing the old exec for squeeze only as all the versions bundled for relevant ubuntu and debian version have the force option

fletchowns commented 10 years ago

Thanks @attachmentgenie !