IP address/IP range auth module for Erlang
Luke Bakken
luke@REDACTED
Fri Oct 25 19:22:59 CEST 2019
Hi Frank,
You may be able to get some inspiration from this RabbitMQ plugin:
https://github.com/gotthardp/rabbitmq-auth-backend-ip-range/
Thanks,
Luke
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: "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
More information about the erlang-questions
mailing list