teak the suricata table some and update the freebsd init script

Este commit está contenido en:
Zane C. B-H 2022-10-19 02:59:03 -05:00
padre 0831d2059a
commit 98b6621054
Se han modificado 2 ficheros con 7 adiciones y 6 borrados

Ver fichero

@ -23,6 +23,7 @@ load_rc_config $name
# set defaults # set defaults
: ${lilith_enable:=NO} : ${lilith_enable:=NO}
: ${lilith_user:="root"} : ${lilith_user:="root"}
: ${lilith_wheel:="wheel"}
: ${lilith_flags:=""} : ${lilith_flags:=""}
: ${lilith_facility:="daemon"} : ${lilith_facility:="daemon"}
: ${lilith_priority:="debug"} : ${lilith_priority:="debug"}
@ -31,7 +32,7 @@ pidfile="/var/run/${name}/pid"
command="/usr/local/bin/${name}" command="/usr/local/bin/${name}"
command_interpreter="/usr/local/bin/perl" command_interpreter="/usr/local/bin/perl"
pidfile="/var/run/${name}/pid" pidfile="/var/run/${name}/pid"
command_args="-a run --daemonize" command_args="-a run --daemonize --user ${lilith_user} --group ${lilith_group}"
start_precmd="${name}_precmd" start_precmd="${name}_precmd"
lilith_precmd() lilith_precmd()

Ver fichero

@ -286,11 +286,11 @@ sub create_tables {
. 'flow_pkts_toclient integer, ' . 'flow_pkts_toclient integer, '
. 'flow_bytes_toclient integer, ' . 'flow_bytes_toclient integer, '
. 'flow_start TIMESTAMP WITH TIME ZONE, ' . 'flow_start TIMESTAMP WITH TIME ZONE, '
. 'classification varchar(1024) NOT NULL, ' . 'classification varchar(1024), '
. 'signature varchar(2048) NOT NULL,' . 'signature varchar(2048),'
. 'gid int NOT NULL, ' . 'gid int, '
. 'sid bigint NOT NULL, ' . 'sid bigint, '
. 'rev bigint NOT NULL, ' . 'rev bigint, '
. 'raw json NOT NULL, ' . 'raw json NOT NULL, '
. 'PRIMARY KEY(id) );' ); . 'PRIMARY KEY(id) );' );
$sth->execute(); $sth->execute();