LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Linux
Author Message
nattiebo
Veteran Dog
Veteran Dog


Joined: 14 Apr 2003
Posts: 7077
Location: Not where I should be.

Post Posted: Wed Jun 27, 2007 9:44 am   Post subject: RHEL 4 firewall Reply with quote Back to top  

How can I disable a firewall in rhel 4 through the command line. How do I know what firewall is running??? HELP, please!

_________________


Dylan's Site

View user's profile Send private message Visit poster's website AIM Address MSN Messenger
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4959
Location: On average, Cheltenham.

Post Posted: Wed Jun 27, 2007 11:35 am   Post subject: Re: RHEL 4 firewall Reply with quote Back to top  

nattiebo wrote:
How can I disable a firewall in rhel 4 through the command line. How do I know what firewall is running??? HELP, please!


A stock RHEL installation uses iptables. The text mode config utility is:

Code: Select all
#  system-config-securitylevel-tui


For reference, the gui utility is just:

Code: Select all
#  system-config-securitylevel


If you don't have these on your system, just do a:

Code: Select all
#  yum install system-config-securitylevel system-config-securitylevel-tui

_________________
Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.


Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.

If only 20% of your staff is programmers, and you can save 50% on salary by outsourcing programmers to India, well, how much of a competitive advantage are you really going to get out of that 10% savings?
View user's profile Send private message Send e-mail Visit poster's website
squashman
Big Dog
Big Dog


Joined: 08 Oct 2001
Posts: 3486
Location: 1265 Lombardi Ave.

Post Posted: Wed Jun 27, 2007 1:19 pm   Post subject: Reply with quote Back to top  

I remember doing this with 2 simple commands many years ago, but I haven't run a Linux box in a couple of years.

I just googled to find this. Seems to be a little over kill.
http://www.faqs.org/docs/iptables/rcflush-iptablestxt.html


I would think you could do something simple like this.
iptables -F
iptables -A "chain" ACCEPT

But according to this website
Quote:
RedHat enterprise Linux and Fedora Core (FC) / Centos Linux comes with pre-installed script which can be used to stop the firewall:
#/etc/init.d/iptables stop

http://www.cyberciti.biz/tips/linux-iptables-how-to-flush-all-rules.html
View user's profile Send private message Send e-mail
Nesarin
Toilet Drinker
Toilet Drinker


Joined: 22 May 2003
Posts: 297
Location: ND

Post Posted: Wed Jun 27, 2007 8:17 pm   Post subject: Reply with quote Back to top  

squashman wrote:
I remember doing this with 2 simple commands many years ago, but I haven't run a Linux box in a couple of years.

I just googled to find this. Seems to be a little over kill.
http://www.faqs.org/docs/iptables/rcflush-iptablestxt.html


I would think you could do something simple like this.
iptables -F
iptables -A "chain" ACCEPT

But according to this website
Quote:
RedHat enterprise Linux and Fedora Core (FC) / Centos Linux comes with pre-installed script which can be used to stop the firewall:
#/etc/init.d/iptables stop

http://www.cyberciti.biz/tips/linux-iptables-how-to-flush-all-rules.html


DITTO to that. works every time, those crazy init.d scripts. Or of course if you wanted to see what iptables is actually doing, I think the file is /etc/sysconfig/iptables

_________________
OH BALLZ!!
View user's profile Send private message
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4959
Location: On average, Cheltenham.

Post Posted: Thu Jun 28, 2007 2:55 am   Post subject: Reply with quote Back to top  

You guys don't half like making life hard for yourselves... The system-config-securitylevel-tui tool that comes with RHEL comes with a giant "disable" button for the firewall right in the middle of the screen. Wink

_________________
Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.


Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.

If only 20% of your staff is programmers, and you can save 50% on salary by outsourcing programmers to India, well, how much of a competitive advantage are you really going to get out of that 10% savings?
View user's profile Send private message Send e-mail Visit poster's website
soup4you2
Tail-Wagger
Tail-Wagger


Joined: 15 Mar 2002
Posts: 2453
Location: Desolate wastelands of Virginia

Post Posted: Thu Jun 28, 2007 5:00 am   Post subject: Reply with quote Back to top  

/etc/init.d/iptables stop

or

/sbin/service iptables stop

Quote:

If you don't have these on your system, just do a:

Code:
# yum install system-config-securitylevel system-config-securitylevel-tui


i dont think rhel comes stock with yum, i think FC5 does but FC4 uses up2date

_________________
tomorrow will be canceled due to lack of interest
View user's profile Send private message Send e-mail
Nesarin
Toilet Drinker
Toilet Drinker


Joined: 22 May 2003
Posts: 297
Location: ND

Post Posted: Thu Jun 28, 2007 7:39 am   Post subject: Reply with quote Back to top  

soup4you2 wrote:


i dont think rhel comes stock with yum, i think FC5 does but FC4 uses up2date



Agreed, no yum until 5, only up2date

_________________
OH BALLZ!!
View user's profile Send private message
squashman
Big Dog
Big Dog


Joined: 08 Oct 2001
Posts: 3486
Location: 1265 Lombardi Ave.

Post Posted: Thu Jun 28, 2007 9:59 am   Post subject: Reply with quote Back to top  

CheeseMonger The Great wrote:
You guys don't half like making life hard for yourselves... The system-config-securitylevel-tui tool that comes with RHEL comes with a giant "disable" button for the firewall right in the middle of the screen. Wink

Is that a GUI. Because I have never installed any GUI on any of my RH boxes. I learned to do everything cmd line. But the last version of Red Hat I used was version 9.
View user's profile Send private message Send e-mail
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4959
Location: On average, Cheltenham.

Post Posted: Fri Jun 29, 2007 4:46 am   Post subject: Reply with quote Back to top  

squashman wrote:
CheeseMonger The Great wrote:
You guys don't half like making life hard for yourselves... The system-config-securitylevel-tui tool that comes with RHEL comes with a giant "disable" button for the firewall right in the middle of the screen. Wink

Is that a GUI. Because I have never installed any GUI on any of my RH boxes. I learned to do everything cmd line. But the last version of Red Hat I used was version 9.


CheeseMonger The Great wrote:
The text mode config utility is:

Code: Select all
#  system-config-securitylevel-tui


For reference, the gui utility is just:

Code: Select all
#  system-config-securitylevel



(The T in TUI stands for text. Wink)

I don't know if they're in RH9, but they definitely come with RHEL4. Like Soup says, use up2date to install it if you don't have it, not yum. (I'm spoiled by CentOS, obviously.)

_________________
Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.


Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.

If only 20% of your staff is programmers, and you can save 50% on salary by outsourcing programmers to India, well, how much of a competitive advantage are you really going to get out of that 10% savings?
View user's profile Send private message Send e-mail Visit poster's website
squashman
Big Dog
Big Dog


Joined: 08 Oct 2001
Posts: 3486
Location: 1265 Lombardi Ave.

Post Posted: Fri Jun 29, 2007 6:19 am   Post subject: Reply with quote Back to top  

I guess I would just rather type iptables stop
View user's profile Send private message Send e-mail
nattiebo
Veteran Dog
Veteran Dog


Joined: 14 Apr 2003
Posts: 7077
Location: Not where I should be.

Post Posted: Fri Jun 29, 2007 8:35 am   Post subject: Reply with quote Back to top  

Thanks, ya'll! I'll give those a shot when I'm back in the office on Monday! Smile

_________________


Dylan's Site

View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!