How can I disable firewall in command line and see the change in the gui
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.