Locations
Locations is used to define custom locations, for example to map internal IP scopes to an name and country.
Maxmind GeoIP database (https://www.maxmind.com/en/geoip-demo) is used to lookup public IP's and map them to a country, if they are not mapped to custom location.
Accessing the "Administration - Locations" page.
To see the "Administration - Locations" page, click the "Administration" link in the top green menu bar, then click the "Locations" link in the dropdown menu:
Once presented the "Administration - Locations" page, you will see a list of custom locations with their names and additional information.
Create a new location.
To create a new location entry, click the green "Add new location" button, at the upper right corner:
Once clicked you will be shown a popup window where the new location can be created.
Input the needed fields and click save.
IP range is automatically created based on the provided CIDR, see CIDR examples for explanation.
Edit a location:
To edit a location, click the "Edit" link under the "Actions" column, at the corresponding location row you wish to edit:
Once clicked you will be shown a popup window where the location can be edited.
Deleting a location.
Select Edit location and press "Delete" button.
CIDR to IP Range (Example)
You can use an online calculator, if you only have the start and end ip scope.
1) Map single host CIDR
Use /32 to map a single host, is written as x.x.x.x/32
2) Map range:
CIDR = 192.168.3.55/28
IP ADDRESS
192 | 168 | 3 | 55 |
11000000 | 10101000 | 00000011 | 00110111 |
NET MASK
28 bits turned on
11111111 | 11111111 | 11111111 | 11110000 |
(IP ADDRESS) AND (NET MASK)
11000000 | 10101000 | 00000011 | 00110111 |
11111111 | 11111111 | 11111111 | 11110000 |
11000000 | 10101000 | 00000011 | 00110000 |
Start IP = 192.168.3.48 (11000000.10101000.00000011.00110000)
Last octet in the NET MASK: 11110000
11111111 | 11111111 | 11111111 | 11110000 |
Last bit turned on in last octect: 16
1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 |
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
48-16-1=63
End IP = 192.168.3.63
IP RANGE = 192.168.3.48 - 192.168.3.63