On Fri, 6 May 2016, Michael Starks wrote:

Good catch and thank you. I don't think the script ever worked, even before the commit.

You're right. I vaguely recall (and my recollection is known to be flawed :)) that when I was working on the various IPv6 updates and turned my attention to this script, I noticed it wasn't working locally at all. Windows didn't like setting a gateway of 127.0.0.1 for an IPv4 route and I think there was some kind of synxtax issue as well. I 'fixed' things by using a null address as the next hop for both IPv4 and IPv6. However, I never 'verified' the script from OSSEC manager's point of view (ie. run agent_control on the manager) and assumed that once the script started working locally everything was ok. The other bug was still lurking in the script. Reminds me of the TV series "Seconds from Disaster" - where chains of 'errors' are not detected in time, sometimes some of the errors masking subsequent errors from being detected.

Antonio Querubin
e-mail:  [email protected]
xmpp:  [email protected]

Reply via email to