7

My firewall is currently inactive.

# systemctl status firewalld
firewalld.service
    Loaded: masked (/dev/null)
    Active: inactive (dead)

I used the following command to enable the firewall

$systemctl unmask firewalld

but I got this error

# systemctl unmask firewalld
Failed to issue method call: Access denied

Please advise.

Thanks in advance!

1
  • 1
    This is offtopic and should be submitted on another StackExchange site such as ServerFault Apr 17, 2015 at 21:39

2 Answers 2

19

Try this:

systemctl unmask firewalld

return: Removed symlink /etc/systemd/system/firewalld.service.

After that, you can:

systemctl restart firewalld
0
2

Try this:

sudo systemctl restart firewalld
sudo systemctl enable firewalld

But before you should install firewalld. You can use yum for that:

sudo yum install firewalld
6
  • Yeah I actually tried that too but didn't seem to work. Apr 17, 2015 at 22:18
  • [root@localhost ~]# sudo systemctl restart firewalld Failed to issue method call: Unit firewalld.service failed to load: No such file or directory. [root@localhost ~]# sudo systemctl enable firewalld Failed to issue method call: Access denied Apr 17, 2015 at 22:18
  • Why do you accept an answer if it didn't work for you? (= Unfortunately, I'm not advanced linux user so I can't help you much.
    – gomons
    Apr 17, 2015 at 22:30
  • I didn't know that means accepting. It was probably by mistake. Its my first time using this. Apr 17, 2015 at 22:32
  • Try sudo yum install firewalld
    – gomons
    Apr 17, 2015 at 22:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.