LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-09-2019, 06:52 PM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Rep: Reputation: 32
how to reset firewalld back to default factory


Hi,

I did not find a way on how to reset firewalld back to default factory..

please help
 
Old 04-09-2019, 07:09 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,386
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
firewalld is a front-end for iptables. You might start with the firewalld man page. You might also take a look at man iptables.

If that doesn't help, please provide more information, such as your distro/version and what options you have already tried.
 
Old 04-09-2019, 07:22 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Remove the relevant xml file in /etc/firewall/zones, or to remove everything do
Code:
rm -rf /etc/firewalld/zones/
This will cause firewalld to use the default file in /usr/lib/firewalld/zones/.

After removing the configuration you can restart firewalld to take effect, and then any configuration changes made followed by a subsequent 'Runtime to permanent' configuration will get the updated configuration written to /etc/firewalld/zones/ again.

Reference:
https://access.redhat.com/documentat...firewalld.html

Last edited by ferrari; 04-09-2019 at 07:25 PM.
 
  


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
i have a Dell mini 9 that i am trying to factory reset..well when it rebooted it came back to a screen that says..grub.and i am lost.help LOSSI Linux - Newbie 4 06-12-2018 08:00 PM
-How to reset Xfce to "factory" settings in Etch ? el amigo* Debian 13 03-14-2016 02:18 AM
Factory reset of android phone future_computer Linux - Mobile 7 04-27-2013 02:56 AM
LXer: How to reset Kindle Fire HD to default factory settings LXer Syndicated Linux News 0 04-08-2013 12:41 AM
Received a used netbook want to reset factory settings but need to remove Ubuntu . catholder Linux - Laptop and Netbook 4 03-14-2011 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:39 PM.

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