Firewall keeps re-enabling itself

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Firewall keeps re-enabling itself

Postby DiBosco » Apr 23rd, '24, 17:00

Folks,

Any idea why my firewall would keep switching itself back on please?

Thanks!
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Firewall keeps re-enabling itself

Postby sturmvogel » Apr 23rd, '24, 18:12

Could you at least add a basic failure description? What are you doing how and where and what is the result…
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39

Re: Firewall keeps re-enabling itself

Postby doktor5000 » Apr 23rd, '24, 18:16

Well, how did you disable it and what is your firewall in particular ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Firewall keeps re-enabling itself

Postby DiBosco » Apr 23rd, '24, 19:59

I didn't know there was more than one! :-)

Just ticked disable in the firewall in the security section of MCC.

It keeps unticking itself!
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Firewall keeps re-enabling itself

Postby doktor5000 » Apr 23rd, '24, 22:37

Untick here? https://doc.mageia.org/mcc/9/en/content ... akfirewall
You'd need to enable the first box "Everything (no firewall)" and then still click through the normal dialog to apply this to all network interfaces.

It would help if you would add a screenshot what you actually click and what keeps unticking.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Firewall keeps re-enabling itself

Postby DiBosco » Apr 29th, '24, 20:01

Image

On this screen I select Everything (No Firewall). The only way to come out of this screen, BTW, is to hit the top right hand cross. Clicking OK does nothing. The next time I reboot it's cleared itself and the firewall is on again.

I would do an actual screen shot but Mageia Control Centre won't load after the latest updates, just shows a blank screen.
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Firewall keeps re-enabling itself

Postby doktor5000 » Apr 29th, '24, 21:27

DiBosco wrote:The only way to come out of this screen, BTW, is to hit the top right hand cross. Clicking OK does nothing. The next time I reboot it's cleared itself and the firewall is on again.

No it's not, then something is broken on your box. After the OK dialog you can configure the interactive firewall and custom selected ports:
Image
Then you need to select which of your interfaces the selected firewall rules should be applied upon.
Image
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Firewall keeps re-enabling itself

Postby DiBosco » Apr 29th, '24, 21:39

OK, neither my laptop nor my desktop allow me to click through to the next screen!
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Firewall keeps re-enabling itself

Postby doktor5000 » Apr 29th, '24, 21:40

If you just want to disable the firewall without MCC then the following should do it
Code: Select all
systemctl disable --now shorewall shorewall6

Then check if all rules have been cleared:
Code: Select all
iptables -L -v -n

edit doktor5000: IIRC you also need to flush iptables once and apply the default accept policy to the 3 default chains input, output and forward.
Code: Select all
iptables -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

See e.g. https://bash.cyberciti.biz/security/she ... -firewall/

That doesn't take care about the interactive firewall applet (mandi-ifw), but the firewall itself will stay disabled.
Last edited by doktor5000 on Apr 29th, '24, 23:11, edited 1 time in total.
Reason: added commet
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Firewall keeps re-enabling itself

Postby DiBosco » Apr 29th, '24, 21:43

More than happy to use the command line, will give that a go, thank you :)
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron