Playing with ACL and authenticate users
Hi all, I was playing around trying to have some users authenticated by IP and some users to be challenged for username/password auth. The problem is that I don't get it all. If I configure 2 users in this way: <user id="6001" cidr="192.168.28.12/32"> <params> </params> <variables> <variable name="accountcode" value="6001"/> <variable name="user_context" value="GOLDEN"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> </variables> </user> <user id="6002"> <params> <param name="password" value="111111"/> </params> <variables> <variable name="accountcode" value="6002"/> <variable name="user_context" value="GOLDEN"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> </variables> </user> And I added in sofia.conf.xml <param name="apply-inbound-acl" value="domains"/> User 6001 can authenticate if it's using IP 192.168.28.12 and can place calls, but user 6002 is rejected by acl "domains" Then I tried this: <user id="6001"> <params> <param name="auth-acl" value="192.168.28.12/32"/> </params> <variables> <variable name="accountcode" value="6001"/> <variable name="user_context" value="GOLDEN"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> </variables> </user> <user id="6002"> <params> <param name="password" value="111111"/> </params> <variables> <variable name="accountcode" value="6002"/> <variable name="user_context" value="GOLDEN"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> </variables> </user> And I deleted in sofia.conf.xml <param name="apply-inbound-acl" value="domains"/> and added <param name="auth-calls" value="true"/> Now user 6002 can place calls but for user 6001 I see in the log : 2013-05-23 18:15:27.222090 [WARNING] switch_core_state_machine.c:514 bed463c1-742e-4e24-829f-a6188a6667b3 sofia/GOLDEN/XXXXXXXX@XXX.XXX.XXX.XXX Abandoned 2013-05-23 18:15:27.222090 [NOTICE] switch_core_state_machine.c:517 Hangup sofia/GOLDEN/XXXXXXXX@XXX.XXX.XXX.XXX [CS_NEW] [WRONG_CALL_STATE] This is my dial plan config: <context name="GOLDEN"> <extension name="unloop"> <condition field="$${unroll_loops}" expression="^true$"/> <condition field="$${sip_looped_call}" expression="^true$"> <action application="deflect" data="$${destination_number}"/> </condition> </extension> <extension name="outside_call" continue="true"> <condition> <action application="set" data="outside_call=true"/> </condition> </extension> <extension name="hangup"> <condition field="destination_number" expression="^(hangup)$"> <action application="hangup"/> </condition> </extension> <!-- START OF PREFIX STRIPPING --> <extension name="remove_prefix_2" continue="true"> <condition field="network_addr" expression="^XXX\.XXX\.XXX\.XXX$"/> <condition field="destination_number" expression="^12345(\d+)$"> <action application="log" data="Removing leading digits"/> <action application="set" data="destination_number=$1"/> </condition> </extension> <extension name="distributor_TEST2_37360______"> <condition field="${sip_authorized}" expression="^true$" break="never"/> <condition field="destination_number" expression="^(\d+)$"> <action application="log" data="Dialing User"/> <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="user/$1@XXX.XXX.XXX.XXX"/> </condition> </extension> And now I'm lost. Please, can anybody point me where the issue can be? Do I need to have different sofia profiles, one for IP authentication and one for username/password auth? Regards, Alfonso.
In short!? Yes... You can't use ip-auth and password-auth in the same profile regards ___________________________ And now I'm lost. Please, can anybody point me where the issue can be? Do I need to have different sofia profiles, one for IP authentication and one for username/password auth? Regards, Alfonso. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks for your help :) Now it's clear. Regards, Alfonso. El 04/06/2013, a las 12:32, B.Tietz@pinguin.ag escribió:
In short!?
Yes...
You can't use ip-auth and password-auth in the same profile
regards
___________________________
And now I'm lost. Please, can anybody point me where the issue can be? Do I need to have different sofia profiles, one for IP authentication and one for username/password auth?
Regards, Alfonso.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Tue, Jun 4, 2013 at 3:32 AM, <B.Tietz@pinguin.ag> wrote:
In short!?
Yes...
You can't use ip-auth and password-auth in the same profile
regards
Pro Tip: you *can* have both on the same profile. Brian West said that you'd need to make use of the 'respond' dialplan app for those who are not IP auth'd. Use respond with data='401' and that should force the phone to do the normal digest auth dialog. -MC
___________________________
And now I'm lost. Please, can anybody point me where the issue can be? Do I need to have different sofia profiles, one for IP authentication and one for username/password auth?
Regards, Alfonso.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Hello, I would like to know if there were any news in this subject. Is possible to mix both IP auth users and user/password users in the same profile without the need of using respond application? Regards 2013-06-04 18:55 GMT+02:00 Michael Collins <msc@freeswitch.org>:
On Tue, Jun 4, 2013 at 3:32 AM, <B.Tietz@pinguin.ag> wrote:
In short!?
Yes...
You can't use ip-auth and password-auth in the same profile
regards
Pro Tip: you *can* have both on the same profile. Brian West said that you'd need to make use of the 'respond' dialplan app for those who are not IP auth'd. Use respond with data='401' and that should force the phone to do the normal digest auth dialog. -MC
___________________________
And now I'm lost. Please, can anybody point me where the issue can be? Do I need to have different sofia profiles, one for IP authentication and one for username/password auth?
Regards, Alfonso.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I think if you have acl auth set, and if fails, it will fallback to digest auth... not sure though. Try it. On Jan 15, 2015 5:12 PM, "Juan Antonio Ibañez Santorum" < juanito1982@gmail.com> wrote:
Hello,
I would like to know if there were any news in this subject. Is possible to mix both IP auth users and user/password users in the same profile without the need of using respond application?
Regards
2013-06-04 18:55 GMT+02:00 Michael Collins <msc@freeswitch.org>:
On Tue, Jun 4, 2013 at 3:32 AM, <B.Tietz@pinguin.ag> wrote:
In short!?
Yes...
You can't use ip-auth and password-auth in the same profile
regards
Pro Tip: you *can* have both on the same profile. Brian West said that you'd need to make use of the 'respond' dialplan app for those who are not IP auth'd. Use respond with data='401' and that should force the phone to do the normal digest auth dialog. -MC
___________________________
And now I'm lost. Please, can anybody point me where the issue can be? Do I need to have different sofia profiles, one for IP authentication and one for username/password auth?
Regards, Alfonso.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I tried to set auth-acl parameter to the user definition but FS still answer with 407 Auth required Regards 2015-01-15 18:04 GMT+01:00 David Villasmil Govea <david.villasmil@gmail.com> :
I think if you have acl auth set, and if fails, it will fallback to digest auth... not sure though. Try it. On Jan 15, 2015 5:12 PM, "Juan Antonio Ibañez Santorum" < juanito1982@gmail.com> wrote:
Hello,
I would like to know if there were any news in this subject. Is possible to mix both IP auth users and user/password users in the same profile without the need of using respond application?
Regards
2013-06-04 18:55 GMT+02:00 Michael Collins <msc@freeswitch.org>:
On Tue, Jun 4, 2013 at 3:32 AM, <B.Tietz@pinguin.ag> wrote:
In short!?
Yes...
You can't use ip-auth and password-auth in the same profile
regards
Pro Tip: you *can* have both on the same profile. Brian West said that you'd need to make use of the 'respond' dialplan app for those who are not IP auth'd. Use respond with data='401' and that should force the phone to do the normal digest auth dialog. -MC
___________________________
And now I'm lost. Please, can anybody point me where the issue can be? Do I need to have different sofia profiles, one for IP authentication and one for username/password auth?
Regards, Alfonso.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
+1 to have a clean and simple both auth method sample config... don't have time to test yet :) Regards, 2015-01-15 18:35 GMT+01:00 Juan Antonio Ibañez Santorum < juanito1982@gmail.com>:
I tried to set auth-acl parameter to the user definition but FS still answer with 407 Auth required
Regards
2015-01-15 18:04 GMT+01:00 David Villasmil Govea < david.villasmil@gmail.com>:
I think if you have acl auth set, and if fails, it will fallback to digest auth... not sure though. Try it. On Jan 15, 2015 5:12 PM, "Juan Antonio Ibañez Santorum" < juanito1982@gmail.com> wrote:
Hello,
I would like to know if there were any news in this subject. Is possible to mix both IP auth users and user/password users in the same profile without the need of using respond application?
Regards
2013-06-04 18:55 GMT+02:00 Michael Collins <msc@freeswitch.org>:
On Tue, Jun 4, 2013 at 3:32 AM, <B.Tietz@pinguin.ag> wrote:
In short!?
Yes...
You can't use ip-auth and password-auth in the same profile
regards
Pro Tip: you *can* have both on the same profile. Brian West said that you'd need to make use of the 'respond' dialplan app for those who are not IP auth'd. Use respond with data='401' and that should force the phone to do the normal digest auth dialog. -MC
___________________________
And now I'm lost. Please, can anybody point me where the issue can be? Do I need to have different sofia profiles, one for IP authentication and one for username/password auth?
Regards, Alfonso.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (6)
-
B.Tietz@pinguin.ag
-
David Villasmil Govea
-
Elhodred
-
Juan Antonio Ibañez Santorum
-
Michael Collins
-
Regis M