Click to See Complete Forum and Search --> : Disabling Ports / Sockets


datadan
07-26-2001, 02:47 PM
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:1024 *:* LISTEN
tcp 0 0 *:1025 *:* LISTEN
tcp 0 0 *:auth *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 * :pop3 *:* LISTEN
tcp 0 0 * :printer *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:www *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN

I have several things LISTENing. How do I turn diable/re-enable that particular port?

For example, I have commented out FTP in /etc/inet.conf and restarted "/etc/rc.d/init.d/inet restart". However FTP is still listening?

I don't know what 1024/1025 are, but I'd like to turn them off until I figure out what they are.


Same question with sockets: I have some sockets "LISTENING" or "CONNECTED". I would like to manually close that INODE (587 in this case) until I get some better information about this stuff. How would I close/open a socket?

unix 0 [ ACC ] STREAM LISTENING 587 /dev/printer


Thank you

optech
07-26-2001, 04:09 PM
comment out what you don't need in /etc/inetd.conf
also go into /etc/rc.d/ and edit the scripts... (mainly rc.inet1, rc.inet2)
and when you post something like that, disable ubb...
you had
:printer as ': P' does this :p