LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2019, 09:21 AM   #1
rdill
LQ Newbie
 
Registered: Jun 2017
Posts: 7

Rep: Reputation: Disabled
Deactivate a FirewallD Zone


Hi,

Can anyone tell me if there is a way to deactivate a zone in firewalld? I've read through the man pages, and I can't find any option like that.

~ Bob
 
Old 08-13-2019, 08:14 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
This article looks like it might help: https://www.linuxjournal.com/content...configurations

I don't have any personal experience with this.
 
Old 08-14-2019, 03:21 AM   #3
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
Hi,

You can just make the zone inactive by removing any interfaces and sources from it.
 
Old 08-16-2019, 09:01 AM   #4
rdill
LQ Newbie
 
Registered: Jun 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Frankbell and Tshikose,

Thank you both for attempting to answer this question. I guess there is not way to deactivate a rule without changing it. I don't like the idea of having to remove all the sources from a zone just to deactivate it. I might have a bunch of IP's listed there. I wonder why they didn't build something like that into firewalld. I would love to be able to switch the firewall configuration to temporarily block almost all traffic except for a few servers and myself while I apply an upgrade, and then switch the configuration back to the way it was.

Most of my experience is with IP tables, and I'm really not enjoying the switch to firewalld.

~ Bob
 
Old 08-23-2019, 03:12 AM   #5
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
Hi Bob,

I am sorry that we couldn't provide advices that suit you.

Personnally, firewalld gives me total satisfaction. I just had once to rely on its iptables backend to solve a problem related to KVM networking.
 
Old 08-30-2019, 11:10 AM   #6
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Rep: Reputation: 30
Quote:
Originally Posted by rdill View Post
Hi Frankbell and Tshikose,

I would love to be able to switch the firewall configuration to temporarily block almost all traffic except for a few servers and myself while I apply an upgrade, and then switch the configuration back to the way it was.
Possible not too painful alternative ---

Add a new zone (and customize to your need):
Code:
sudo firewall-cmd --permanent --new-zone=block-almost-everything-except-myself
Assign ethernet device to the new zone and do what you gotta do:

Code:
sudo firewall-cmd --zone=block-almost-everything-except-myself --change-interface=eth1
Then return the ethernet device to previously active zone upon completion:

Code:
sudo firewall-cmd --zone=public --change-interface=eth1
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Understanding Firewalld in Multi-Zone Configurations LXer Syndicated Linux News 0 02-02-2017 08:40 AM
I find file zone in the slave zone to the do a transfer of zone from Windows Server 2012 as master dns and CentOS as slave DNS. To learn Linux - Newbie 1 09-02-2016 09:36 AM
[SOLVED] Firewalld zone allows source address access. gctaylor1 Red Hat 2 04-13-2016 09:44 AM
[SOLVED] Selecting the correct firewalld zone borgy95 Linux - Networking 1 06-25-2015 05:03 AM
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 04:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration