<div dir="ltr">Why not drop this rule temporarily and test. If it works, then you know for sure it is your firewall. If you need help with your iptables, visit their site or throw this question to their mailing list.<br><br>
Alternatively, you could seek commercial support.<br><br>Lex<br><br><div class="gmail_quote">On Wed, Sep 3, 2008 at 4:21 AM, J. Bakshi <span dir="ltr"><<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Mark Young wrote:<br>
> On Sep 2, 2008, at 9:44 AM, J. Bakshi wrote:<br>
><br>
><br>
>> J. Bakshi wrote:<br>
>><br>
>>> Alex Dehaini wrote:<br>
>>><br>
>>><br>
>>>> Dude,<br>
>>>><br>
>>>> I am assisting with nagios not your firewall. Read your firewall<br>
>>>> docs<br>
>>>> very well. Remember to always read the documentation carefully<br>
>>>> before<br>
>>>> requesting for assistance that are already in the docs.<br>
>>>><br>
>>>><br>
>>> The nrpe docs mentions abt the firewall rules which I have already<br>
>>> used,<br>
>>> but no luck :-(<br>
>>><br>
>>><br>
>> Not firewall; I have solved the problem by incresing time with -t<br>
>><br>
><br>
>  From what you are describing I believe that this is a problem with<br>
> your xinetd nrpe configuration.  I run into this problem a lot.  By<br>
> default Xinet will only allow so many instances per second that if<br>
> exceeded xinet will refuse connects for certain amount of time.<br>
> Basically your remote server thinks that it is being DDoS.  Increasing<br>
> the time is only covering a symptom.<br>
><br>
<br>
</div>Hi Mark,<br>
<br>
Thanks for your hints and configuration.<br>
I'm not using xinetd. I'm using nrpe daemon instead.<br>
May be my firewall is responsible for the problem but I'm not sure<br>
Even after increasing the time with  -t 20 the commands still report<br>
socket time out :-(<br>
<br>
Here is the rule set I have in my firewall. May be this create the problem<br>
<br>
## SYN-FLOODING PROTECTION<br>
# This rule maximises the rate of incoming connections. In order to do<br>
this we divert tcp<br>
# packets with the SYN bit set off to a user-defined chain. Up to<br>
limit-burst connections<br>
# can arrive in 1/limit seconds ..... in this case 4 connections in one<br>
second. After this, one<br>
# of the burst is regained every second and connections are allowed<br>
again. The default limit<br>
# is 3/hour. The default limit burst is 5.<br>
#<br>
iptables -N syn-flood<br>
iptables -A INPUT -i $IFACE -p tcp --syn -j syn-flood<br>
iptables -A syn-flood -m limit --limit 1/s --limit-burst 4 -j RETURN<br>
iptables -A syn-flood -j DROP<br>
<br>
<br>
with regards<br>
<div><div></div><div class="Wj3C7c"><br>
> You can change this globally or per service by adding these lines in<br>
> ether /etc/xinetd.conf or /etc/xinetd.d/nrpe.  You can play with the<br>
> exact numbers you need.  I believe the default is 50 connections a<br>
> second.<br>
><br>
> # CPS where 100 connection per second with a timepout of 10 seconds if<br>
> exceded.<br>
><br>
> # Max number of instances running<br>
><br>
> [myoung@vserve xinetd.d]# more nrpe<br>
> # default: on<br>
> # description: NRPE (Nagios Remote Plugin Executor)<br>
> service nrpe<br>
> {<br>
>               flags           = REUSE<br>
>          socket_type     = stream<br>
>       port            = 5666<br>
>               wait            = no<br>
>          user            = nagios<br>
>       group           = nagios<br>
>               server          = /usr/local/nagios/bin/nrpe<br>
>          server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd<br>
>               log_on_failure  += USERID<br>
>          disable         = no<br>
>       only_from       = <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>,IP.ADDRESS.OF.NAGIOS<br>
>       cps             = 100 10<br>
>       instances       = 300<br>
> }<br>
><br>
><br>
> Good luck!<br>
><br>
> Mark Young<br>
> ___<br>
> Nagios Enterprises, LLC<br>
> Web:    <a href="http://www.nagios.com" target="_blank">www.nagios.com</a><br>
><br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
<br>
<br>
</div></div>--<br>
<div class="Ih2E3d">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Joydeep Bakshi, Linux System Admin<br>
Kolkatainfoservices Pvt Ltd,<br>
23A Royd Street, Kolkata 700016, India<br>
Work Phone 91 033 40014784<br>
<a href="http://infoservices.in/" target="_blank">http://infoservices.in/</a><br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<br>
<br>
-------------------------------------------------------------------------<br>
</div><div><div></div><div class="Wj3C7c">This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alex Dehaini<br>Developer<br>Site - <a href="http://www.alexdehaini.com">www.alexdehaini.com</a><br>Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a><br>

</div>