<div dir="ltr">In that case, then it is not the firewall then.<br><br>Lex<br><br><div class="gmail_quote">On Wed, Sep 3, 2008 at 8:58 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">Alex Dehaini wrote:<br>
> Why not drop this rule temporarily and test. If it works, then you<br>
> know for sure it is your firewall.<br>
<br>
</div>I did it. but no success. I should look into it in depth<br>
<div class="Ih2E3d"><br>
<br>
<br>
><br>
> Alternatively, you could seek commercial support.<br>
><br>
> Lex<br>
><br>
> On Wed, Sep 3, 2008 at 4:21 AM, J. Bakshi <<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a><br>
</div><div><div></div><div class="Wj3C7c">> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>>> wrote:<br>
><br>
> 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.<br>
> Increasing<br>
> > the time is only covering a symptom.<br>
> ><br>
><br>
> 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<br>
> 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<br>
> 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>
><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<br>
> 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><br>
</div></div>> <<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>>,IP.ADDRESS.OF.NAGIOS<br>
<div class="Ih2E3d">> > cps = 100 10<br>
> > instances = 300<br>
> > }<br>
> ><br>
> ><br>
> > Good luck!<br>
> ><br>
> > Mark Young<br>
> > ___<br>
> > Nagios Enterprises, LLC<br>
</div>> > Web: <a href="http://www.nagios.com" target="_blank">www.nagios.com</a> <<a href="http://www.nagios.com" target="_blank">http://www.nagios.com</a>><br>
<div class="Ih2E3d">> ><br>
> ><br>
> ><br>
> -------------------------------------------------------------------------<br>
> > This SF.Net email is sponsored by the Moblin Your Move<br>
> Developer's challenge<br>
> > Build the coolest Linux based applications with Moblin SDK & win<br>
> great prizes<br>
> > Grand prize is a trip for two to an Open Source event anywhere<br>
> 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>
> <<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>
</div>> <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>><br>
<div class="Ih2E3d">> > <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<br>
> when reporting any issue.<br>
> > ::: Messages without supporting info will risk being sent to<br>
> /dev/null<br>
> ><br>
> ><br>
><br>
><br>
> --<br>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<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>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win<br>
> great prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in<br>
> 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>
> <<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>
</div>> <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>><br>
<div class="Ih2E3d">> <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<br>
> reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
><br>
><br>
> --<br>
> Alex Dehaini<br>
> Developer<br>
</div>> Site - <a href="http://www.alexdehaini.com" target="_blank">www.alexdehaini.com</a> <<a href="http://www.alexdehaini.com" target="_blank">http://www.alexdehaini.com</a>><br>
> Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>><br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div class="Wj3C7c">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<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>
</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>