<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Sasmita,<br>
      <br>
      You should use the `check_route` modparam [1] and in there use
      `is_from_gw()` with `drop` in order to avoid the GW related
      traffic to be monitored by pike.<br>
      <br>
      [1]
      <a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/3.2.x/pike.html#param_check_route">https://opensips.org/html/docs/modules/3.2.x/pike.html#param_check_route</a><br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021 
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
    <div class="moz-cite-prefix">On 11/16/21 8:26 AM, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALf-Q44XrSjbMEdoX4gRwqMHFVkw1XX+b7mTetLjmU+-9Lbtmw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Alexey , 
        <div><br>
        </div>
        <div>Saurabh is talking about drouting dr_gateways table . </div>
        <div><br>
        </div>
        <div>We have some trusted IPs which are added in the dr_gateways
          table . We don't want to monitor these IPs  .</div>
        <div> Rather than these IPs every other IPs should get monitor
          to block the traffic if it's overflooded . We don't want to
          add these IPs in the config file . Because the table used to
          get updated . </div>
        <div><br>
        </div>
        <div>If we add these IPs in the config file to check for the
          PIKE module , then every time we will add a new IP we have to
          restart the service , which we don't want .  </div>
        <div><br>
        </div>
        <div>How will we do this ?</div>
        <div><br>
        </div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr"><b><i>Thanks & Regards</i></b>
                    <div><i>Sasmita Panda</i></div>
                    <div><i>Senior Network Testing and Software Engineer</i></div>
                    <div><i>3CLogic , ph:07827611765</i></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, Nov 15, 2021 at 11:14
          AM Alexey Kazantsev via Users <<a
            href="mailto:users@lists.opensips.org"
            moz-do-not-send="true">users@lists.opensips.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <div>Hi Saurabh,</div>
            <div>not clear from your message what routing table do you
              mean —</div>
            <div>either Linux kernel routing table or drouting [1]
              module.</div>
            <div> </div>
            <div>Anyway, you may use ratelimit [2] module or pike [3]
              modules</div>
            <div>specifying the IP addresses as the source address to
              check/not to check</div>
            <div>the requests coming from it.</div>
            <div> </div>
            <div>I have some experience with both of modules,</div>
            <div>maybe my notes [4], [5] can also be useful to you.</div>
            <div> </div>
            <div>[1] <a
                href="https://opensips.org/docs/modules/3.1.x/drouting.html"
                target="_blank" moz-do-not-send="true">https://opensips.org/docs/modules/3.1.x/drouting.html</a></div>
            <div>[2] <a
                href="https://opensips.org/docs/modules/3.1.x/ratelimit.html"
                target="_blank" moz-do-not-send="true">https://opensips.org/docs/modules/3.1.x/ratelimit.html</a></div>
            <div>[3] <a
                href="https://opensips.org/docs/modules/3.1.x/pike.html#overview"
                target="_blank" moz-do-not-send="true">https://opensips.org/docs/modules/3.1.x/pike.html</a></div>
            <div>[4] <a href="https://alexeyka.zantsev.com/?p=1275"
                target="_blank" moz-do-not-send="true">https://alexeyka.zantsev.com/?p=1275</a></div>
            <div>[5] <a href="https://alexeyka.zantsev.com/?p=1194"
                target="_blank" moz-do-not-send="true">https://alexeyka.zantsev.com/?p=1194</a></div>
            <div> </div>
            <div>
              <div>
                <div>-----------------------------------------------<br>
                  <span style="font-size:15px">BR, Alexey</span><br
                    style="font-size:15px">
                  <span style="font-size:15px"><a
                      href="https://alexeyka.zantsev.com/"
                      target="_blank" moz-do-not-send="true">https://alexeyka.zantsev.com/</a></span></div>
              </div>
            </div>
            <div> </div>
          </div>
          _______________________________________________<br>
          Users mailing list<br>
          <a href="mailto:Users@lists.opensips.org" target="_blank"
            moz-do-not-send="true">Users@lists.opensips.org</a><br>
          <a
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>