COMMAND_FAILED error when trying to add services to firewalld

Support for security such as Firewalls and securing linux
Post Reply
bodie12
Posts: 1
Joined: 2017/06/11 14:52:56

COMMAND_FAILED error when trying to add services to firewalld

Post by bodie12 » 2017/06/11 14:59:31

I'm trying to add ftp service to firewalld and every time I run

Code: Select all

firewall-cmd --add-service=ftp
this is with out the permanent flag I get

Code: Select all

Error: COMMAND_FAILED
If I run

Code: Select all

firewall-cmd --permanent --add-service=ftp
with the permanent flag

it returns

Code: Select all

success
However after I reload the service I can't connect via ssh anymore until i disable firewalld over rescue mode.

and no, Im not trying to open ssh's port i was using ftp as an exaple, im just stating i lose access to the server after

Code: Select all

running firewall-cmd --permanent --add-service=ANYSERVICE
(NOT JUST FTP) and then reload with

Code: Select all

firewall-cmd --reload

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: COMMAND_FAILED error when trying to add services to firewalld

Post by TrevorH » 2017/06/11 16:54:36

What's the output from uname -a ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply