[Users] IP authentication

Dioris Moreno nesken at gmail.com
Wed Aug 30 23:16:18 CEST 2006


Why you don't use just the source IP address of the request. For
example:
 
      # INVITE - Authorization Section
      if (src_ip=="AAA.BBB.CCC.DDD") {
            xlog("L_INFO", "INVITE - Message received from authorized IP
$si\n");
      } else {
            if (!proxy_authorize("yourdomain.com","subscriber")) {
                  proxy_challenge("yourdomain.com","0");
                  exit;
            } else if (!check_from()) {
                  sl_send_reply("403", "Use From=ID");
                  exit;
            };
            consume_credentials();
      };
 
 
 
-----Mensaje original-----
De: users-bounces at openser.org [mailto:users-bounces at openser.org] En
nombre de Brian Fertig
Enviado el: 30 de Agosto de 2006 03:35 p.m.
Para: users at openser.org
Asunto: [Users] IP authentication
 
greetings,
 
 
                I have digest and basic auth setup.    I am trying to
figure out how to setup IP auth.  I have 
read a lot of documentation but I can't seem to find anything to help me
understand how to accomplish
this.  Can someone point me in a direction to some information on how to
set this up?
 
 
 
Brian
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20060830/492e1721/attachment.htm 


More information about the Users mailing list