Commandline to change firewall setting?
What is the commandline to make changes to the firewall? Specifically I want to disable it completely. I need the changes to be permanent so any changes are not lost after a reboot. I can't use redhat-config-securitylevel since I'm running from runlevel 3.
|
To stop iptables at any time.
service iptables stop The following command will show which runlevels that iptables is configured. chkconfig --list iptables The following command will turn iptables off from starting at boot. chkconfig --level 345 iptables off Replace 345 with the levels that are shown as on from the --list output. See man pages for chkconfig for additional help |
Thanks for the reply. I used chkconfig iptables off. After doing this (and after rebooting) though I noticed when I used redhat-config-security level, the firewall is still shown as being enabled with a couple thing checked (SSH and FTP). Using chkconfig --list, iptables is shown as being off though.
As a test, from the GUI I unchecked SSH. From a remote computer I was unable to ssh into that computer whereas I could before. iptables service was still off so I'm not sure why SSH was being blocked. Any ideas? EDIT: I believe changing the firewall with the GUI activates the iptables service once you apply changes. After rebooting with the SSH box left unchecked (blocked) in the firewall GUI, I was able to SSH into the machine since iptables was off. |
All times are GMT -5. The time now is 06:34 AM. |