2 ; Named Access Control Lists (ACLs)
4 ; A convenient way to share acl definitions
6 ; This configuration file is read on startup
9 ; -----------------------------------------------------------
10 ; acl show Show all named ACLs configured
11 ; acl show <name> Show contents of a particular named ACL
12 ; reload acl Reload configuration file
15 ;systemname=asterisksystem1 ; If a system name is specified, realtime
16 ; ; ACLs will only be retrieved if they have
17 ; ; a systemname field that matches this value.
18 ; ; If it's less blank, the field is ignored.
20 ; Any configuration that uses ACLs which has been made to be able to use named
21 ; ACLs will specify a named ACL with the 'acl' option in its configuration in
22 ; a similar fashion to the usual 'permit' and 'deny' options. Example:
25 ; Multiple named ACLs can be applied by either comma separating the arguments or
26 ; just by adding additional ACL lines. Example:
32 ; acl=my_named_acl,my_named_acl2
34 ; ACLs specified by name are evaluated independently from the ACL specified via
35 ; permit/deny. In order for an address to pass a given ACL, it must pass both
36 ; the ACL specified by permit/deny for a given item as well as any named ACLs
37 ; that were specified.
45 ;permit=0.0.0.0/0.0.0.0
50 ; example_named_acl1 above shows an example of whitelisting. When whitelisting, the
51 ; named ACLs should follow a deny that blocks everything (like deny=0.0.0.0/0.0.0.0)
52 ; The following example explains how combining the ACLs works:
53 ; <in another configuration>
54 ; [example_item_with_acl]
55 ; acl=example_named_acl1
56 ; acl=example_named_acl2
58 ; Suppose 209.16.236.0 tries to communicate and the ACL for that example is applied to it...
59 ; First, example_named_acl1 is evaluated. The address is allowed by that ACL.
60 ; Next, example_named_acl2 is evaluated. The address isn't blocked by example_named_acl2
61 ; either, so it passes.
63 ; Suppose instead 209.16.236.1 tries to communicate and the same ACL is applied.
64 ; First, example_named_acl1 is evaluated and the address is allowed.
65 ; However, it is blocked by example_named_acl2, so the address is blocked from the combined
68 ; Similarly, the permits/denies in specific configurations that make up an ACL definition
69 ; are also treated as a separate ACL for evaluation. So if we change the example above to:
70 ; <in another configuration>
71 ; [example_item_with_acl]
72 ; acl=example_named_acl1
73 ; acl=example_named_acl2
76 ; Then 209.16.236.0 will be rejected by the non-named component of the combined ACL even
77 ; though it passes the two named components.
80 ; Named ACLs can use ipv6 addresses just like normal ACLs.
86 ;permit = fe80::21d:bad:fad:2323