Sometimes in troubleshooting process is necessary to turn of firewall for a short period of time.

In Linux based OS usually IPtables is used as firewall. It runs as service and could be stopped, started or restarted. In addition the status could be checked.

Here is how to do it:

Command line

When in terminal type:

Usage: /etc/init.d/iptables {start|stop|restart|condrestart|status|panic|save}

Gives you hints how to use it.

Note that to execute any of actions you need administrative privileges – either login as root, “su -” or setup sudo.

another tool that is doing the same is

service iptables <command>

If you like GUI but use command prompt you can use:


And you will have simple interface of configuring security – firewall and selinux


GUI based

From GUI you can use the same tool just by removing -tui or go to System–>Administration –> Security level and firewall.

Another GUI frienly way is System–>Administration –> Services where you can do the same actions as from terminal.

TIP: Do not leave your system unprotected on Internet. Use cheap SOHO firewall in front of the system until IPtables is set up.

TIP: If you are newbie in firewall configuration use some third party tools as firestarter to guide you in your setup.

NOTE: Above steps are for RHEL (CentOS) compatible systems.


Leave a Reply

You must be logged in to post a comment.