[Nut-upsuser] ACL problem
Charles Lepple
clepple at gmail.com
Sun Dec 23 14:53:13 UTC 2007
On Dec 23, 2007 1:03 AM, Richard Chapman <rchapman at aardvark.com.au> wrote:
>
> Hi all
>
> Is the syntax:
>
> ACL lan 10.0.0.0/255.0.0.0
>
> allowed and correct? Shouldn't it be:
>
> ACL lan 10.0.0.0/8
>
> If both notations are allowed in the same syntax - it is news to me - but then many things are news to me...:-)
Both are allowed. Check acl_add() in server/access.c -- there is a
comment showing what works and what doesn't. Basically, it checks to
see if there is a dot in the part to the right of the slash, and if
so, the part to the right of the slash is used directly as the mask.
--
- Charles Lepple
More information about the Nut-upsuser
mailing list