How to define allowed range

Issues related to configuring your network
Post Reply
raffaele.fabbri
Posts: 79
Joined: 2015/03/14 07:57:15

How to define allowed range

Post by raffaele.fabbri » 2017/02/12 17:32:47

I have to define an ip range
sintax is "#{ {'127.0.0.1/32', '::1/128'} }"
If i right understand it means that can access only 127.0.0.1

If I want allow access to the range 172.25.5.0 to 172.25.5.255
somebody can tell me how to configure the rule.

Everytime I found this very difficult, where found I documentation that explain this logic?

Thank's in advance

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: How to define allowed range

Post by jlehtone » 2017/02/12 17:40:59


raffaele.fabbri
Posts: 79
Joined: 2015/03/14 07:57:15

Re: How to define allowed range

Post by raffaele.fabbri » 2017/02/12 18:47:41

If I understand rigth the configuration is 172.25.5.0/24 but what is the rule for ::1/128?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: How to define allowed range

Post by aks » 2017/02/13 17:32:11

172.25.5.0/24
Correct, it's the 255.255.255.0 subnet (i.e.: the first to third octets).
but what is the rule for ::1/128
To do what? For IPv4 encapsulation in IPv6? For what range? For what reason?

The /32 in IPv4 is the same as 255.255.255.255, that means this address (in your case 127.0.0.1) and no other address (not even 127.0.0.2 etc.). The /128 in IPv6 is the same thing - in the sense that IPv6 uses a 128 bit address space (and IPv4 is a 32 bit address space).

What do you want to achieve?

Post Reply