[OpenSIPS-Users] Help in pike Module
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Nov 16 10:50:15 EST 2021
Hi Sasmita,
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.
[1] https://opensips.org/html/docs/modules/3.2.x/pike.html#param_check_route
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
https://opensips.org/training/OpenSIPS_eBootcamp_2021/
On 11/16/21 8:26 AM, Sasmita Panda wrote:
> Hi Alexey ,
>
> Saurabh is talking about drouting dr_gateways table .
>
> We have some trusted IPs which are added in the dr_gateways table . We
> don't want to monitor these IPs .
> 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 .
>
> 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 .
>
> How will we do this ?
>
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
>
> On Mon, Nov 15, 2021 at 11:14 AM Alexey Kazantsev via Users
> <users at lists.opensips.org <mailto:users at lists.opensips.org>> wrote:
>
> Hi Saurabh,
> not clear from your message what routing table do you mean —
> either Linux kernel routing table or drouting [1] module.
> Anyway, you may use ratelimit [2] module or pike [3] modules
> specifying the IP addresses as the source address to check/not to
> check
> the requests coming from it.
> I have some experience with both of modules,
> maybe my notes [4], [5] can also be useful to you.
> [1] https://opensips.org/docs/modules/3.1.x/drouting.html
> <https://opensips.org/docs/modules/3.1.x/drouting.html>
> [2] https://opensips.org/docs/modules/3.1.x/ratelimit.html
> <https://opensips.org/docs/modules/3.1.x/ratelimit.html>
> [3] https://opensips.org/docs/modules/3.1.x/pike.html
> <https://opensips.org/docs/modules/3.1.x/pike.html#overview>
> [4] https://alexeyka.zantsev.com/?p=1275
> <https://alexeyka.zantsev.com/?p=1275>
> [5] https://alexeyka.zantsev.com/?p=1194
> <https://alexeyka.zantsev.com/?p=1194>
> -----------------------------------------------
> BR, Alexey
> https://alexeyka.zantsev.com/ <https://alexeyka.zantsev.com/>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20211116/01aa0930/attachment.html>
More information about the Users
mailing list