<div dir="ltr"><div>Hello,</div><div><br></div><div>Have you tried with ACL (acl.conf) ?</div><div><br></div><div>Cheers <br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 18 nov. 2019 à 13:22, Benoit Panizzon <<a href="mailto:benoit.panizzon@imp.ch">benoit.panizzon@imp.ch</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">Hi Gang<br>
<br>
To increase security against phished passwords and similar attacks, we<br>
consider offering customers to define IP ranges (or GeoIP locations)<br>
from which their dynamic registrations are being accepted.<br>
<br>
I can already look at the source IP in the dial plan, so no issue with<br>
validate an INVITE against a source IP.<br>
<br>
But I would also like to prevent registrations from outside of this<br>
client's specific allowed ip addresses as well, so the line cannot be<br>
hijacked.<br>
<br>
So I'm looking for something like<br>
<br>
On Register:<br>
If check_allowed_ip(auth_username) {<br>
return;<br>
} else {<br>
Reply(403 Wrong IP for this user);<br>
}<br>
<br>
Any ideas how to do that? (Yes, I asked Google and found nothing<br>
useful yet)<br>
<br>
Mit freundlichen Grüssen<br>
<br>
-Benoît Panizzon-<br>
-- <br>
I m p r o W a r e A G - Leiter Commerce Kunden<br>
______________________________________________________<br>
<br>
Zurlindenstrasse 29 Tel +41 61 826 93 00<br>
CH-4133 Pratteln Fax +41 61 826 93 01<br>
Schweiz Web <a href="http://www.imp.ch" rel="noreferrer" target="_blank">http://www.imp.ch</a><br>
______________________________________________________<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>