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:

/etc/init.d/iptables
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:

system-config-securitylevel-tui

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

system-config-securitylevel-tui

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.

Comments

Leave a Reply