Discussion Locked

Opening Port on a RHL 6.2 box

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi!
I am using a RHLinux 6.2 box as a mailgateway, which I has configured myself. However, After making this box operational, I found that I am not able to telnet or ftp to this box. However, I can do the same from this box. I tried to open inetd.conf, only to find that this file was not present anywhere on the BOX. I need to open port 23(telnet) and port 20/21(ftp). Port 25 is open and I can telnet to it.

Since this box is configured only a few hours ago and is online, there is no possibility of any one vandalising it.

Please let me now, how to open telnet and ftp ports on this machine.

8 replies

by beejcyr

The first place I would check is in the TOP listing or load linuxconf and check under Control/Control Panel/Control Service Activity. Scroll through that list to see if the inet service is enabled and if its running. If not, enable it, and that will probably take care of everything.
If you are able to telnet and ftp to locahost and not remotly, then you will want to check your routing. Are you abel to ping other severs? Does nslookup work for you?

by steve cody

Check the /etc/inetd.conf file. Make sure there is NOT a # sign in front of FTP and TELNET in the lines. If so, remove them and to a kill -HUP on the inetd daemon.

Then check your /etc/hosts.allow file and check for a line that like:
in.telnetd: 192.168.
or whatever. See if your IP block is listed as having access to telnetd and also in.ftpd.
You can replace the lines with ALL:ALL and that should let you into all services. But, anyone could attempt to connect to them as well.
- Steve

by mckaytech

I just did a RH6.2 installatiion and found that neither telnet nor FTP install by default (probably for security reasons). It's not a matter of the ports being closed - it's that the services aren't running.

You can use RPM to install telnet-server and wu-ftpd and then use the information given in the other answers to configure it.

Incidentally, another surprise to me was that there is not an inetd.conf in the default RH6.2 installation. You'll need to create one - to get the format right, look at the inetd.conf man page. Standard placement for the file is in /etc

Hope this helps....

paul

by anp04

Hi,
You deserved 100% but I was able to find it out on the Red-HAT website. Thanks a lot for your efforts.

by millenium

well, they changed rh 6.2. Its run seperate now. You might want to type linuxconf after the rpm install, then go to control service activity. Make sure ur inetd.conf is running. THen make sure that the # is not in your /etc/inetd.conf where the telnet section is

This discussion is closed to new replies.