Rob
-
Any views expressed in this message are those of the individual sender, except where specifically stated to be the view of the Company, its subsidiaries or associates. When addressed to our customers, any opinions or advice contained in this eMail are subject to the relevant Company terms of business. The Company reserves the right to monitor all email communications through its internal and external networks. NOTICE: This eMail is intended solely for the named recipient only. It may contain privileged and/or confidential information. If you are not one of the intended recipients, please notify the sender immediately, and destroy this eMail; you must not copy, distribute or take any action in reliance upon it. Whilst all efforts are made to safeguard Inbound and Outbound eMails, the Company cannot guarantee that attachments are Virus-free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced.
IMPORTANT: Credit Card Details should not be sent to the Company by email.
Can you describe what is breaking the wui? Using a network address
range should work fine in there...
Thanks,
--
Daniel B. Cid
dcid ( at ) ossec.net
If you don't specify a local_ip in the config, it will bind to all the
interfaces. What I am thinking
is that you are having a routing issue, where ip A is receiving the
events from the agent, but
with a route configure to reply with ip B. Can you run tcpdump on both
ends (and netstat -uanep) to
see what is going on?
Thanks,
--
Daniel B. Cid
dcid ( at ) ossec.net
This is a networking issue common to UDP, since it is stateless and
the kernel decides on which interface
to reply, it will generally use the main (first) interface.
For example, if I setup a virtual interface in here (host ourhome):
eth0 -> 192.168.2.15
eth0:0 -> 192.168.2.77
eth0:1 -> 192.168.2.78
and test with netcat:
dcid@ourhome:~$ nc -l -u -p 12345 (listening on all interfaces)
dcid@remotebox:~$ nc -u 192.168.2.78 12345 (using the eth0:1 ip).
This is what I get on tcpdump:
# tcpdump -nn -i xl0 udp port 12345
tcpdump: listening on xl0, link-type EN10MB
12:15:08.654902 192.168.2.10.23783 > 192.168.2.78.12345: udp 7
12:15:11.903964 192.168.2.15.12345 > 192.168.2.10.23783: udp 7 (DF)
You see that I am talking to the ip .78 and the kernel is replying
using the .15 (main interface ip). That's
why the client doesn't get the reply from netcat.
However, if I set a local ip in there, it will work properly.
So, for your case to work, you need to set <local_ip> to
xxx.xxx.xxx.139 and restart the manager (and the agent
after). If you do that, it will use the proper interface. But note
that even if you set that and the connections comes
from a different network, the kernel will redirect using the configured route.
*I will also look into changing the code to try getting the dst ip of
the incoming packets and use that
as the source of the reply...
Thanks,
--
Daniel B. Cid
dcid ( at ) ossec.net