[Serusers] Authentication Based On IP Addresses

Gokhan Uslu g.uslu at teles.com
Sun Mar 12 12:08:42 CET 2006


Hi Kapil,

Thanks for your reply,
I am using freeradius and I want to authenticate users with freeradius based
on the ip of user.


-----Original Message-----
From: Kapil Dhawan [mailto:sersavvy at hotmail.com] 
Sent: 12 Mart 2006 Pazar 07:42
To: Gokhan Uslu
Cc: serusers at lists.iptel.org
Subject: RE: [Serusers] Authentication Based On IP Addresses


in ser.cfg
        if (loose_route()) {
                # mark routing logic in request
                append_hf("P-hint: rr-enforced\r\n");
                route(1);
                break;
        };

        if(method=="INVITE"){
        if (src_ip==x1.y1.z1.w1){
        if (uri=~"^sip:001*@*"){
                rewritehost("x.y.z.w");
                t_relay_to_udp("x.y.z.w","5060");
                break;
       };
       };
       };

This states that if Call is coming from x1.y1.z1.w1 and 00 as prefix then 
forward it to your Provider.

>From: Gokhan Uslu <g.uslu at teles.com>
>To: "'serusers at lists.iptel.org'" <serusers at lists.iptel.org>
>Subject: [Serusers] Authentication Based On IP Addresses
>Date: Sat, 11 Mar 2006 18:58:24 +0100
>
>
>Hi All...
>I am using SER  and FREERADIUS
>I want to authenticate all the clients based on IP addresses. How to 
>proceed...? where to make the changes? can any one give me the sample 
>code function?...Thanks for any hint...
>
>Gokhan USLU
>
>


>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers

_________________________________________________________________
NRIs: Still paying for money transfers? Now send Money2India for FREE! 
http://ads.mediaturf.net/event.ng/Type=click&FlightID=20273&AdID=65990&Targe
tID=11172&Targets=11172&Values=202,414,1093,1264,3122&Redirect=http:%2F%2Fww
w.icicinri.net%2Fmoney2india%2F%3Fm2i%3DBAC-MSN%26att%3DMSNTLM2I70CHAR%26rfr
%3DMSNTLM2I70CHAR




More information about the sr-users mailing list