Hello and happy new year !
I'm trying to do firewall monitoring with Wazuh, but Wazuh doesn't receive the syslog...
Someone can help me ?
Here the configuration in
ossec.conf :
<ossec_config>
<global>
<jsonout_output>yes</jsonout_output>
<alerts_log>yes</alerts_log>
<logall>yes</logall>
<logall_json>yes</logall_json>
[....]
</global>
<remote>
<connection>syslog</connection>
<port>514</port>
<protocol>udp</protocol>
<allowed-ips>FIREWALL_IP</allowed-ips>
<local_ip>WAZUH_IP</local_ip>
</remote>
[....]
</ossec_config>This command give no result:
tail -f /var/ossec/logs/archives/archives.json | grep FIREWALL_IP
Here the result of the command :
netstat -tulnp | grep 514tcp 0 0 0.0.0.0:1514 0.0.0.0:* LISTEN 123560/wazuh-remote
udp 0 0 WAZUH_IP:514 0.0.0.0:* 123561/wazuh-remoteHere the result of the command :
cat /var/ossec/logs/ossec.log | grep 5142023/01/03 10:40:12 wazuh-remoted: INFO: Started (pid: 121352). Listening on port 1514/TCP (secure).
2023/01/03 10:40:12 wazuh-remoted: INFO: Started (pid: 121353). Listening on port 514/UDP (syslog).Here the result of the command :
tcpdump -i any port 514 -AAtcpdump: data link type LINUX_SLL2
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
0 packets captured
1 packet received by filter
0 packets dropped by kernelI think the problem is that wazuh-remote does not listen to the port, but I don't know how to switch it to "listen"
If someone can help me, It would be greatly appreciated !