IP address/IP range auth module for Erlang
Fri Oct 25 20:10:28 CEST 2019
I quickly reviewed the code, and found this section intriguing:
How about just this instead:
Addr == Mask,
Anyway, thank you. If no one else has another alternative, I’m gonna hack
this module a little bit to fit my needs.
Le ven. 25 oct. 2019 à 19:23, Luke Bakken <luke@REDACTED> a écrit :
> Hi Frank,
> You may be able to get some inspiration from this RabbitMQ plugin:
> On Fri, Oct 25, 2019 at 10:15 AM Frank Muller
> <frank.muller.erl@REDACTED> wrote:
> > Hi guys
> > I’m looking for an Erlang module which let me authorize connexions based
> on an IP address or IP address range.
> > Examples:
> > . Rule 1: "126.96.36.199"
> > Only one IP address is allowed: 188.8.131.52
> > . Rule 2: "51.121.*.25"
> > These IPs are all allowed:
> > 184.108.40.206
> > 220.127.116.11
> > 18.104.22.168
> > …
> > Would be great if the module can also validate the connection IP
> address. For now, I only deal with IP v4 addresses (but I’m open to support
> IP v6 in my code).
> > Thanks in advance
> > /Frank
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions