|
Dónde obtenerlo ? Requerimientos Instalación 1.-
Descomprimir y desempaquetar el software. 2.-
Cambiarse a el directorio de portsentry 3.- Editar
el archivo Makefile y comentar la línea que contenga CC= cc y
descomentar la línea que contenga CC= gcc #CC = cc 4.- Editar
el archivo portsentry_config.h para enviar cualquier mensaje a
LOG_LOCAL1 En las
líneas siguientes poner los parámetros adecuados
localmente, poner la ruta del archivo de configuración del
portsentry 6.-
Modificar el archivo syslog.conf para agregar a local1: poner en la
última línea del archivo lo siguiente: 7.- Editar
el archivo portsentry.conf y descomentar la línea KILL_ROUTE que
corresponda para la plataforma. En este caso fue Sun. # Generic Sun 8.- Teclear
el comando make solaris <--- plataforma. 9.-
Convertirse en superusuario y teclear el comando make install como root. 10.- Buscar
el demonio syslogd y reiniciarlo. 11.- Crear
el archivo portsentry.log 12.- Correr
portsentry. Info de: http://www.servidores.unam.mx/ |
Regresar |
FIND OPEN TCP PORTS AND PIDs
PCP script to find open TCP ports and PIDs in Solaris
PCP is a script that can help you quickly find Processes (PIDs)
having particular TCP Port(s) open, TCP ports open by specific PIDs
or even list all the TCP Ports open by all PIDs running on your system.
PIDs for TCP Port
Run PCP with "-p" option to show the PIDs of processes having a
TCP port (say Port 22)
Example:
test@mx3 # ksh "pcp.ksh" -p 22
PID Process Name and Port
_________________________________________________________
26308 sshd 22
sockname: AF_INET 10.0.0.7 port: 22
sockname: AF_INET 10.0.0.7 port: 22
sockname: AF_INET 10.0.0.7 port: 22
_________________________________________________________
TCP Ports open by PIDs
Run PCP with "-P" option to show the TCP ports open by specific PID
PIDs for all open TCP Ports
Use the "-a" option to list all TCP ports open with all the PIDs
Many thanks for this Script Sam Nelson and Daniel Trinkle trinkle