Re: [Kamailio-Users] IP Authentication

2010-03-12 Thread Iñaki Baz Castillo
2010/3/12 Joao Gomes Pereira gomespere...@startel.pt:
 Thanks for the help
 And would be possible to have the IPs in the Database, so I don't need to
 change Kamailio configuration every time I want to add a new IP?
 What would be the correct table?

Please, check the documentation of the permissions module.

-- 
Iñaki Baz Castillo
i...@aliax.net

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Re: [Kamailio-Users] IP Authentication

2010-03-11 Thread Henning Westerholt
On Thursday 11 March 2010, Joao Gomes Pereira wrote:
 Is is possible to implement IP authentication in Kamailio?
 Does Kamailio has a manual to do that?

Hi Joao,

you refer to allowing certain peers to bypass your authentification logic in 
the script and setting up calls? Sure, this is possible. Just add some logic 
that checks for a certain IP address and then route the call as you like.

something like:

if (src_ip!=1.2.3.4/24) {
  # do routing..
} else {
  # do normal authentification
}

you could also use PVs to do this, i think the right one is $si.

Cheers,

Henning

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users


Re: [Kamailio-Users] IP Authentication

2010-03-11 Thread Uriel Rozenbaum
Joao,

If you are going to use many hosts/subnets you can use permissions module.

I use it to permit SIP traffic and to avoid auth.

Rgds,
Uriel

On Thu, Mar 11, 2010 at 1:46 PM, Henning Westerholt 
henning.westerh...@1und1.de wrote:

 On Thursday 11 March 2010, Joao Gomes Pereira wrote:
  Is is possible to implement IP authentication in Kamailio?
  Does Kamailio has a manual to do that?

 Hi Joao,

 you refer to allowing certain peers to bypass your authentification logic
 in
 the script and setting up calls? Sure, this is possible. Just add some
 logic
 that checks for a certain IP address and then route the call as you like.

 something like:

 if (src_ip!=1.2.3.4/24) {
  # do routing..
 } else {
  # do normal authentification
 }

 you could also use PVs to do this, i think the right one is $si.

 Cheers,

 Henning

 ___
 Kamailio (OpenSER) - Users mailing list
 Users@lists.kamailio.org
 http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
 http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Re: [Kamailio-Users] IP Authentication

2010-03-11 Thread Henning Westerholt
On Thursday 11 March 2010, Iñaki Baz Castillo wrote:
  you refer to allowing certain peers to bypass your authentification logic
  in the script and setting up calls? Sure, this is possible. Just add some
  logic that checks for a certain IP address and then route the call as you
  like.
 
  something like:
 
  if (src_ip!=1.2.3.4/24) {
   # do routing..
  } else {
   # do normal authentification
  }
 
  you could also use PVs to do this, i think the right one is $si.
 
 I recommend using the permissions module (address table). Very
 powerful and efficient for such scenarios.

Hi Iñaki,

this is of course better. Don't used it that much, for no particular reason, 
so i usually don't thought about it.

Cheers,

Henning

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Re: [Kamailio-Users] IP Authentication

2010-03-11 Thread Iñaki Baz Castillo
2010/3/11 Henning Westerholt henning.westerh...@1und1.de:

 Hi Iñaki,

 this is of course better. Don't used it that much, for no particular reason,
 so i usually don't thought about it.

I use it in production. It's great as it loads the IP's or networks
into memory (reloadable via MI command)  :)
It also returns a $rc code according to the grp column of the
mathing row in the address table so you can identify the client id.

Regards.

-- 
Iñaki Baz Castillo
i...@aliax.net

___
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users