What does it mean? Everything I've found indicates incorrect keys, but
I've recreated and restarted ossec on both ends multiple times.
I have a RHEL6 client running:
ossec-hids-2.6-5.el6.art.x86_64
ossec-hids-client-2.6-5.el6.art.x86_64
I have a RHEL5 server running:
ossec-hids-server-2.6-5.el5.art
ossec-hids-2.6-5.el5.art
Any suggestions?
Can you start clean (removing all agents and queues) to see if it works?
Thanks,
Stopped agent and server.
Removed all agents and queues (client and server).
Created new agent with IP address "any".
Exported agent key from server
Imported agent key on agent
Started server
Started client
Server fails to respond. (not allowed)
Repeated ALL of the above, but set IP address to the real IP address
of the agent.
Agent works. Again, the differentiator is the IP address being set.
Client running:
ossec-hids-2.6-5.el6.art.x86_64
ossec-hids-client-2.6-5.el6.art.x86_64
Server running:
ossec-hids-2.6-5.el5.art
ossec-hids-server-2.6-5.el5.art
Still doing some tests. This time, installing both client and server
from mercurial repo.
Client complained that SSL not built in.
Installed openssl-devel.
Re-ran client install.
First test was to use agent-auth as described here:
http://dcid.me/2011/01/automatically-creating-and-setting-up-the-agent-keys/
It WORKED.
What changed?
I installed from source and installed openssl-devel on the client.
Was this a SSL issue? If not, what is it? If so, how could one derive
this from the logs?
The above means that an agent with an IP of "any" works (no errors or
warnings...got agent connected email) when I used the nightly source
from mercurial on both client and server.
To confirm, i removed OSSEC nightly from the client, installed the
latest Atomic RPMs and did the same exact process, but I'm now getting
error 1213 message not allowed.
thanks,
Daniel,
We are still trying to debug this. We noticed a function called
OS_CheckUpdateKeys checks the access time of the client.keys file. Why
do you check this?
When we use the source code install for the client, and we extract the
client key from the server and decode it manually with base64, we see
the desired contents.
When we use the RPM install for the client, and we extract the client
key on from the server and decode it manually with base64, (invalid
input).
So the RPM client is sending a bad base64 string to the server?