LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-15-2004, 05:32 PM   #1
Ben Sytko
LQ Newbie
 
Registered: Jan 2002
Location: Grand Rapids, MI
Posts: 27

Rep: Reputation: 15
Disabling Firewall From Command Line


Hello,

I installed Red Hat 9 in "server" mode and I enabled the firewall during install. Now, I can't access Apache remotely so I need to disable the firewall. Anyone know how to do this from the command line? Its a server install so I didn't install X. The system isn't powerful enough to handle X anyway. Thanks

-Ben
 
Old 02-15-2004, 10:01 PM   #2
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Rep: Reputation: 15
# service iptables stop
# chkconfig iptables off
 
Old 02-16-2004, 08:43 AM   #3
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

Nothing wrong in what ashamril said but could try this as well:

option 1:

service iptables stop
service iptables save


option 2:

ntsysv
setup

both these options are mneu driven and allows u stop and save the services.

chow
 
Old 02-16-2004, 02:57 PM   #4
Ben Sytko
LQ Newbie
 
Registered: Jan 2002
Location: Grand Rapids, MI
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks both of you! Now will this make it so the firewall never starts or do I need to run some other commands to make it not start everytime I boot the server. Not that I plan on rebooting that often, but still. Thanks
 
Old 02-16-2004, 05:27 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
WARNING!!

aqoliveira
Think carefully about your 1st option...

service iptables stop...clears the rules
service iptables save... will save the current active rules (now cleared=none) into /etc/sysconfig/iptables,
effectively wiping the old ruleset out...
 
  


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
disabling firewall with ssh only pureblood Suse/Novell 2 01-28-2005 12:12 AM
Configure FC1 firewall in command line codyz062003 Linux - Security 1 12-12-2004 09:05 PM
disabling behind the firewall asimhafeez Linux - Security 2 06-16-2004 03:35 AM
disabling user accounts via command line n1wil Linux - Security 3 07-25-2003 05:11 PM
disabling firewall morganwolfe Linux - Security 1 01-26-2002 12:12 AM


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