|
sockserv − Threaded socket server for snort |
|
sockserv [−bhlqv] [−A delay] [−D <dropsocket>] [−H highwater] [−I interface] [−L lowwater] [−m mode] [−M maxtry] [−N sensorname] [−p port][−P pidfile] [−s <snortsocket>] [−S server] [−V area,level] [−w dir] [−W waittime] |
|
Threaded socket server to create an unix domain socket,
read snort data from it and transfer them via TCP
socket to a central server running
servsock. |
|
−A delay |
|
Print every delay seconds statistics about received, sent and dropped alerts. The change of these values between delay seconds is printed in brackets. See also option −l. |
|
−b |
Start the process in the background: daemon mode. This automatically activates option −l. |
|
−D <dropsocket> |
|
If there are more than highwater alerts buffered then the newest alerts are dropped to <dropsocket> until the lowwater mark is reached. |
|
−H highwater |
|
Sets the highwater mark, see option −D. The default value is 10000. |
|
−h |
Print a help message and exit. |
|
−I interface |
|
Name of the interface on which snort is sniffing (optional). The sensorname plus interface must be unique, so the use of the same sensorname with different interfaces is allowed. |
|
−l |
Log statitiscs to syslog instead of stdout. See also option −A. |
|
−L lowwater |
|
Sets the lowwater mark, see option −D. The default value is 9900. |
|
−m mode |
|
Sets the umask to mode for the daemon mode. This affects the mode for the created unix socket and pid file. The mode can be either given in ascii, octal (with leading 0) or hex (with leading 0x) format. |
|
−M maxtry |
|
Sets the maximum number of tries to (re−) connect to the server. See also option −W. |
|
−N sensorname |
|
Provides the sensorname which should be used with the database. If this option is missing then the hostname is taken. With this option it is possible to run several sockserv instances on one host. But be aware to change the socket via option −s! |
|
−p port |
|
Defines on which port to try to reach the server running servsock. See also option −S. |
|
−P PIDfile |
|
Filename to store the PID. Note: This file must be writeable by the user running sockserv! |
|
−q |
Disables writing of dropped alerts to the unix socket. |
|
−s <snortsocket> |
|
Defines the name and directory where the unix domain socket is opened for snort. The default is /tmp/snort. |
|
−S server |
|
Defines the server running servsock. The name can be either a full qualified domain name or an IP address. The default is 10.200.200.1. See also option −s. |
|
−v |
Display version information. |
|
−V area,level |
|
Activate debug output for area (see README.debug) for informations up to level. A value of ALL activates all areas, level should be between 0 (disabled) and 9 (maximum output). This option can be used several times for different values. |
|
−w dir |
Sets the working directory in daemon mode to dir. The default is to use the current working directory. It is useful to choose "/" to avoid blocking mounted filesystems. |
|
−W waittime |
|
Time in seconds to wait between two connect tries to the server. See also option −M. |
|
/tmp/snort (unix socket) |
|
To run this program the standard way type: sockserv Alternativly you can run it as: sockserv −S central −p 1234 −A 30 Now sockserv will try to connect to the server central on TCP port 1234 and writes statistics every 30 seconds to stdout. To use the drop feature: sockserv −D /tmp/drop −L 1000 −H 1100 To provide a sensor name: sockserv −S central −p 1234 −N Sensor1 |
|
Dirk Geschke <Dirk@geschke−online.de> |
|
The drop feature is optional and has to be
compiled in separately. If it is not compiled in then the
options −D, −L and −H
are missing in the output of the −h option. |
|
servsock(8), drop(8), snort(8) |