CentOS Firewall

Support for security such as Firewalls and securing linux
Post Reply
Jurek
Posts: 1
Joined: 2005/07/30 15:49:42
Contact:

CentOS Firewall

Post by Jurek » 2005/07/30 16:02:23

hi, i installed CentOS 4.0 this morning and the standart firewall on the CentOS 4.0 CD's.
i configured everything but i don't know how to open ports with it.

i hope someone can tell me how i open ports with it, thank you :D

ixeous
Posts: 113
Joined: 2005/07/07 13:01:59

CentOS Firewall

Post by ixeous » 2005/08/01 20:37:59

I'm going to suggest that you look at the iptables man page (man iptables) and take a look at the iptables tutorial at http://iptables-tutorial.frozentux.net/iptables-tutorial.html. You will be much better off troubleshooting and fixing any problems in the future if you understand iptables. Also, you should understand the full implication of any firewall rules you configure.

This will allow any computer to connect to ports 22 and 80 on your machine
iptables -A INPUT -p tcp -m multiport --destination-port 22,80

Post Reply

Return to “CentOS 4 - Security Support”