/var/ossec/bin/agent-auth -i -m hids-master
<!-- Configuration for ossec-authd -->
<auth>
...
<use_source_ip>no</use_source_ip>
...
</auth>
root@4a2e73e63209:/# /var/ossec/bin/manage_agents -l
Available agents:
ID: 001, Name: 112160d17534, IP: any
ID: 002, Name: b43184ec634e, IP: any
ID: 003, Name: abbd97e0da60, IP: any
ID: 004, Name: 5e5e1a0233a9, IP: any
ID: 005, Name: 5fdffd13ce2a, IP: any
root@4a2e73e63209:/# /var/ossec/bin/cluster_control -a
ID NAME IP STATUS VERSION NODE NAME
000 4a2e73e63209 127.0.0.1 Active Wazuh v3.9.3 master-node
001 112160d17534 172.21.0.6 Active Wazuh v3.9.3 master-node
002 b43184ec634e 172.21.0.7 Active Wazuh v3.9.3 worker1
003 abbd97e0da60 172.21.0.8 Active Wazuh v3.9.3 worker1
004 5e5e1a0233a9 172.21.0.9 Active Wazuh v3.9.3 master-node
005 5fdffd13ce2a 172.21.0.11 Active Wazuh v3.9.3 worker1
root@4a2e73e63209:/# curl -u foo:bar http://localhost:55000/agents?pretty
{
"error": 0,
"data": {
"items": [
{
"os": {
"arch": "x86_64",
"codename": "Bionic Beaver",
"major": "18",
"minor": "04",
"name": "Ubuntu",
"platform": "ubuntu",
"uname": "Linux |4a2e73e63209 |4.15.0-54-generic |#58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 |x86_64",
"version": "18.04.1 LTS"
},
"status": "Active",
"id": "000",
"node_name": "master-node",
"registerIP": "127.0.0.1",
"lastKeepAlive": "9999-12-31 23:59:59",
"name": "4a2e73e63209",
"dateAdd": "2019-07-25 10:21:57",
"manager": "4a2e73e63209",
"ip": "127.0.0.1",
"version": "Wazuh v3.9.3"
},
{
"os": {
"arch": "x86_64",
"codename": "Bionic Beaver",
"major": "18",
"minor": "04",
"name": "Ubuntu",
"platform": "ubuntu",
"uname": "Linux |112160d17534 |4.15.0-54-generic |#58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 |x86_64",
"version": "18.04.1 LTS"
},
"status": "Active",
"id": "001",
"configSum": "ab73af41699f13fdd81903b5f23d8d00",
"node_name": "master-node",
"registerIP": "any",
"lastKeepAlive": "2019-07-25 10:58:05",
"group": [
"default"
],
"mergedSum": "c6309ff81a74781f6b55b68129a76738",
"name": "112160d17534",
"dateAdd": "2019-07-25 10:41:11",
"manager": "4a2e73e63209",
"ip": "172.21.0.6",
"version": "Wazuh v3.9.3"
},
{
"os": {
"arch": "x86_64",
"codename": "Bionic Beaver",
"major": "18",
"minor": "04",
"name": "Ubuntu",
"platform": "ubuntu",
"uname": "Linux |b43184ec634e |4.15.0-54-generic |#58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 |x86_64",
"version": "18.04.1 LTS"
},
"status": "Active",
"id": "002",
"configSum": "ab73af41699f13fdd81903b5f23d8d00",
"node_name": "worker1",
"registerIP": "any",
"lastKeepAlive": "2019-07-25 10:58:04",
"group": [
"default"
],
"mergedSum": "c6309ff81a74781f6b55b68129a76738",
"name": "b43184ec634e",
"dateAdd": "2019-07-25 10:41:13",
"manager": "7eb4dea22ce0",
"ip": "172.21.0.7",
"version": "Wazuh v3.9.3"
},
{
"os": {
"arch": "x86_64",
"codename": "Bionic Beaver",
"major": "18",
"minor": "04",
"name": "Ubuntu",
"platform": "ubuntu",
"uname": "Linux |abbd97e0da60 |4.15.0-54-generic |#58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 |x86_64",
"version": "18.04.1 LTS"
},
"status": "Active",
"id": "003",
"configSum": "ab73af41699f13fdd81903b5f23d8d00",
"node_name": "worker1",
"registerIP": "any",
"lastKeepAlive": "2019-07-25 10:58:05",
"group": [
"default"
],
"mergedSum": "c6309ff81a74781f6b55b68129a76738",
"name": "abbd97e0da60",
"dateAdd": "2019-07-25 10:41:14",
"manager": "7eb4dea22ce0",
"ip": "172.21.0.8",
"version": "Wazuh v3.9.3"
},
{
"os": {
"arch": "x86_64",
"codename": "Bionic Beaver",
"major": "18",
"minor": "04",
"name": "Ubuntu",
"platform": "ubuntu",
"uname": "Linux |5e5e1a0233a9 |4.15.0-54-generic |#58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 |x86_64",
"version": "18.04.1 LTS"
},
"status": "Active",
"id": "004",
"configSum": "ab73af41699f13fdd81903b5f23d8d00",
"node_name": "master-node",
"registerIP": "any",
"lastKeepAlive": "2019-07-25 10:57:59",
"group": [
"default"
],
"mergedSum": "c6309ff81a74781f6b55b68129a76738",
"name": "5e5e1a0233a9",
"dateAdd": "2019-07-25 10:41:15",
"manager": "4a2e73e63209",
"ip": "172.21.0.9",
"version": "Wazuh v3.9.3"
},
{
"os": {
"arch": "x86_64",
"codename": "Bionic Beaver",
"major": "18",
"minor": "04",
"name": "Ubuntu",
"platform": "ubuntu",
"uname": "Linux |5fdffd13ce2a |4.15.0-54-generic |#58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 |x86_64",
"version": "18.04.1 LTS"
},
"status": "Active",
"id": "005",
"configSum": "ab73af41699f13fdd81903b5f23d8d00",
"node_name": "worker1",
"registerIP": "any",
"lastKeepAlive": "2019-07-25 10:58:02",
"group": [
"default"
],
"mergedSum": "c6309ff81a74781f6b55b68129a76738",
"name": "5fdffd13ce2a",
"dateAdd": "2019-07-25 10:41:18",
"manager": "7eb4dea22ce0",
"ip": "172.21.0.11",
"version": "Wazuh v3.9.3"
}
],
"totalItems": 6
}
}
<!-- Configuration for ossec-authd -->
<auth>
<disabled>no</disabled>
<port>1515</port>
<use_source_ip>no</use_source_ip>
<force_insert>yes</force_insert>
<force_time>0</force_time>
<purge>yes</purge>
<use_password>no</use_password>
<limit_maxagents>yes</limit_maxagents>
<ciphers>HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH</ciphers>
<!-- <ssl_agent_ca></ssl_agent_ca> -->
<ssl_verify_host>no</ssl_verify_host>
<ssl_manager_cert>/var/ossec/etc/sslmanager.cert</ssl_manager_cert>
<ssl_manager_key>/var/ossec/etc/sslmanager.key</ssl_manager_key>
<ssl_auto_negotiate>no</ssl_auto_negotiate>
</auth>
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e1f97f73-60e3-400f-b7e1-761aea8f1916%40googlegroups.com.
# sqlite3 /var/ossec/var/db/global.db
sqlite> .headers on
sqlite> select id, name, ip, register_ip from agent;
id|name|ip|register_ip
0|4a2e73e63209|127.0.0.1|127.0.0.1
1|112160d17534|172.21.0.6|any
2|b43184ec634e|172.21.0.7|any
3|abbd97e0da60|172.21.0.8|any
4|5e5e1a0233a9|172.21.0.9|any
5|5fdffd13ce2a|172.21.0.11|anyTo unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e1f97f73-60e3-400f-b7e1-761aea8f1916%40googlegroups.com.
--Cheers,
Vijay.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e1f97f73-60e3-400f-b7e1-761aea8f1916%40googlegroups.com.
----Cheers,
Vijay.
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/49cbff34-0d05-439a-b39a-81922e19299b%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e1f97f73-60e3-400f-b7e1-761aea8f1916%40googlegroups.com.
--Cheers,
Vijay.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/49cbff34-0d05-439a-b39a-81922e19299b%40googlegroups.com.
--Cheers,
Vijay.