Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] ACL issue


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
kevin at kgolding.co.uk
Guest





PostPosted: Mon Aug 10, 2009 6:45 pm    Post subject: [Freeswitch-users] ACL issue Reply with quote

Hello,

Am in the progress of setting up a test freeswitch box. Have got
internal extensions working, along with an outgoing gateway.

My issue is getting the incoming calls.

The error I'm getting is: "2009-08-10 21:47:42 [DEBUG] sofia.c:3785
sofia_handle_sip_i_invite() IP 213.166.5.129 Rejected by acl "domains".
Falling back to Digest auth."

After reading the docs, I believed I needed to add the 213.166.5.129 IP
to the "domains" list, but alas I could not find such a list by default.
It appears I was missing an acl.conf.xml file. I have created a new
acl.conf.xml file, and have put the following in it:

<configuration name="acl.conf" description="Network Lists">
<network-lists>
<list name="domains" value="allow">
<node type="allow" domain="$${domain}"/>
<node type="allow" domain="213.166.5.128/28"/>
<node type="allow" domain="87.238.72.128/26"/>
</list>
</network-lists>
</configuration>

But I am still getting the same error for an incoming call.

Best regards,
--
Kevin Golding

_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Mon Aug 10, 2009 6:49 pm    Post subject: [Freeswitch-users] ACL issue Reply with quote

First off edit the profile to use your own custom ACL... not the
domains one... secondly you'll have to use cidr= instead of domain=.

Domain= will search the user directory building an ACL list from all
users with the cidr= attribute.

/b


On Aug 10, 2009, at 6:36 PM, Kevin Golding wrote:

Quote:
acl.conf.xml file, and have put the following in it:

<configuration name="acl.conf" description="Network Lists">
<network-lists>
<list name="domains" value="allow">
<node type="allow" domain="$${domain}"/>
<node type="allow" domain="213.166.5.128/28"/>
<node type="allow" domain="87.238.72.128/26"/>
</list>
</network-lists>
</configuration>


_______________________________________________
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
Back to top
kevin at kgolding.co.uk
Guest





PostPosted: Tue Aug 11, 2009 2:44 am    Post subject: [Freeswitch-users] ACL issue Reply with quote

Thanks Brian,

Well spotted with the domain/cidr Smile

I changed the line <param name="apply-inbound-acl" value="domains"/> in
the internal.xml with a new value, and changed the list to match but I
still get the same 'Rejected by acl "domains"' error.

And yes I reloaded the xml. Smile

Kevin

Brian West wrote:
Quote:
First off edit the profile to use your own custom ACL... not the
domains one... secondly you'll have to use cidr= instead of domain=.

Domain= will search the user directory building an ACL list from all
users with the cidr= attribute.

/b


On Aug 10, 2009, at 6:36 PM, Kevin Golding wrote:

Quote:
acl.conf.xml file, and have put the following in it:

<configuration name="acl.conf" description="Network Lists">
<network-lists>
<list name="domains" value="allow">
<node type="allow" domain="$${domain}"/>
<node type="allow" domain="213.166.5.128/28"/>
<node type="allow" domain="87.238.72.128/26"/>
</list>
</network-lists>
</configuration>


_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Aug 11, 2009 12:03 pm    Post subject: [Freeswitch-users] ACL issue Reply with quote

On Tue, Aug 11, 2009 at 2:38 AM, Kevin Golding <kevin@kgolding.co.uk (kevin@kgolding.co.uk)> wrote:
Quote:
Thanks Brian,

Well spotted with the domain/cidr Smile

I changed the line <param name="apply-inbound-acl" value="domains"/> in
the internal.xml with a new value, and changed the list to match but I
still get the same 'Rejected by acl "domains"' error.

You need to apply the name of your new ACL in the sip profile. In the file internal.xml look for this line:
<param name="apply-inbound-acl" value="domains"/>

And change "domains" to whatever your new ACL is named:
<param name="apply-inbound-acl" value="YOUR_NEW_ACL_NAME_HERE"/>

Then restart FS or go to the command line and execute:
reloadacl reloadxml

Should be good after that!
-MC

Quote:

And yes I reloaded the xml. Smile

Kevin

Brian West wrote:
Quote:
First off edit the profile to use your own custom ACL... not the
domains one... secondly you'll have to use cidr= instead of domain=.

Domain= will search the user directory building an ACL list from all
users with the cidr= attribute.

/b


On Aug 10, 2009, at 6:36 PM, Kevin Golding wrote:

Quote:
acl.conf.xml file, and have put the following in it:

<configuration name="acl.conf" description="Network Lists">
  <network-lists>
    <list name="domains" value="allow">
        <node type="allow" domain="$${domain}"/>
        <node type="allow" domain="213.166.5.128/28"/>
        <node type="allow" domain="87.238.72.128/26"/>
    </list>
  </network-lists>
</configuration>


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Aug 11, 2009 12:43 pm    Post subject: [Freeswitch-users] ACL issue Reply with quote

you have to now apply the ACL correctly to the sofia profile.

/b

On Aug 11, 2009, at 2:38 AM, Kevin Golding wrote:

Quote:
Thanks Brian,

Well spotted with the domain/cidr Smile

I changed the line <param name="apply-inbound-acl" value="domains"/>
in
the internal.xml with a new value, and changed the list to match but I
still get the same 'Rejected by acl "domains"' error.

And yes I reloaded the xml. Smile

Kevin


_______________________________________________
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
Back to top
kevin at kgolding.co.uk
Guest





PostPosted: Tue Aug 11, 2009 4:25 pm    Post subject: [Freeswitch-users] ACL issue Reply with quote

Sorry, but could you give me a pointer on what this involves or where to
read up on it please?

Brian West wrote:
Quote:
you have to now apply the ACL correctly to the sofia profile.

/b

On Aug 11, 2009, at 2:38 AM, Kevin Golding wrote:

Quote:
Thanks Brian,

Well spotted with the domain/cidr Smile

I changed the line <param name="apply-inbound-acl" value="domains"/>
in
the internal.xml with a new value, and changed the list to match but I
still get the same 'Rejected by acl "domains"' error.

And yes I reloaded the xml. Smile

Kevin


_______________________________________________
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



_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Aug 11, 2009 4:29 pm    Post subject: [Freeswitch-users] ACL issue Reply with quote

I would guess in conf/sip_profiles/internal.xml where it applies the
domains ACL to the profile... you can change that or add additional
lines to apply more ACL's to the profile.

/b

On Aug 11, 2009, at 4:21 PM, Kevin Golding wrote:

Quote:
Sorry, but could you give me a pointer on what this involves or
where to
read up on it please?

Brian West wrote:
Quote:
you have to now apply the ACL correctly to the sofia profile.

/b



_______________________________________________
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
Back to top
kevin at kgolding.co.uk
Guest





PostPosted: Tue Aug 11, 2009 5:05 pm    Post subject: [Freeswitch-users] ACL issue Reply with quote

Thank you Brian. Have got the ACL issue sorted with your help - thank
you. See new thread for my next problem Smile

kevin

Brian West wrote:
Quote:
I would guess in conf/sip_profiles/internal.xml where it applies the
domains ACL to the profile... you can change that or add additional
lines to apply more ACL's to the profile.

/b

On Aug 11, 2009, at 4:21 PM, Kevin Golding wrote:

Quote:
Sorry, but could you give me a pointer on what this involves or
where to
read up on it please?

Brian West wrote:
Quote:
you have to now apply the ACL correctly to the sofia profile.

/b


_______________________________________________
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



_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services