LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-07-2010, 07:30 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
Howto disable Red Hat Linux Firewall.


Hi,
I want to permantaly stop my Red Hat Linux firewall.I use the following command

#/etc/init.d/iptables save

and then

#/etc/init.d/iptables stop


By using this still that session the Red Hat Linux Firewall is stop but
when I restart my linux box it again enabLE.Is there any way that it may permantaly off and when I need i may turn on it ?

thanks
garden
 
Old 04-07-2010, 07:32 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
Quote:
Originally Posted by gardenair View Post
Hi,
I want to permantaly stop my Red Hat Linux firewall.I use the following command

#/etc/init.d/iptables save

and then

#/etc/init.d/iptables stop


By using this still that session the Red Hat Linux Firewall is stop but
when I restart my linux box it again enabLE.Is there any way that it may permantaly off and when I need i may turn on it ?

thanks
garden
Run this command:

Quote:
#chkconfig iptables off
Now to turn it on again you can run:

Quote:
#service iptables start

Last edited by Sayan Acharjee; 04-07-2010 at 07:34 AM.
 
Old 04-07-2010, 07:37 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
thansk for the reply.well what is the main differnce batween the command which u mention and which I have mention i.e

#/etc/init.d/iptables save

and then

#/etc/init.d/iptables stop


they work same internally or these r two different things...please just explain.
 
Old 04-07-2010, 07:39 AM   #4
kevmcool
Member
 
Registered: Dec 2009
Location: London
Distribution: CentOS
Posts: 36

Rep: Reputation: 15
hey friend

i always use the setup command
from the command line
choose firewall
enable or disable
and then use customize to select whats enabled
im only a newbie
but it works for me even after a reboot
i love the low res feel
pity you cant get stuff like setroubleshoot without starting x
good luck
 
Old 04-07-2010, 07:43 AM   #5
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
Quote:
Originally Posted by gardenair View Post
thansk for the reply.well what is the main differnce batween the command which u mention and which I have mention i.e

#/etc/init.d/iptables save

and then

#/etc/init.d/iptables stop


they work same internally or these r two different things...please just explain.
#/etc/init.d/iptables save and service iptables save both are the same except that in your command you are running the executable command from its exact location which is /etc/init.d, its like running ls command from /bin/ls instead of running simply ls.
 
Old 04-07-2010, 08:04 AM   #6
kevmcool
Member
 
Registered: Dec 2009
Location: London
Distribution: CentOS
Posts: 36

Rep: Reputation: 15
hey friend

chkconfig defines what services start at boot

service iptables start|stop starts or stops iptables straight away
 
Old 04-08-2010, 12:48 AM   #7
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
thanks for the reply.well as "sayan_acharjee" and "kevmcool" said
Code:
chkconfig defines what services start at boot
So we can say that to permanently turn off Red Hat Linux Firewall at boot time we can use

Code:
# chkconfig iptables off
and to turn on firewall at boot time we can use

Code:
#service iptables start
I just need to know for me knowledge.
thanks
garden
 
Old 04-08-2010, 12:50 AM   #8
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
Quote:
Originally Posted by gardenair View Post
thanks for the reply.well as "sayan_acharjee" and "kevmcool" said
Code:
chkconfig defines what services start at boot
So we can say that to permanently turn off Red Hat Linux Firewall at boot time we can use

Code:
# chkconfig iptables off
and to turn on firewall at boot time we can use

Code:
#service iptables start
I just need to know for me knowledge.
thanks
garden
To turn on firewall at boottime you need to use:
Quote:
#chkconfig iptables on
 
Old 04-08-2010, 12:59 AM   #9
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
I appriciate your your help

well can we use


# service iptables save
# service iptables stop
# chkconfig iptables off

why use # service iptables save if we just use # chkconfig iptables off instead of to 1st save and then stop.

what is the professional wany?
 
Old 04-08-2010, 01:10 AM   #10
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
Quote:
Originally Posted by gardenair View Post
I appriciate your your help

well can we use


# service iptables save
# service iptables stop
# chkconfig iptables off

why use # service iptables save if we just use # chkconfig iptables off instead of to 1st save and then stop.

what is the professional wany?
If you have made any changes in the firewall rules then you need to run the following command to save your changes:
Quote:
#service iptables save
Then you should restart or start the service according to the current iptables state in your system:
Quote:
#service iptables start
or

Quote:
#service iptables restart
To keep the iptables active accross reboots you need to issue:

Quote:
#chkconfig iptables on
 
Old 04-08-2010, 01:39 AM   #11
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
Thumbs up

thanks "sayan_acharjee" and rest of the users for the kind guidence and help.
 
Old 04-08-2010, 01:44 AM   #12
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
If you think your problem is solved then please mark the thread as solved
Have a good day.....
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: HowTo setup a Quorum Disk under Red Hat Linux LXer Syndicated Linux News 0 08-24-2009 10:50 PM
LXer: How can I disable device-mapper-multipath in Red Hat Enterprise Linux 5? LXer Syndicated Linux News 0 03-11-2008 04:50 AM
setting firewall in red hat linux amitkush Red Hat 1 09-04-2005 10:25 PM
How to install and configure a firewall on Red Hat 9 linux fhameed Linux - Security 3 05-01-2004 04:22 PM

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

All times are GMT -5. The time now is 08:21 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration