Re: require ip ipset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 22, 2020 at 2:14 AM Vieri Di Paola <vieridipaola@xxxxxxxxx> wrote:
>
> Hi,
>
> I was wondering if it is complicated to implement ipset support for
> the Require directive. Something like Require ip <ipset_name> (where
> the ipset can be of types hash:ip, hash:net or bitmap:ip).

Should be straightforward, see modules/aaa/mod_authz_host.c.

Because the APR library already knows how to check a IP against a
subnet/CIDR, the callback for "require ip" is less than 20 lines of
code including boilerplate stuff.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux