Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-05-2005, 06:52 PM   #1
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Rep: Reputation: 17
Commandline to change firewall setting?

What is the commandline to make changes to the firewall? Specifically I want to disable it completely. I need the changes to be permanent so any changes are not lost after a reboot. I can't use redhat-config-securitylevel since I'm running from runlevel 3.
Old 01-05-2005, 09:42 PM   #2
Registered: Aug 2002
Posts: 16,505

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
To stop iptables at any time.
service iptables stop

The following command will show which runlevels that iptables is configured.
chkconfig --list iptables

The following command will turn iptables off from starting at boot.
chkconfig --level 345 iptables off

Replace 345 with the levels that are shown as on from the --list output.

See man pages for chkconfig for additional help
Old 01-06-2005, 04:38 PM   #3
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Original Poster
Rep: Reputation: 17
Thanks for the reply. I used chkconfig iptables off. After doing this (and after rebooting) though I noticed when I used redhat-config-security level, the firewall is still shown as being enabled with a couple thing checked (SSH and FTP). Using chkconfig --list, iptables is shown as being off though.

As a test, from the GUI I unchecked SSH. From a remote computer I was unable to ssh into that computer whereas I could before. iptables service was still off so I'm not sure why SSH was being blocked. Any ideas?

EDIT: I believe changing the firewall with the GUI activates the iptables service once you apply changes. After rebooting with the SSH box left unchecked (blocked) in the firewall GUI, I was able to SSH into the machine since iptables was off.

Last edited by Arodef; 01-06-2005 at 05:01 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
firewall setting DanielTan Linux - Security 47 11-16-2005 11:09 PM
Is there an interactive way to change date/time from commandline? Akhran Linux - Newbie 1 10-14-2005 12:18 AM
Help Setting up internet through commandline! orangeh Linux - Newbie 10 08-07-2004 11:00 PM
newbie: can't change firewall setting ianunderwood Linux - Networking 2 04-14-2003 03:25 PM
Setting up firewall linuxfond Linux - Newbie 3 02-21-2003 02:52 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:19 PM.

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