| Author |
Message |
nattiebo
Veteran Dog


Joined: 14 Apr 2003 Posts: 7077
Location: Not where I should be.
|
Posted:
Wed Jun 27, 2007 9:44 am Post subject: RHEL 4 firewall |
|
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

|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4875
Location: On average, Cheltenham.
|
Posted:
Wed Jun 27, 2007 11:35 am Post subject: Re: RHEL 4 firewall |
|
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:
# system-config-securitylevel-tui
For reference, the gui utility is just:
# system-config-securitylevel
If you don't have these on your system, just do a:
# yum install system-config-securitylevel system-config-securitylevel-tui |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
"Have I seen you at the gym? I don't go to the gym, I'm just naturally like this..."
- Captain Hammer
|
|
|
|
|
squashman
Big Dog


Joined: 08 Oct 2001 Posts: 3462
Location: 1265 Lombardi Ave.
|
Posted:
Wed Jun 27, 2007 1:19 pm Post subject: |
|
|
|
|
|
Nesarin
Toilet Drinker


Joined: 22 May 2003 Posts: 296
Location: ND
|
Posted:
Wed Jun 27, 2007 8:17 pm Post subject: |
|
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!!
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4875
Location: On average, Cheltenham.
|
Posted:
Thu Jun 28, 2007 2:55 am Post subject: |
|
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. |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
"Have I seen you at the gym? I don't go to the gym, I'm just naturally like this..."
- Captain Hammer
|
|
|
|
|
soup4you2
Tail-Wagger


Joined: 15 Mar 2002 Posts: 2452
Location: Desolate wastelands of Virginia
|
Posted:
Thu Jun 28, 2007 5:00 am Post subject: |
|
/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
|
|
|
|
|
Nesarin
Toilet Drinker


Joined: 22 May 2003 Posts: 296
Location: ND
|
Posted:
Thu Jun 28, 2007 7:39 am Post subject: |
|
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!!
|
|
|
|
|
squashman
Big Dog


Joined: 08 Oct 2001 Posts: 3462
Location: 1265 Lombardi Ave.
|
Posted:
Thu Jun 28, 2007 9:59 am Post subject: |
|
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. 
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. |
|
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4875
Location: On average, Cheltenham.
|
Posted:
Fri Jun 29, 2007 4:46 am Post subject: |
|
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. 
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:
# system-config-securitylevel-tui
For reference, the gui utility is just:
# system-config-securitylevel
(The T in TUI stands for text. )
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.
"Have I seen you at the gym? I don't go to the gym, I'm just naturally like this..."
- Captain Hammer
|
|
|
|
|
squashman
Big Dog


Joined: 08 Oct 2001 Posts: 3462
Location: 1265 Lombardi Ave.
|
Posted:
Fri Jun 29, 2007 6:19 am Post subject: |
|
I guess I would just rather type iptables stop |
|
|
|
|
|
|
nattiebo
Veteran Dog


Joined: 14 Apr 2003 Posts: 7077
Location: Not where I should be.
|
Posted:
Fri Jun 29, 2007 8:35 am Post subject: |
|
Thanks, ya'll! I'll give those a shot when I'm back in the office on Monday! |
_________________
Dylan's Site

|
|
|
|
|
|
|