Search

 

Here you can search and view our site Knowledge Base.
To find a specific article, use KB-article number format (ex. KB-1)

Article number: Article number: kb-36
Q. How do I disable/stop firewall in Linux server?

A. Iptables Firewall

To check the status of your firewall and all rules, enter:
# sudo iptables -vL
or
# iptables -L -n
or
# sudo iptables -L
or
# sudo iptables -L -n

To display numeric values, type

# sudo iptables -vnL

To Stop firewall
# sudo iptables -L -n
# service iptables stop

How do I disable firewall?
First login as the root user.
Next enter the following three commands to disable firewall.

# service iptables stop
# service iptables save
# chkconfig iptables off

This page has been viewed 735 times

Other questions in this category Other questions in this category
1. How to find CentOS memory usage? (viewed 675 times)
2. How to Eject/Close CD or DVD media with shell command? (viewed 664 times)
3. How Do I Find Out My Linux Gateway / Router IP Address? (viewed 614 times)
4. How Shutting Down and Reboot CentOS via SSH? (viewed 603 times)
5. In CentOS, how to find free disk space? (viewed 597 times)
6. How to work with ping command? (viewed 595 times)

Return to Search

Back to Top