Introduction:
system-config-firewall-tui is a tool used in CentOS 6.2 to configure the firewall settings through a text-based interface. It is a useful utility for server administrators who prefer a command-line interface for managing firewall settings. In this guide, we will show you how to install system-config-firewall-tui on a Linux CentOS 6.2 server.
Step 1: Enable EPEL repository
The first step is to enable the EPEL repository. EPEL is an additional repository that provides access to additional software packages for CentOS.
You can enable EPEL repository by running the following command:
sudo yum install epel-release
This will download and install the EPEL repository configuration.
Step 2: Install system-config-firewall-tui
After enabling the EPEL repository, you can install system-config-firewall-tui by running the following command:
sudo yum install system-config-firewall-tui
This will download and install the system-config-firewall-tui package and its dependencies.
[root@centos62 ~]# yum install system-config-firewall-tui -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.hostemo.com * epel: ftp.cuhk.edu.hk * extras: mirrors.hostemo.com * updates: mirrors.hostemo.com CentOS6.2-Repository | 4.0 kB 00:00 ... Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package system-config-firewall-tui.noarch 0:1.2.27-5.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================== Package Arch Version Repository Size ==================================================================================================== Installing: system-config-firewall-tui noarch 1.2.27-5.el6 CentOS6.2-Repository 37 k Transaction Summary ==================================================================================================== Install 1 Package(s) Total download size: 37 k Installed size: 59 k Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : system-config-firewall-tui-1.2.27-5.el6.noarch 1/1 Installed: system-config-firewall-tui.noarch 0:1.2.27-5.el6 Complete!
Step 3: Start system-config-firewall-tui
After installing system-config-firewall-tui, you can start the tool by running the following command:
sudo system-config-firewall-tui
This will open the text-based interface for configuring the firewall settings.
Step 4: Configure firewall settings
Once you have started system-config-firewall-tui, you can use the text-based interface to configure the firewall settings.
Use the arrow keys to navigate the menu and the spacebar to select options.
Once you have made your changes, select “OK” to save the changes and exit the tool.
Restart iptables using this command:
[root@centos62 ~]# service iptables restart
or
[root@centos62 ~]# /etc/init.d/iptables restart
Commands Mentioned:
- yum install – installs packages
- sudo – runs a command with root privileges
- system-config-firewall-tui – starts system-config-firewall-tui tool
Conclusion:
In this guide, we have shown you how to install system-config-firewall-tui on a Linux CentOS 6.2 server. This tool provides a text-based interface for configuring the firewall settings, which can be useful for server administrators who prefer a command-line interface. Remember to start the tool with root privileges and save changes before exiting the tool.