LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 01-05-2005, 05:52 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 122

Rep: Reputation: 16
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, 08:42 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,530

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
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, 03:38 PM   #3
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 122

Original Poster
Rep: Reputation: 16
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 04:01 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
firewall setting DanielTan Linux - Security 47 11-16-2005 10:09 PM
Is there an interactive way to change date/time from commandline? Akhran Linux - Newbie 1 10-13-2005 11:18 PM
Help Setting up internet through commandline! orangeh Linux - Newbie 10 08-07-2004 10:00 PM
newbie: can't change firewall setting ianunderwood Linux - Networking 2 04-14-2003 02:25 PM
Setting up firewall linuxfond Linux - Newbie 3 02-21-2003 01:52 PM


All times are GMT -5. The time now is 08:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration