SUMMARY : How to prevent TCP port 25 from opening automatically at startup

From: Arturo <arturoespin_at_yahoo.com>
Date: Tue, 20 Nov 2001 12:29:03 -0500

Thanks to all the people that answer this one.
Here is the answer:

1)To prevent TCP port 25 from opening automatically do:

        cd /sbin/rc3.d
        mkdir #OFF {#OFF as example, or any folder name with meaning to you}
        ./S40sendmail stop
        mv S40sendmail #OFF

2)Someone mentioned also to :

Comment it out of your /etc/services file {the line that refers to port smtp}

I didn't modified the services file because doing step #1 worked fine.
2)To prevent a service form exposing his release version upon a telnet session opened for it:
  In the case of FTP service: open /usr/sbin/ftpd with emacs {or your preferred editor} and do a search for "Version x.yz" {x.yz is your server version number}, replace the real number with something like x.xx be careful in keeping the same amount of characters and leave the period where it was. (file size can not be changed). Save the buffer an that's it. Next time you do a telnet to your ftp port the version name is not going do reveal version number.
Another approach is to replace the FTP server with a different one like the one found at ftp://ftp.astro.su.se this one does not reveal any info after the 220 line.




hello listers
this is an easy one:

(Tru64 V4.0E), how do I prevent that port 25 (smtp) gets open
automatically every time my server boots up. I also want to dissable the
banner for ports that I have to deal with like FTP for example. I'm
refering to the banner whe you do a telnet to port 21 for example, that
presents the ftp host name ftp version etc.

Thanks in advance



_________________________________________________________

Do You Yahoo!?

Get your free _at_yahoo.com address at http://mail.yahoo.com
Received on Tue Nov 20 2001 - 17:31:00 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT