Project

General

Profile

Actions

Feature #331

closed

Implement a command line

Added by Eric Leblond about 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Effort:
Difficulty:
Label:

Description

Some software like nufw for example implement a command line interface that it available when connecting to a unix socket. This provides a basic mean to access to feature just as increase log level or change log level filtering.

It can also be really useful to get information from suricata like dropped packet counts for input module or global statistics (packets rate for example).

Here under the list of commands implemented in nufw (which can be of interest for suricata):

>>> help
version: display nuauth version
confdump: dump configuration
users: list connected users
packets count: display number of decision waiting packets
uptime: display nuauth starting time and uptime
reload: reload nuauth configuration
display debug_level
display debug_areas
display threads
debug_level LEVEL
debug_areas AREAS
help: display this help
quit: disconnect

An other advantage of using a unix socket to exchange information is that it could be used to update/maintain information like IP reputation. It can also be used to provide information to advanced user interface by running a script that translate the custom commands to XML-RPC/JSON output exported to the network.

Actions #1

Updated by Eric Leblond about 13 years ago

  • Estimated time set to 20.00 h
Actions #2

Updated by Victor Julien over 12 years ago

  • Priority changed from Normal to Low
  • Target version set to TBD
Actions #3

Updated by Peter Manev over 12 years ago

add live rule swap to the unix socket

Actions #4

Updated by Victor Julien almost 12 years ago

  • Status changed from New to Closed

Closing this one as we have the unix socket. For specific feature request in the unix socket open new tickets.

Actions #5

Updated by Victor Julien over 9 years ago

  • Target version deleted (TBD)
Actions

Also available in: Atom PDF