General discussion

  • Creator
    Topic
  • #2075407

    Opening Port on a RHL 6.2 box

    Locked

    by anp04 ·

    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.

All Comments

  • Author
    Replies
    • #3784949

      Opening Port on a RHL 6.2 box

      by beejcyr ·

      In reply to Opening Port on a RHL 6.2 box

      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?

    • #3784941

      Opening Port on a RHL 6.2 box

      by steve cody ·

      In reply to Opening Port on a RHL 6.2 box

      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

    • #3784823

      Opening Port on a RHL 6.2 box

      by mckaytech ·

      In reply to Opening Port on a RHL 6.2 box

      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

      • #3766898

        Opening Port on a RHL 6.2 box

        by anp04 ·

        In reply to Opening Port on a RHL 6.2 box

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

    • #3768477

      Opening Port on a RHL 6.2 box

      by millenium ·

      In reply to Opening Port on a RHL 6.2 box

      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

Viewing 3 reply threads