<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Michael,</p>
<p>Thanks a lot for the reply. I was searching of something at
sofia level, before it enters the xml routing decision. </p>
<p>We already have the parameters sessions-per-second and
max-sessions, but is for the entire switch, my idea has to have
the same type of parameters per account/source ip, but i is not
implemented. i've a draft on a lab machine where i'm trying to
implement this but for now is not good...<br>
</p>
<p>Right now I'm using iptables to limit the maximum of new invites
to FS, and it keeps me "safe" and i can limit resources per source
IP. <br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 29/01/2020 10:15, Mickael Hubert
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+fRVSWs2k3xWYyCQA7YK-Fc14gk+XbxkNuCWMGo=UPd+fSZ=Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Maybe it's very late,</div>
<div>but I use this: <a
href="https://github.com/Mickaelh51/freeswitch/blob/master/pingcalls_limit.xml"
moz-do-not-send="true">https://github.com/Mickaelh51/freeswitch/blob/master/pingcalls_limit.xml</a></div>
<div>it's not per IP, but it's easy to change this code<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le lun. 22 juil. 2019 à 23:03,
António Silva via FreeSWITCH-users <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>>
a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
<br>
---------- Forwarded message ----------<br>
From: "António Silva" <<a
href="mailto:asilva@wirelessmundi.com" target="_blank"
moz-do-not-send="true">asilva@wirelessmundi.com</a>><br>
To: FreeSWITCH Users Help <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>
Bcc: <br>
Date: Thu, 18 Jul 2019 10:52:14 +0200<br>
Subject: Limit cps per source IP and port<br>
Hi,<br>
<br>
is it possible to limit the number of calls per source ip and
port <br>
before the dialplan?<br>
<br>
I know that this can be done using mod_limit in the dialplan,
i was <br>
thinking of a limit like the sessions-per-second global limit,
this way <br>
less resources are used if some ip/port is flooding our
machine.<br>
<br>
Another possibility is using the firewall... but i like this
option less <br>
because i wont know of the drop calls.<br>
<br>
Thanks,<br>
<br>
-- <br>
Saludos / Regards / Cumprimentos<br>
António Silva<br>
<br>
<br>
<br>
<br>
<br>
---------- Forwarded message ----------<br>
From: "António Silva via FreeSWITCH-users" <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>><br>
To: FreeSWITCH Users Help <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>
Bcc: <br>
Date: Mon, 22 Jul 2019 14:03:23 -0700 (PDT)<br>
Subject: [Freeswitch-users] Limit cps per source IP and port<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a
href="https://signalwire.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and
PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a
href="https://signalwire.community" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank"
moz-do-not-send="true">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank"
moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com</a></blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Saludos / Regards / Cumprimentos
António Silva</pre>
</body>
</html>