LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Disabling Firewall From Command Line (https://www.linuxquestions.org/questions/red-hat-31/disabling-firewall-from-command-line-146482/)

Ben Sytko 02-15-2004 05:32 PM

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

ashamril 02-15-2004 10:01 PM

# service iptables stop
# chkconfig iptables off

aqoliveira 02-16-2004 08:43 AM

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

Ben Sytko 02-16-2004 02:57 PM

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

peter_robb 02-16-2004 05:27 PM

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... :eek:


All times are GMT -5. The time now is 06:23 AM.