Hello,
I keep getting the following email notification from the OSSEC server.
This message occur because I relay my email to Gmail. By default, the system try to connect to the Google mail server via IPv6. As I don't have IPv6 setup on my machine, it then to go connect via IPv4 and the message get send successfully...
I have tried to disable IPv6 but without success...
/etc/rc.conf
In order to stop receiving this email notification, I tough of adding the following rule in my rules/local_rules.xml
The problem with the above is that it will will permanently disable all "No route to host" errors, including IPv4....
My understanding is that I need to use the accumulator functionality to keep track of the information between log messages.
I looked at the syntax on the ossec-docs.readthedocs.org website here but I don't really understand it all...
This is the message
Could any one help me on this one please?
I keep getting the following email notification from the OSSEC server.
Code:
OSSEC HIDS Notification.
2015 Mar 24 21:10:29
Received From: trinity->/var/log/maillog
Rule: 1002 fired (level 2) -> "Unknown problem somewhere in the system."
Portion of the log(s):
Mar 24 21:10:27 trinity smtpd[1161]: smtp-out: Error on session 82cbe6af7d343823: Connection failed: No route to host
--END OF NOTIFICATION
I have tried to disable IPv6 but without success...
/etc/rc.conf
Code:
ip6addrctl_enable="NO"
Code:
<rule id="ID" level="0">
<if_sid>1002</if_sid>
<program_name>^smtpd</program_name>
<match>Connection failed: No route to host</match>
<description>Ignore no route to host errors</description>
</rule>
My understanding is that I need to use the accumulator functionality to keep track of the information between log messages.
I looked at the syntax on the ossec-docs.readthedocs.org website here but I don't really understand it all...
This is the message
cat /var/log/maillog | grep smtpd
Code:
Mar 24 22:00:06 webjail smtpd[1161]: smtp-out: Connecting to tls://IPv6:2a00:1450:400c:c05::6c:587 (wi-in-x6c.1e100.net) on session 82cbe6b6bc60037c...
Mar 24 22:00:06 webjail smtpd[1161]: smtp-out: Error on session 82cbe6b6bc60037c: Connection failed: No route to host
Mar 24 22:00:06 webjail smtpd[1161]: smtp-out: Disabling route [] <-> IPv6:2a00:1450:400c:c05::6c (wi-in-x6c.1e100.net) for 800s
Mar 24 22:00:08 webjail smtpd[1161]: smtp-out: Connecting to tls://173.194.67.108:587 (wi-in-f108.1e100.net) on session 82cbe6b7b9412046...
Mar 24 22:00:08 webjail smtpd[1161]: smtp-out: Connected on session 82cbe6b7b9412046
Mar 24 22:00:08 webjail smtpd[1161]: smtp-out: Started TLS on session 82cbe6b7b9412046: version=TLSv1/SSLv3, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128
Mar 24 22:00:09 webjail smtpd[1161]: smtp-out: Server certificate verification succeeded on session 82cbe6b7b9412046
Mar 24 22:00:10 webjail smtpd[1161]: relay: Ok for 6e3c8e546ed38fc1: session=82cbe6b7b9412046, from=<root@webjail.mycompagny.ltd>, to=<myemailaddress@gmail.com>, rcpt=<->, source=192.168.o.145, relay=173.194.67.108 (wi-in-f108.1e100.net), delay=4s, stat=250 2.0.0 OK 1427234410 g2sm4406727wib.1 - gsmtp
Mar 24 22:00:20 webjail smtpd[1161]: smtp-out: Closing session 82cbe6b7b9412046: 1 message sent.
Last edited by a moderator: