IP address/IP range auth module for Erlang
Frank Muller
frank.muller.erl@REDACTED
Fri Oct 25 22:41:29 CEST 2019
Thanks Marc. Quickly checked the code and it looks clean and simple.
Exactly what I was looking for.
/Frank
Le ven. 25 oct. 2019 à 20:39, Marc Worrell <marc@REDACTED> a écrit :
> [2nd try, now from correct email address]
>
> Hi Frank,
>
> You can check zotonic_stdlib, there we have routines to check an IP
> address against IP address ranges.
>
> https://github.com/zotonic/z_stdlib/blob/master/src/z_ip_address.erl
>
> Cheers,
>
> Marc Worrell
>
>
> On 25 Oct 2019, at 19:15, 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: "51.121.92.25"
>
> Only one IP address is allowed: 51.121.92.25
>
> . Rule 2: "51.121.*.25"
>
> These IPs are all allowed:
> 51.121.92.25
> 51.121.91.25
> 51.121.90.25
> …
>
> 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...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20191025/927d7333/attachment.htm>
More information about the erlang-questions
mailing list