How to remove preconfigured zones in firewalld The Next CEO of Stack OverflowCentOS 7 Firewalld zone configuration for private web applicationfirewalld rules to route two user groups to different apps in OpenVPNFedora 21 Port Forwarding with firewalld (firewall-cmd); how does it REALLY work? Or, does it?firewalld zones and ICMP PacketsFirewalld forwarding between zones not workingConfigure firewallD to access services on bridge from OpenVPNFirewallD not working properly on Fedora 25How can I configure firewalld to share a single interface with multiple zones?firewall-cmd says no firewall zones are active. Why?
'Given that' in a matrix
What makes a siege story/plot interesting?
Is a stroke of luck acceptable after a series of unfavorable events?
Unreliable Magic - Is it worth it?
How do scammers retract money, while you can’t?
Horror movie/show or scene where a horse creature opens its mouth really wide and devours a man in a stables
Why does standard notation not preserve intervals (visually)
How do we know the LHC results are robust?
How to count occurrences of text in a file?
Term for the "extreme-extension" version of a straw man fallacy?
Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?
WOW air has ceased operation, can I get my tickets refunded?
Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?
How to Reset Passwords on Multiple Websites Easily?
How to make a variable always equal to the result of some calculations?
How do I go from 300 unfinished/half written blog posts, to published posts?
Does the Brexit deal have to be agreed by both Houses?
What does "Its cash flow is deeply negative" mean?
A pseudo-riley?
How to use tikz in fbox?
What is the difference between "behavior" and "behaviour"?
What happens if you roll doubles 3 times then land on "Go to jail?"
Rearrange c++ const and reference specifiers
Trouble understanding the speech of overseas colleagues
How to remove preconfigured zones in firewalld
The Next CEO of Stack OverflowCentOS 7 Firewalld zone configuration for private web applicationfirewalld rules to route two user groups to different apps in OpenVPNFedora 21 Port Forwarding with firewalld (firewall-cmd); how does it REALLY work? Or, does it?firewalld zones and ICMP PacketsFirewalld forwarding between zones not workingConfigure firewallD to access services on bridge from OpenVPNFirewallD not working properly on Fedora 25How can I configure firewalld to share a single interface with multiple zones?firewall-cmd says no firewall zones are active. Why?
I was unable to remove any preconfigured zones.
[root@fabian ~]# firewall-cmd --permanent --delete-zone=block
Error: BUILTIN_ZONE: block
[root@fabian ~]#
Is there a way I can do that? If I just remove coresponding zone files, firewalld won't start.
If this cannot be done, why on earth one can not get rid of this builtin zones?
Just looking at predefined empty firewall makes me puke:
[root@fabian ~]# firewall-cmd --list-all-zones
block
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
dmz
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
drop
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
external (active)
interfaces: enp0s26u1u1
sources:
services:
ports:
masquerade: yes
forward-ports:
icmp-blocks:
rich rules:
home
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
internal (default, active)
interfaces: enp4s0
sources:
services: ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
public
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
trusted
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
work
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
[root@fabian ~]#
Please save me.
firewalld
add a comment |
I was unable to remove any preconfigured zones.
[root@fabian ~]# firewall-cmd --permanent --delete-zone=block
Error: BUILTIN_ZONE: block
[root@fabian ~]#
Is there a way I can do that? If I just remove coresponding zone files, firewalld won't start.
If this cannot be done, why on earth one can not get rid of this builtin zones?
Just looking at predefined empty firewall makes me puke:
[root@fabian ~]# firewall-cmd --list-all-zones
block
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
dmz
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
drop
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
external (active)
interfaces: enp0s26u1u1
sources:
services:
ports:
masquerade: yes
forward-ports:
icmp-blocks:
rich rules:
home
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
internal (default, active)
interfaces: enp4s0
sources:
services: ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
public
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
trusted
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
work
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
[root@fabian ~]#
Please save me.
firewalld
add a comment |
I was unable to remove any preconfigured zones.
[root@fabian ~]# firewall-cmd --permanent --delete-zone=block
Error: BUILTIN_ZONE: block
[root@fabian ~]#
Is there a way I can do that? If I just remove coresponding zone files, firewalld won't start.
If this cannot be done, why on earth one can not get rid of this builtin zones?
Just looking at predefined empty firewall makes me puke:
[root@fabian ~]# firewall-cmd --list-all-zones
block
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
dmz
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
drop
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
external (active)
interfaces: enp0s26u1u1
sources:
services:
ports:
masquerade: yes
forward-ports:
icmp-blocks:
rich rules:
home
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
internal (default, active)
interfaces: enp4s0
sources:
services: ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
public
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
trusted
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
work
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
[root@fabian ~]#
Please save me.
firewalld
I was unable to remove any preconfigured zones.
[root@fabian ~]# firewall-cmd --permanent --delete-zone=block
Error: BUILTIN_ZONE: block
[root@fabian ~]#
Is there a way I can do that? If I just remove coresponding zone files, firewalld won't start.
If this cannot be done, why on earth one can not get rid of this builtin zones?
Just looking at predefined empty firewall makes me puke:
[root@fabian ~]# firewall-cmd --list-all-zones
block
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
dmz
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
drop
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
external (active)
interfaces: enp0s26u1u1
sources:
services:
ports:
masquerade: yes
forward-ports:
icmp-blocks:
rich rules:
home
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
internal (default, active)
interfaces: enp4s0
sources:
services: ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
public
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
trusted
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
work
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
[root@fabian ~]#
Please save me.
firewalld
firewalld
asked Sep 2 '15 at 18:16
AasAas
31113
31113
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Default zones are stored in this directory:
/usr/lib/firewalld/zones
The following was pulled from after googling firewall-cmd default zones:
[https://www.linode.com/docs/security/firewalls/introduction-to-firewalld-on-centos]
Configuring FirewallD
Firewalld is configured with XML files. Except for very specific configurations, you won’t have to deal with them and firewall-cmd should be used instead.
Configuration files are located in two directories:
/usr/lib/FirewallD holds default configurations like default zones and common services. Avoid updating them because those files will be overwritten by each firewalld package update.
/etc/firewalld holds system configuration files. These files will overwrite a default configuration.
With that said...
I removed a builtin zone named internal from the /usr/lib/FirewallD/zones and reloaded firewalld, and the zone was still there when did --list-all-zones.
So I then removed the internal zone from /etc/firewalld/zones and reloaded the firewall, and the internal is now gone.
Will it come back after a package update, don't know and haven't tried yet.
The only file in /etc/firewalld/zones is public.xml. So, nothing to delete. :-( It's CentOS 7.
– Aas
Mar 17 '17 at 14:29
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f227091%2fhow-to-remove-preconfigured-zones-in-firewalld%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Default zones are stored in this directory:
/usr/lib/firewalld/zones
The following was pulled from after googling firewall-cmd default zones:
[https://www.linode.com/docs/security/firewalls/introduction-to-firewalld-on-centos]
Configuring FirewallD
Firewalld is configured with XML files. Except for very specific configurations, you won’t have to deal with them and firewall-cmd should be used instead.
Configuration files are located in two directories:
/usr/lib/FirewallD holds default configurations like default zones and common services. Avoid updating them because those files will be overwritten by each firewalld package update.
/etc/firewalld holds system configuration files. These files will overwrite a default configuration.
With that said...
I removed a builtin zone named internal from the /usr/lib/FirewallD/zones and reloaded firewalld, and the zone was still there when did --list-all-zones.
So I then removed the internal zone from /etc/firewalld/zones and reloaded the firewall, and the internal is now gone.
Will it come back after a package update, don't know and haven't tried yet.
The only file in /etc/firewalld/zones is public.xml. So, nothing to delete. :-( It's CentOS 7.
– Aas
Mar 17 '17 at 14:29
add a comment |
Default zones are stored in this directory:
/usr/lib/firewalld/zones
The following was pulled from after googling firewall-cmd default zones:
[https://www.linode.com/docs/security/firewalls/introduction-to-firewalld-on-centos]
Configuring FirewallD
Firewalld is configured with XML files. Except for very specific configurations, you won’t have to deal with them and firewall-cmd should be used instead.
Configuration files are located in two directories:
/usr/lib/FirewallD holds default configurations like default zones and common services. Avoid updating them because those files will be overwritten by each firewalld package update.
/etc/firewalld holds system configuration files. These files will overwrite a default configuration.
With that said...
I removed a builtin zone named internal from the /usr/lib/FirewallD/zones and reloaded firewalld, and the zone was still there when did --list-all-zones.
So I then removed the internal zone from /etc/firewalld/zones and reloaded the firewall, and the internal is now gone.
Will it come back after a package update, don't know and haven't tried yet.
The only file in /etc/firewalld/zones is public.xml. So, nothing to delete. :-( It's CentOS 7.
– Aas
Mar 17 '17 at 14:29
add a comment |
Default zones are stored in this directory:
/usr/lib/firewalld/zones
The following was pulled from after googling firewall-cmd default zones:
[https://www.linode.com/docs/security/firewalls/introduction-to-firewalld-on-centos]
Configuring FirewallD
Firewalld is configured with XML files. Except for very specific configurations, you won’t have to deal with them and firewall-cmd should be used instead.
Configuration files are located in two directories:
/usr/lib/FirewallD holds default configurations like default zones and common services. Avoid updating them because those files will be overwritten by each firewalld package update.
/etc/firewalld holds system configuration files. These files will overwrite a default configuration.
With that said...
I removed a builtin zone named internal from the /usr/lib/FirewallD/zones and reloaded firewalld, and the zone was still there when did --list-all-zones.
So I then removed the internal zone from /etc/firewalld/zones and reloaded the firewall, and the internal is now gone.
Will it come back after a package update, don't know and haven't tried yet.
Default zones are stored in this directory:
/usr/lib/firewalld/zones
The following was pulled from after googling firewall-cmd default zones:
[https://www.linode.com/docs/security/firewalls/introduction-to-firewalld-on-centos]
Configuring FirewallD
Firewalld is configured with XML files. Except for very specific configurations, you won’t have to deal with them and firewall-cmd should be used instead.
Configuration files are located in two directories:
/usr/lib/FirewallD holds default configurations like default zones and common services. Avoid updating them because those files will be overwritten by each firewalld package update.
/etc/firewalld holds system configuration files. These files will overwrite a default configuration.
With that said...
I removed a builtin zone named internal from the /usr/lib/FirewallD/zones and reloaded firewalld, and the zone was still there when did --list-all-zones.
So I then removed the internal zone from /etc/firewalld/zones and reloaded the firewall, and the internal is now gone.
Will it come back after a package update, don't know and haven't tried yet.
edited Oct 8 '16 at 19:25
answered Oct 8 '16 at 19:02
The DudeThe Dude
213
213
The only file in /etc/firewalld/zones is public.xml. So, nothing to delete. :-( It's CentOS 7.
– Aas
Mar 17 '17 at 14:29
add a comment |
The only file in /etc/firewalld/zones is public.xml. So, nothing to delete. :-( It's CentOS 7.
– Aas
Mar 17 '17 at 14:29
The only file in /etc/firewalld/zones is public.xml. So, nothing to delete. :-( It's CentOS 7.
– Aas
Mar 17 '17 at 14:29
The only file in /etc/firewalld/zones is public.xml. So, nothing to delete. :-( It's CentOS 7.
– Aas
Mar 17 '17 at 14:29
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f227091%2fhow-to-remove-preconfigured-zones-in-firewalld%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown