After install firewalld, no zones

Support for security such as Firewalls and securing linux
Post Reply
cent1548
Posts: 12
Joined: 2015/10/04 23:08:03

After install firewalld, no zones

Post by cent1548 » 2015/10/07 00:57:10

After install firewalld,

Code: Select all

systemctl status firewalld 
Ok, it running...
But,

Code: Select all

firewall-cmd --get-zones
Nothing

Code: Select all

firewall-cmd --get-default-zone
Nothing

Code: Select all

firewall-cmd --set-default-zone=public
no such zone....

Code: Select all

firewall-cmd --enable service=ssh
No.. zone...

Code: Select all

firewall-cmd --reload
lost ssh connect...

pwd
Posts: 61
Joined: 2014/12/23 11:54:42

Re: After install firewalld, no zones

Post by pwd » 2015/10/07 06:27:23

try this

Code: Select all

firewall-cmd --permanent --add-service=ssh
firewall-cmd --reload
"God, root, what is difference?"

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: After install firewalld, no zones

Post by aks » 2015/10/09 18:07:23

I think system firewalls are in /usr/lib/firewalld/zones/*.xml
Do they exist? Are they (selinux) labelled correctly?
Do you have other files in /etc/firewalld/?

Post Reply