Firewall Configuration for CentOS 6

Firewall Configuration (GUI) 

This section describes how to use the Firewall Configuration tool to configure the firewall.

1. Click System, select Administration and click Firewall. This will launch the Firewall Configuration window.


2. Click Close in the Firewall Configuration Startup window.


3. Type in the root password and click Authenticate.


If the Firewall Configuration Startup window does not disappear after clicking Close, click the window behind it to bring the Authenticate window into the foreground.

4. In the service list, check Mail (SMTP) and WWW (HTTP).


5. Click Other Ports and click Add.


6. Select 110 tcp pop3 and click Ok. Do the same for 143 tcp imap.


 7. Finally, click Apply to save your changes.

 

Firewall Configuration (TUI)

This section describes how to use the Firewall Configuration text user interface (TUI) tool to configure the firewall.

1.  Launch the Firewall Configuration tool using the command below.

system-config-firewall-tui


2. In Firewall Configuration screen, press the Customize button.


3. In the service list, check Mail (SMTP) and WWW (HTTP). Press Forward when you are done.


4. Press Add to add a custom port.


5. Type in 110 to the field Port and tcp to the field Protocol. Press OK when you are done. Do the same for 143:tcp.


6. After adding the two ports press Close.


7. Finally, press OK and press Yes to confirm overriding of firewall configuration.


You can see the list of service and port numbers using the command below.
 
getent services
Share on Google Plus

About somono chek

Hi, I am Somono Chek. I've been working in IT field for 8 years. I created this blog for sharing my experiences and knowledge for this 8 years related to IT Skill: Networking, Network Security, Linux Server, Windows Server and other skill related to IT.

0 comments:

Post a Comment