Opening, blocking and changing ports on RedHat

2011-01-04 Thread keith smith
Hi, I'm working on several CentOS and one RHEL servers.  I needed to open a port the other day so I did a search and the info I found lead me to believe the only way to open or close a port was via iptables.  Is that the complete story? For example, if I want to open port 3306 for MySql I nee

Re: Opening, blocking and changing ports on RedHat

2011-01-04 Thread JD Austin
Yes however you can open the port from the GUI under system-> administration -> security level and firewall if you don't want to poke around on the command line. Likely the reason you don't have to open the special service for ssh is that sshd is a trusted service. JD On Tue, Jan 4, 2011 at 12:52,

Re: Opening, blocking and changing ports on RedHat

2011-01-04 Thread keith smith
Ok,  Thanks!  No GUI on these boxes. All CL. Keith Smith --- On Tue, 1/4/11, JD Austin wrote: From: JD Austin Subject: Re: Opening, blocking and changing ports on RedHat To: "Main PLUG discussion list" Date: Tuesday, January 4, 2011, 1:02 PM Yes howev

Re: Opening, blocking and changing ports on RedHat

2011-01-04 Thread Stephen
ect: Re: Opening, blocking and changing ports on RedHat > To: "Main PLUG discussion list" > Date: Tuesday, January 4, 2011, 1:02 PM > > > Yes however you can open the port from the GUI under > system-> administration -> security level and firewall > if you don'

Re: Opening, blocking and changing ports on RedHat

2011-01-04 Thread JD Austin
I believe Centos uses /etc/sysconfig/iptables /etc/sysconfig/iptables-config and scripts in /usr/share/system-config-securitylevel/ for the GUI to set open ports. The file that matters is /etc/sysconfig/iptables it generally looks like this (I grabbed this from a centos5.5 box): # Firewall confi

Re: Opening, blocking and changing ports on RedHat

2011-01-04 Thread Eric Shubert
On 01/04/2011 12:52 PM, keith smith wrote: Hi, I'm working on several CentOS and one RHEL servers. I needed to open a port the other day so I did a search and the info I found lead me to believe the only way to open or close a port was via iptables. Is that the complete story? For example, if

Re: Opening, blocking and changing ports on RedHat

2011-01-04 Thread Nitin Sharma
/etc/services - is used to map ports and service-names to protocols, such as - telnet 23/tcp The name "telnet" is then referenced on /etc/inetd.conf which would then map these "service-names" to corresponding server that would get spawned(binary executable). If you are on a centos, check for xine

Re: Opening, blocking and changing ports on RedHat

2011-01-04 Thread Dale Farnsworth
Eric 'shubes' wrote: > On 01/04/2011 12:52 PM, keith smith wrote: > > Here is a twist. I set my SSHD to port 2200 but did not change > > /etc/services, which lists ici on port 2200 for both tcp and udp. I am > > able to shell in using port 2200. Why no conflict? > > > > Keith Smith > > I don't kno