Ok all OK now, thanks David, was Selinux policy, I change it but.... not
reboot :( so so sorry, I reboot and now all perfect , execute any
script and sendmail too
Thanks again guys!!!!!
El 22/01/2015 a las 16:33, Asterisk REQ escribió:
Thanks for help David but selinux is disabled:
/etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
I change sendmail action to execute empty script (with simple echo
"hi"), in diferent directories/permissions, etc... but the result is
the same: returned 7e00. Fail2ban makes ban correctly I can see it on
iptables -nL, but fail executing any action more..
in jail.conf configuration is
[ssh-iptables]
enabled = true
filter = sshd
action = iptables-allports[name=SSH, port=ssh, protocol=tcp]
miscript[name=viassh,dest=yea]
logpath = /var/log/secure
maxretry = 1
where in action.d/miscript include:
....
[Definition]
# Option: actionstart
# Notes.: command executed once at the start of Fail2Ban.
# Values: CMD
#
actionstart = /script-example.sh
actionstop = /script-example.sh
actionban = /script-example.sh
but always same on fail2ban.log => fail2ban.actions.action[17914]:
ERROR /script-example.sh returned 7e00
....
Thanks in advance
El 22/01/2015 a las 13:56, David Highley escribió:
"Asterisk REQ wrote:"
This is a multi-part message in MIME format.
--===============2623532880364256023==
Content-Type: multipart/alternative;
boundary="------------060704070902040005040206"
This is a multi-part message in MIME format.
--------------060704070902040005040206
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Ok, I revise again, I cant say that is not a sendmail problem I obtain
the same error on fail2ban when I try to execute something in ban
action: simple command, simple script, I revise permissions on script
path ( all 777) but same error.
I read some fix related on
http://www.fail2ban.org/wiki/index.php/Fail2ban_talk:Community_Portal#fail2ban.actions.action_ERROR_on_startup.2Frestart
like add time.sleep(0.1) but nothing
any ideas?? Thanks
Hi guys!
I install the same fail2ban system for years, but now in a centos
6.6 new installation I found this error when I try to sendemail on ssh
ban ( fail2ban log):
fail2ban.actions.action[16416]: ERROR /usr/sendEmail/sendEmail -f
[email protected] [email protected] -s smtp.mail.yahoo.com -u
.Example rule. -v -o tls=yes -xu mimailuser -xp mimailpass -m bodymail
returned 7e00
but when I execute the same command on commandline :
/usr/sendEmail/sendEmail [email protected] [email protected] -s
smtp.mail.yahoo.com -u .Example rule. -v -o tls=yes -xu mimailuser -xp
mimailpass -m bodymail
the email was sent successfully.
If you're system has Selinux in enforcing mode it probably is blocking
the transition from fail2ban to sendmail. Do this "setenforce
Permissive" and then retry with fail2ban. Then do an ausearch -m avc and
see if there were any Selinux complaints. Put Selinux back to original
state by "setenforce Enforcing".
What I can do / revise files?
Thanks
--------------060704070902040005040206
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; ">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ok, I revise again, I cant say that is not a sendmail problem I
obtain the same error on fail2ban when I try to execute something in
ban action: simple command, simple script, I revise permissions on
script path ( all 777) but same error.<br>
I read some fix related on <a
href="http://www.fail2ban.org/wiki/index.php/Fail2ban_talk:Community_Portal#fail2ban.actions.action_ERROR_on_startup.2Frestart">http://www.fail2ban.org/wiki/index.php/Fail2ban_talk:Community_Portal#fail2ban.actions.action_ERROR_on_startup.2Frestart</a><br>
like add time.sleep(0.1) but nothing<br>
<br>
<div class="moz-forward-container">any ideas?? Thanks<br>
<br>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<font face="Times New Roman">Hi guys!<br>
   I install the same fail2ban system for years, but now in a
centos 6.6 new installation I found this error when I try to
sendemail on ssh ban ( fail2ban log): <br>
<br>
fail2ban.actions.action[16416]: ERRORÂ Â /usr/sendEmail/sendEmail
-f <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:[email protected]">[email protected]</a> -t <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:[email protected]">[email protected]</a> -s
smtp.mail.yahoo.com -u .Example rule. -v -o tls=yes -xu
mimailuser -xp mimailpass -m bodymail returned 7e00<br>
<br>
but when I execute the same command on commandline : <br>
</font><br>
<font face="Times New Roman">/usr/sendEmail/sendEmail -f <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:[email protected]">[email protected]</a> -t <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:[email protected]">[email protected]</a> -s
smtp.mail.yahoo.com -u .Example rule. -v -o tls=yes -xu
mimailuser -xp mimailpass -m bodymail<br>
<br>
the email was sent successfully.<br>
<br>
What I can do / revise files?<br>
<br>
Thanks<br>
<br>
<br>
</font> <br>
</div>
<br>
</body>
</html>
--------------060704070902040005040206--
--===============2623532880364256023==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
--===============2623532880364256023==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users
--===============2623532880364256023==--
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users