LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2012, 08:48 AM   #1
aespara
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Rep: Reputation: Disabled
Exclamation How can I disable firewall in command line and see the change in the gui


Hello all,

I need to disable the Firewall in command line so I type
/etc/rc.d/init.d/iptables stop
chkconfig iptables off
chkconfig ip6tables off
seems to work when I check the status, however when I check the gui the Enable option still selected.

How can I make the Firewall to change from enabled to disable in command line?

thank you.
 
Old 09-12-2012, 08:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
/etc/rc.d/init.d/iptables stop

This WILL stop the firewall. run "iptables -vnL" to see the current ruleset, adn you shoudl see it's empty.
 
1 members found this post helpful.
Old 09-12-2012, 08:51 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
What "Gui" are you talking about here? What distro/version?
 
1 members found this post helpful.
Old 09-12-2012, 09:16 AM   #4
aespara
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for the replies

when I type system-config-securitylevel I still see that firewall option\tab is enabled, I need to change it to disabled.
I was able to disable the selinux tab, all i did in my script is to change the text from enforcing to disabled the /etc/sysconfig/selinux file.
I would like to do something similar with the firewall options.

thank you.
Attached Thumbnails
Click image for larger version

Name:	firewall.PNG
Views:	140
Size:	59.5 KB
ID:	10663  
 
Old 09-12-2012, 09:53 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
personally I've never touched those gui tools. Why not just stop using them and then it's irrevelant? No... seriously...
 
Old 09-12-2012, 10:19 AM   #6
aespara
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Chris,

Because I am not the only one who is using the system, other people might change settings if the labels are not dimmed. otherwise I would not be asking for help.

thank you.
 
Old 09-12-2012, 09:24 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
The GUI reads the setting as it goes in; its not updated in real time.
If you disable at the cli, then (as above) it IS disabled and if you come out of the GUI and back in, you should see that.
 
1 members found this post helpful.
Old 09-12-2012, 10:03 PM   #8
aespara
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for your help Chris,once I disable at cli and check for status I get one result (as above), then i go back in GUI i still can disable the firewall then I check status and get a different result.(as below)

/etc/rc.d/init.d/iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination

Chain FORWARD (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

thank you
 
Old 09-13-2012, 06:00 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
In addition, you should ensure only trusted people have the root access required to do this and make sure you co-ordinate with them.
 
1 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
How to change or disable line wrap in Evolution Skaperen Linux - Software 7 02-11-2011 03:15 AM
how to disable acpi on command line Fred Caro Linux - Newbie 1 08-14-2010 06:26 AM
command line vs gui resnostyle Linux - Newbie 19 05-19-2006 07:24 AM
How to disable beep in command line Backstander Linux - General 6 09-12-2004 02:11 PM
gui vs. command line sdfjk Linux - Newbie 1 10-05-2002 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 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