FreqServer and Domainstats in a standalone environment

87 views
Skip to first unread message

Ben

unread,
Aug 13, 2020, 6:15:18 AM8/13/20
to security-onion
Hello!

I have enabled FreqServer and DomainStats in my standalone test environment and from what I see in sostat everything looks fine, but all related Kibana dashboards are empty. Ideas? Or just not possible in a standalone setting? Thanks in advance!

Cheers, Ben.

Wes Lambert

unread,
Aug 13, 2020, 8:28:04 AM8/13/20
to securit...@googlegroups.com
You may want to check the Logstash log to see if the pipeline is getting blocked.

--
Follow Security Onion on Twitter!
https://twitter.com/securityonion
---
You received this message because you are subscribed to the Google Groups "security-onion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to security-onio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/security-onion/7705d452-fdb2-4de6-8fe5-266319c0cea6n%40googlegroups.com.


--

Ben

unread,
Aug 13, 2020, 9:38:49 AM8/13/20
to security-onion
Everything looks fine ...

Wes Lambert

unread,
Aug 13, 2020, 12:07:54 PM8/13/20
to securit...@googlegroups.com
Do you actually have data in Elasticsearch, regardless of if you can see if from within Kibana?

curl -s localhost:9200/_cat/indices 

Thanks,
Wes

Ben

unread,
Aug 14, 2020, 3:45:38 AM8/14/20
to security-onion
There is a lot of data comming in:

logstash.PNG

However, nothing that points to FreqServer or Domainstats if you are looking for these kind of entries. Do I need specific open ports on my perimeter firewall to the Internet?

Ben

unread,
Aug 18, 2020, 4:49:48 AM8/18/20
to security-onion
Dear all! Any other ideas? Thanks in advance! Cheers, Ben!

Wes Lambert

unread,
Aug 21, 2020, 11:17:12 AM8/21/20
to securit...@googlegroups.com
Where have you enabled Domainstats and Freqserver?  On what node?

Ben

unread,
Aug 21, 2020, 2:16:32 PM8/21/20
to security-onion
Hi Wes, everything is running on one server (just as a proof of concept ...). Cheers, Ben

Ben

unread,
Sep 28, 2020, 8:34:52 AM9/28/20
to security-onion
Does anybody has an idea what I could try to get  FreqServer and Domainstats working? Thanks in advance! 

Wes Lambert

unread,
Sep 28, 2020, 3:17:12 PM9/28/20
to securit...@googlegroups.com
Have you tried using docker logs to check the containers themselves?

Thanks,
Wes

edgar...@gmail.com

unread,
Sep 28, 2020, 4:33:14 PM9/28/20
to security-onion
 Enable on the /etc/nsm/securityonion.conf file (or something like that)
Do a soup to download the latest containers
so-status to verify they are running
Program the daily cron job, with a caveat, there is a change on the 1m list from talos, need to change that.
Also, on the cron job, be sure to verify the command that is a one-liner, even ,try it outside of chron first to seed the list.
Make sure that your port 43 is open, whois needs to work.

That should be it.

Edgar

Ben

unread,
Sep 29, 2020, 9:50:01 AM9/29/20
to security-onion
Hello Edgar,

I did the update and according to so-status the containers are up and running. However, both did only receive 12 packets on eth1, that's it. No Docker logs, no logs in /var/log/freq_server or domain_stats (port 43 is open for my SO host running freq_server and domain_stats and whois requests are working). What cron job are you referring to?

Cheers, Ben

Edgar M. Toro

unread,
Sep 29, 2020, 10:03:10 AM9/29/20
to securit...@googlegroups.com
There is a daily cron job that downloads a csv file from azure / talos witn a 1m baby urls that is what feeds the domain stats.
Check the so docs.
Like I said, the docs still refer to an old url that has to be corrected.
-------------------
Edgar M. Toro



You received this message because you are subscribed to a topic in the Google Groups "security-onion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/security-onion/0ISXMXJmXDU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to security-onio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/security-onion/72109ba0-8d4c-48aa-a579-ba1788ebb147n%40googlegroups.com.

Edgar M. Toro

unread,
Sep 29, 2020, 10:05:43 AM9/29/20
to securit...@googlegroups.com

https://docs.securityonion.net/en/latest/domainstats.html

Its there.


This is the cron.daily

#/etc/cron.d/domainstats
#
#crontab entry to grab new Top 1m CSV for DomainStats Docker image
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/localbin:/sbin:/bin/usr/sbin:/usr/bin
1 07 * * *   root ( wget -q http://s3.amazonaws.com/alexa-static/top-1m.csv.zip -O /tmp/top-1m.csv.zip && unzip -o
/tmp/top-1m.csv.zip -d /tmp && docker cp /tmp/top-1m.csv so-domainstats:/opt/domain_stats/top-1m.csv && docker restart
so-domainstats && rm -f /tmp/top-1m.csv* ) > /dev/null 2>&1


-------------------
Edgar M. Toro



You received this message because you are subscribed to a topic in the Google Groups "security-onion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/security-onion/0ISXMXJmXDU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to security-onio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/security-onion/72109ba0-8d4c-48aa-a579-ba1788ebb147n%40googlegroups.com.

Ben

unread,
Sep 29, 2020, 10:23:06 AM9/29/20
to security-onion
Thanks Edgar! Successfully ran the cron job (manually ...), but domain_stats and freq_server seems to be stuck somewhere ...
Reply all
Reply to author
Forward
0 new messages