Operating System - Linux
1819801 Members
3311 Online
109607 Solutions
New Discussion юеВ

how to disable the firewall

 
SOLVED
Go to solution
peterchu
Super Advisor

how to disable the firewall

I just installed the rh linux , i know the firewall is enabled by default , how to disable it ? thx.
6 REPLIES 6
Jerome Henry
Honored Contributor
Solution

Re: how to disable the firewall

Hi,

service iptables stop

It is stopped

chkconfig --level 345 iptables off

It is not restarted at reboot.

Of course, you're not protected anymore...

Hope it helps

jerome Henry
You can lean only on what resists you...
Ranjith_5
Honored Contributor

Re: how to disable the firewall

Do the following

#redhat-config-securitylevel

disable firewall


Regards,
Syam
Ross Minkov
Esteemed Contributor

Re: how to disable the firewall

/usr/bin/redhat-config-securitylevel-tui --quiet --disabled

the "--quiet --disbled" options allow you to run this command without having to explicitly navigate menus

HTH,
Ross
Johannes Krackowizer_1
Valued Contributor

Re: how to disable the firewall

hi peterchu,

type ntsysv

with this tool you can enable or disable all services on your box. disable (uncheck) all services that are called iptables, ipchains, firewall or so to deactivate the firewall. then there are three ways to procced:

1) you need to reboot to make changes working (this is the simpliest one)
2) type init 1 wait until reday and then type init 3 (without Xserver), or init 5 (with Xserve).
3) type service iptables stop, service ipchains stop, ... to stop the services (i'm not sure if iptables, ipchains or firewall are the correct spelled service names, have a look at directory /etc/rc.d/init.d. the filenames are equal to the service names.

best regards,

johannes
"First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture." (Linus Torvalds)
Steven E. Protter
Exalted Contributor

Re: how to disable the firewall

Instructions above are perfect for Red Hat Compatible Linux.

You need to provide such details to get accurate solutiosn.

If this were my thread I'd award 10 points to the top two answers.

hint hint, wink wink... None for me please.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ted M Johnson_1
Frequent Advisor

Re: how to disable the firewall

If you want to see what's in your firewall ruleset, use:
# iptables -L

Or, to remove all rules (similar to turning the firewall off):
# iptables -F