I have a virtual machine running security onion (standalone) on my laptop (Test Environment).
Now I want to connect to the MySQL Server from my laptop. To do this, I have set a new firewall rule (ufw) to allow access on port 3306 and changed the bind-address of mysqld (/etc/mysql/my.cnf) from 172.0.0.1 to 0.0.0.0.
But now I need to know the password of the root user to connect to the MySQL Server.
Can anyone help me?
Regards,
Suzan.
Suzan,
Please see:
https://github.com/Security-Onion-Solutions/security-onion/wiki/Passwords#os-root-account
Thanks,
Wes
I already tried to logon as user debian-sys-maint and password from /etc/mysql/debian.cnf, however, without success.
Do you have another Idea how to get access to the Mysql server inside the so-sensor?
Thanks,
Suzan.
What particular database are your trying to access?
Thanks,
Wes
Suzan,
Are you just trying to pull events back, such as with Sguil, or are you to trying to do something else. I'm not sure I understand your intention.
Thanks,
Wes
securityonion_db
--
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-onion+unsubscribe@googlegroups.com.
To post to this group, send email to security-onion@googlegroups.com.
Visit this group at https://groups.google.com/group/security-onion.
For more options, visit https://groups.google.com/d/optout.
I want to query the securityonion_db with several analytic-tools (data mining) to learn more about the collected data.
Another option to do this would be to export the entire data. But I prefere to connect directly to the database.
Thanks,
Suzan.
Have you tried using the credentials for sguil/securityonion_db, found in /etc/nsm/securityonion/sguild.conf?
Thanks,
Wes
thank you for your help! To access the mysql database from remote I also need to enable the connection for my laptop (see http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html). This can be done by executing the following commands on the so-sensor:
sudo mysql -uroot
mysql>GRANT ALL ON securityonion_db.* to sguil@'laptop-ip-address' identified by 'sguil-password';
mysql>FLUSH PRIVILEGES;
Finally the connection from my laptop with the credentials for sguil/securityonion_db to the securityonion_db on the so-sensor was successful.
Regards,
Suzan.