clog /var/log/system.log | grep "update IDS rules"
cat /var/cron/tabs/root
Aug 31 22:13:36 configd.py: [e0bdcf55-61af-4d6a-87e2-f763fa23091a] get suricata daemon statusAug 31 22:13:36 configd.py: [7ed96fa6-b30b-45f0-8365-32f90e886b57] request installable rulesAug 31 22:12:35 configd.py: [de0f384a-5e35-4087-bfbd-a5bedce859ff] get suricata daemon statusAug 31 22:12:35 configd.py: [6440d91a-dd80-4eaf-a7eb-87f5bd48da42] request installable rulesAug 31 22:11:03 configd.py: [5da71fad-9fea-4297-94d6-4895c632dd62] get suricata daemon statusAug 31 22:11:03 configd.py: [c09d7ee2-8ece-4a1b-a492-7e8cc4b940f6] request installable rulesAug 31 22:09:36 configd.py: [e4478128-8b7c-4894-a25e-6b0879c137cc] get suricata daemon statusAug 31 22:09:36 configd.py: [4393efa3-7de5-4339-ba4c-9a60b50ac96b] request installable rulesAug 31 22:06:53 configd.py: [3a81d941-cab0-4692-b8bb-974a9189834a] get suricata daemon statusAug 31 22:06:53 configd.py: [bca87310-06f5-49a6-bf5a-1fce0b1f8a89] request installable rulesAug 31 22:06:50 configd.py: [03359858-4864-4b89-9144-09cc22e49b33] get suricata daemon statusAug 31 22:06:50 configd.py: [41778be4-0bea-4886-854b-602b5f9ae100] request installable rulesAug 31 22:06:47 configd.py: [9e6b7f72-b3f2-44fa-ae0d-0b299f931cc2] restarting cron
clog /var/log/system.log | grep "update and reload suricata rules"
crontab -l
ls -asl /usr/local/etc/suricata/rules
Sorry, I put the wrong log text in the grep command.Can you try this?Code: [Select]clog /var/log/system.log | grep "update and reload suricata rules"And then check what the cron daemon itself finds of it, by running this:Code: [Select]crontab -lIt should look like the contents of the cron file with some lines above it.Maybe one other thing to check are the timestamps from the last downloaded files, using:Code: [Select]ls -asl /usr/local/etc/suricata/rulesOur own system is scheduled for daily update at 0:10, which seems to work just fine, it's probably something small.
root@Chronos:~ # clog /var/log/system.log | grep "update and reload suricata rules"root@Chronos:~ # crontab -lSHELL=/bin/shPATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin# Order of crontab fields# minute hour mday month wday command# Origin/Description: IDS/ids rule updates1 * * * * /usr/local/sbin/configctl ids updateroot@Chronos:~ # ls -asl /usr/local/etc/suricata/rulestotal 4484 4 drwxr-xr-x 2 root wheel 2048 Sep 1 00:22 . 4 drwxr-xr-x 4 root wheel 512 Aug 14 23:04 .. 4 -rw-r--r-- 1 root wheel 1498 Jul 2 08:21 dns-events.rules 4 -rw-r----- 1 root wheel 2513 Aug 31 23:59 dshield.rules 24 -rw-r----- 1 root wheel 24415 Aug 31 23:59 emerging-dns.rules 48 -rw-r----- 1 root wheel 47839 Aug 31 23:59 emerging-dos.rules 180 -rw-r----- 1 root wheel 183410 Aug 31 23:59 emerging-exploit.rules 40 -rw-r----- 1 root wheel 38891 Aug 31 23:59 emerging-ftp.rules 448 -rw-r----- 1 root wheel 412990 Aug 31 23:59 emerging-malware.rules 64 -rw-r----- 1 root wheel 63762 Aug 31 23:59 emerging-mobile_malware.rules 180 -rw-r----- 1 root wheel 181762 Aug 31 23:59 emerging-sql.rules 8 -rw-r----- 1 root wheel 4205 Aug 31 23:59 emerging-telnet.rules 8 -rw-r----- 1 root wheel 6444 Aug 31 23:59 emerging-tftp.rules1760 -rw-r----- 1 root wheel 1756339 Aug 31 23:59 emerging-trojan.rules 12 -rw-r----- 1 root wheel 9392 Aug 31 23:59 emerging-worm.rules 4 -rw-r--r-- 1 root wheel 3118 Aug 31 23:59 files.rules 8 -rw-r--r-- 1 root wheel 6780 Aug 31 23:59 http-events.rules 4 -rw-r----- 1 root wheel 1963 Aug 31 23:59 rbn-malvertisers.rules1376 -rw-r----- 1 root wheel 1367040 Sep 1 00:22 rules.sqlite 4 -rw-r--r-- 1 root wheel 2509 Aug 31 23:59 smtp-events.rules 300 -rw-r----- 1 root wheel 305506 Aug 31 23:59 tor.rulesroot@Chronos:~ # time0.019u 0.041s 6:50.56 0.0% 483+470k 1+0io 0pf+0w
ps fax | grep cron
/usr/local/sbin/configctl ids update
root@Chronos:~ # /usr/local/sbin/configctl ids updateOKroot@Chronos:~ # ps fax | grep cron18217 - Is 0:00.09 /usr/sbin/cron -s43622 - Is 0:00.00 minicron 240 /var/run/ping_hosts.pid /usr/local/sbin43870 - I 0:00.11 minicron: helper /usr/local/sbin/ping_hosts.sh (min44117 - Is 0:00.00 minicron 3600 /var/run/expire_accounts.pid /usr/loca44430 - I 0:00.01 minicron: helper /usr/local/etc/rc.expireaccounts (44631 - Is 0:00.00 minicron 86400 /var/run/update_alias_url_data.pid /u44659 - I 0:00.00 minicron: helper /usr/local/etc/rc.update_alias_url_76995 0 S+ 0:00.00 grep cronroot@Chronos:~ # clog /var/log/system.log | grep "update and reload suricata rules"configd.py: [1d24c587-2c36-4e54-bb77-d3f1d01c16b6] update and reload suricata rulesSep 1 23:38:00 Chronos configd.py: [96d4d0e4-11c0-4e14-a596-daa3a997b550] update and reload suricata rulesSep 1 23:39:00 Chronos configd.py: [82cf8d9c-7ce3-4986-82d2-a305f5c3a332] update and reload suricata rulesSep 1 23:40:00 Chronos configd.py: [4cc1bc7b-af2a-4ae3-94a1-4f7f0725afdb] update and reload suricata rulesSep 1 23:41:00 Chronos configd.py: [e791f7f2-fbf8-4991-88ec-b6d0bd80a097] update and reload suricata rulesSep 1 23:42:00 Chronos configd.py: [9683c12c-d147-4fb0-bb42-cfb6fb050229] update and reload suricata rulesSep 1 23:43:00 Chronos configd.py: [dbd07124-dcc4-4a7e-90c2-7ac64eb66bf2] update and reload suricata rulesSep 1 23:44:00 Chronos configd.py: [bb188c35-f056-4a2a-bbdb-6d67726a9f4f] update and reload suricata rulesSep 1 23:45:00 Chronos configd.py: [a71986c8-30c6-432f-a68a-1091e5f86f3b] update and reload suricata rulesSep 1 23:46:00 Chronos configd.py: [4e25760b-fc1f-45f3-b6fd-1fe521958564] update and reload suricata rulesSep 1 23:47:00 Chronos configd.py: [5ebb532d-a4a1-4653-ac86-178ad1f179d8] update and reload suricata rulesSep 1 23:48:00 Chronos configd.py: [211758d3-2284-406d-bebe-c575ea44af91] update and reload suricata rulesSep 1 23:49:00 Chronos configd.py: [bd0438c4-6a61-46f5-a364-a295b974829b] update and reload suricata rulesSep 1 23:50:00 Chronos configd.py: [0b1e36c3-e6f6-4d22-a1fe-d509fb727f45] update and reload suricata rulesSep 1 23:51:00 Chronos configd.py: [69ba4022-4a5e-49bb-8f38-5847006b5ee2] update and reload suricata rulesSep 1 23:52:00 Chronos configd.py: [f436477d-6665-4224-9895-80bc0941063e] update and reload suricata rulesSep 1 23:53:00 Chronos configd.py: [2aa043e2-20db-4a85-b1ae-d01c5b614942] update and reload suricata rulesSep 1 23:54:00 Chronos configd.py: [15848dcb-8ec9-49fa-92ce-0e141be22ef8] update and reload suricata rulesSep 1 23:55:00 Chronos configd.py: [a65d389b-3565-4d16-88b5-c7a37f04c8f0] update and reload suricata rulesSep 1 23:56:00 Chronos configd.py: [66802e6d-9d52-4a40-8076-a53d62424e2c] update and reload suricata rulesSep 1 23:57:00 Chronos configd.py: [269a1f1c-7fe4-436a-8bc3-89177b6a5e49] update and reload suricata rulesSep 1 23:58:00 Chronos configd.py: [2dd816e5-b39d-4419-acf0-01acc53e3975] update and reload suricata rulesSep 1 23:59:00 Chronos configd.py: [af3b374a-cda4-4f08-b7d5-9813849c4cdd] update and reload suricata rulesSep 2 00:06:33 Chronos configd.py: [15c63148-608f-40f2-80ab-5b088b4bc086] update and reload suricata rulesSep 2 10:07:14 Chronos configd.py: [280d5070-5aad-4ca6-a723-30ed13a69def] update and reload suricata rulesSep 2 10:09:46 Chronos configd.py: [a765243f-23eb-4875-9241-42b03cf747d9] update and reload suricata rulesroot@Chronos:~ #
root@Chronos:~ # ls -asl /usr/local/etc/suricata/rulestotal 4492 4 drwxr-xr-x 2 root wheel 2048 Sep 2 17:28 . 4 drwxr-xr-x 4 root wheel 512 Aug 14 23:04 .. 4 -rw-r--r-- 1 root wheel 1498 Jul 2 08:21 dns-events.rules 4 -rw-r----- 1 root wheel 2511 Sep 2 23:54 dshield.rules 24 -rw-r----- 1 root wheel 24415 Sep 2 23:54 emerging-dns.rules 48 -rw-r----- 1 root wheel 47839 Sep 2 23:54 emerging-dos.rules 180 -rw-r----- 1 root wheel 183410 Sep 2 23:54 emerging-exploit.rules 40 -rw-r----- 1 root wheel 38891 Sep 2 23:54 emerging-ftp.rules 448 -rw-r----- 1 root wheel 412990 Sep 2 23:54 emerging-malware.rules 64 -rw-r----- 1 root wheel 63762 Sep 2 23:54 emerging-mobile_malware.rules 180 -rw-r----- 1 root wheel 181762 Sep 2 23:54 emerging-sql.rules 8 -rw-r----- 1 root wheel 4205 Sep 2 23:54 emerging-telnet.rules 8 -rw-r----- 1 root wheel 6444 Sep 2 23:54 emerging-tftp.rules1760 -rw-r----- 1 root wheel 1756368 Sep 2 23:54 emerging-trojan.rules 12 -rw-r----- 1 root wheel 9392 Sep 2 23:54 emerging-worm.rules 4 -rw-r--r-- 1 root wheel 3118 Sep 2 23:54 files.rules 8 -rw-r--r-- 1 root wheel 6780 Sep 2 23:54 http-events.rules 4 -rw-r----- 1 root wheel 1963 Sep 2 23:54 rbn-malvertisers.rules1376 -rw-r----- 1 root wheel 1367040 Sep 2 17:28 rules.sqlite 4 -rw-r--r-- 1 root wheel 2509 Sep 2 23:54 smtp-events.rules 308 -rw-r----- 1 root wheel 312379 Sep 2 23:54 tor.rulesroot@Chronos:~ # crontab -lSHELL=/bin/shPATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin# Order of crontab fields# minute hour mday month wday command# Origin/Description: IDS/ids rule updates* 23 * * * /usr/local/sbin/configctl ids updateroot@Chronos:~ #
# Origin/Description: IDS/ids rule updates* 23 * * * /usr/local/sbin/configctl ids updateroot@Chronos:~ #root@Chronos:~ # ls -asl /usr/local/etc/suricata/rulestotal 4492 4 drwxr-xr-x 2 root wheel 2048 Sep 2 17:28 . 4 drwxr-xr-x 4 root wheel 512 Aug 14 23:04 .. 4 -rw-r--r-- 1 root wheel 1498 Jul 2 08:21 dns-events.rules 4 -rw-r----- 1 root wheel 2511 Sep 2 23:56 dshield.rules 24 -rw-r----- 1 root wheel 24415 Sep 2 23:56 emerging-dns.rules 48 -rw-r----- 1 root wheel 47839 Sep 2 23:56 emerging-dos.rules 180 -rw-r----- 1 root wheel 183410 Sep 2 23:56 emerging-exploit.rules 40 -rw-r----- 1 root wheel 38891 Sep 2 23:56 emerging-ftp.rules 448 -rw-r----- 1 root wheel 412990 Sep 2 23:56 emerging-malware.rules 64 -rw-r----- 1 root wheel 63762 Sep 2 23:56 emerging-mobile_malware.rules 180 -rw-r----- 1 root wheel 181762 Sep 2 23:56 emerging-sql.rules 8 -rw-r----- 1 root wheel 4205 Sep 2 23:56 emerging-telnet.rules 8 -rw-r----- 1 root wheel 6444 Sep 2 23:56 emerging-tftp.rules1760 -rw-r----- 1 root wheel 1756368 Sep 2 23:56 emerging-trojan.rules 12 -rw-r----- 1 root wheel 9392 Sep 2 23:56 emerging-worm.rules 4 -rw-r--r-- 1 root wheel 3118 Sep 2 23:56 files.rules 8 -rw-r--r-- 1 root wheel 6780 Sep 2 23:56 http-events.rules 4 -rw-r----- 1 root wheel 1963 Sep 2 23:56 rbn-malvertisers.rules1376 -rw-r----- 1 root wheel 1367040 Sep 2 17:28 rules.sqlite 4 -rw-r--r-- 1 root wheel 2509 Sep 2 23:56 smtp-events.rules 308 -rw-r----- 1 root wheel 312379 Sep 2 23:56 tor.rulesroot@Chronos:~ #
root@Chronos:~ # ls -asl /usr/local/etc/suricata/rulestotal 4492 4 drwxr-xr-x 2 root wheel 2048 Sep 2 17:28 . 4 drwxr-xr-x 4 root wheel 512 Aug 14 23:04 .. 4 -rw-r--r-- 1 root wheel 1498 Jul 2 08:21 dns-events.rules 4 -rw-r----- 1 root wheel 2511 Sep 2 23:57 dshield.rules 24 -rw-r----- 1 root wheel 24415 Sep 2 23:57 emerging-dns.rules 48 -rw-r----- 1 root wheel 47839 Sep 2 23:57 emerging-dos.rules 180 -rw-r----- 1 root wheel 183410 Sep 2 23:57 emerging-exploit.rules 40 -rw-r----- 1 root wheel 38891 Sep 2 23:57 emerging-ftp.rules 448 -rw-r----- 1 root wheel 412990 Sep 2 23:57 emerging-malware.rules 64 -rw-r----- 1 root wheel 63762 Sep 2 23:57 emerging-mobile_malware.rules 180 -rw-r----- 1 root wheel 181762 Sep 2 23:57 emerging-sql.rules 8 -rw-r----- 1 root wheel 4205 Sep 2 23:57 emerging-telnet.rules 8 -rw-r----- 1 root wheel 6444 Sep 2 23:57 emerging-tftp.rules1760 -rw-r----- 1 root wheel 1756368 Sep 2 23:57 emerging-trojan.rules 12 -rw-r----- 1 root wheel 9392 Sep 2 23:57 emerging-worm.rules 4 -rw-r--r-- 1 root wheel 3118 Sep 2 23:57 files.rules 8 -rw-r--r-- 1 root wheel 6780 Sep 2 23:57 http-events.rules 4 -rw-r----- 1 root wheel 1963 Sep 2 23:57 rbn-malvertisers.rules1376 -rw-r----- 1 root wheel 1367040 Sep 2 17:28 rules.sqlite 4 -rw-r--r-- 1 root wheel 2509 Sep 2 23:57 smtp-events.rules 308 -rw-r----- 1 root wheel 312379 Sep 2 23:57 tor.rulesroot@Chronos:~ #
last pid: 58367; load averages: 0.17, 0.15, 0.09 up 4+14:37:42 23:58:37119 processes: 3 running, 98 sleeping, 18 waitingMem: 26M Active, 877M Inact, 517M Wired, 405M Buf, 6405M FreeSwap: PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 11 root 155 ki31 0K 32K CPU0 0 105.6H 98.88% [idle{idle: cpu0}] 11 root 155 ki31 0K 32K RUN 1 106.0H 96.19% [idle{idle: cpu1}]35390 root 52 0 126M 31464K piperd 1 0:04 3.27% /usr/local/bin/php-cgi 6751 root 20 0 913M 770M uwait 0 62:12 0.49% /usr/local/bin/suricata -D -i re0 -i re1 12 root -92 - 0K 288K WAIT 0 23:53 0.39% [intr{irq268: re1}] 6751 root 20 0 913M 770M nanslp 0 18:16 0.29% /usr/local/bin/suricata -D -i re0 -i re1 12 root -92 - 0K 288K WAIT 0 16:44 0.10% [intr{irq267: re0}] 6751 root 27 0 913M 770M umtxn 1 63:03 0.00% /usr/local/bin/suricata -D -i re0 -i re1 6751 root 20 0 913M 770M uwait 0 54:26 0.00% /usr/local/bin/suricata -D -i re0 -i re1 6751 root 20 0 913M 770M uwait 0 34:05 0.00% /usr/local/bin/suricata -D -i re0 -i re1 6751 root 20 0 913M 770M umtxn 0 11:20 0.00% /usr/local/bin/suricata -D -i re0 -i re1 6751 root 20 0 913M 770M umtxn 1 11:18 0.00% /usr/local/bin/suricata -D -i re0 -i re1 12 root -60 - 0K 288K WAIT 0 4:36 0.00% [intr{swi4: clock}] 15 root -16 - 0K 16K - 0 4:35 0.00% [rand_harvestq] 6751 root 20 0 913M 770M nanslp 0 4:29 0.00% /usr/local/bin/suricata -D -i re0 -i re1 5 root -16 - 0K 16K pftm 1 1:37 0.00% [pf purge] 0 root -16 0 0K 160K swapin 1 0:28 0.00% [kernel{swapper}]49927 root 20 0 14392K 1952K select 1 0:28 0.00% /usr/sbin/powerd -b adp -a adp -n hadp
last pid: 39414; load averages: 0.11, 0.11, 0.08 up 4+14:48:37 00:09:32118 processes: 3 running, 97 sleeping, 18 waitingMem: 180M Active, 138M Inact, 512M Wired, 430M Buf, 6995M FreeSwap: PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 11 root 155 ki31 0K 32K RUN 0 105.7H 98.58% [idle{idle: cpu0}] 11 root 155 ki31 0K 32K CPU1 1 106.1H 98.39% [idle{idle: cpu1}]35390 root 52 0 126M 31572K piperd 0 0:17 2.69% /usr/local/bin/php-cgi 6795 root 20 0 257M 181M uwait 0 0:02 0.49% /usr/local/bin/suricata -D -i re0 -i re1 6795 root 20 0 257M 181M uwait 0 0:04 0.20% /usr/local/bin/suricata -D -i re0 -i re1 6795 root 20 0 257M 181M uwait 1 0:02 0.20% /usr/local/bin/suricata -D -i re0 -i re1 12 root -92 - 0K 288K WAIT 0 23:57 0.00% [intr{irq268: re1}] 12 root -92 - 0K 288K WAIT 1 16:47 0.00% [intr{irq267: re0}] 12 root -60 - 0K 288K WAIT 1 4:36 0.00% [intr{swi4: clock}] 15 root -16 - 0K 16K - 0 4:36 0.00% [rand_harvestq] 5 root -16 - 0K 16K pftm 1 1:37 0.00% [pf purge] 0 root -16 0 0K 160K swapin 0 0:28 0.00% [kernel{swapper}]49927 root 20 0 14392K 1952K select 1 0:28 0.00% /usr/sbin/powerd -b adp -a adp -n hadp36650 root 20 0 16660K 2496K bpf 1 0:25 0.00% /usr/local/sbin/filterlog -i pflog0 -p /74133 root 22 0 126M 31496K accept 1 0:22 0.00% /usr/local/bin/php-cgi56721 root 20 0 58824K 7440K kqread 1 0:20 0.00% /usr/local/sbin/lighttpd -f /var/etc/lig 12 root -88 - 0K 288K WAIT 1 0:17 0.00% [intr{irq265: xhci0}] 23 root 16 - 0K 16K syncer 0 0:14 0.00% [syncer]
My mistake, It's doing exactly what it should do now, but I over read the * (every) in the minute section of your config. Just update it to 0 and you should be fine.