An administrator can activate the Authorised IP checking facility in OpenCRM to make sure users can only log in from specific IP addresses.
From Settings, open Additional Settings and then find the Security settings block shown below,
To activate the feature, tick the 'Limit OpenCRM access to specified IPs' box
You will also need to enter the usernames of one or more users with admin access, these users will need to be available to enter IPs when a user needs access from a currently unauthorised location.
Setting Authorised IPs
To set global access from some IP addresses, for example your own offices, enter these in the Company wide authorised IPs Box
Enter a list of IP addresses that are allowed to access your OpenCRM system. Leave this box blank to only use per User IP addresses, or enter *.*.*.* to allow access from anywhere (this however will have the same effect as turning the feature off).
To set the authorised IPs at a user level, edit the User record in question, at the bottom of the edit screen you will see this box;
As before enter the IPs that this User is allowed access from.
If you tick the Disconnect users sessions if they are on unauthorised IPs box, you need to be sure all allowed IPs are entered, either on the company global list or on the relevant users. If a user is not on a recognised IP their OpenCRM session will be terminated upon their next page load. This includes your own session so when this box is ticked if you are on an unrecognised IP your session will be terminated and you will be unable to re-log in until another administrator has authorised your IP address or turned off the feature.
In the security settings is a box to block access from specific IPs this takes a list just the same as the allow box, only this is a blacklist of IPs, no one will be able to access the system from any of the specified IPs, similar to ticking the box to disconnect users if they're not on authorised IPs, adding an IP to this list will block access to anyone on that IP even if they are already logged in. However instead of just disconnecting their session, they will be redirected to the website page specified in the Redirect Blocked Ips to box.
How It Works
When a user tries to log in to OpenCRM the list of IP addresses that have access for the company is added to the list that is stored against the user that is trying to log in. If you have entered *.*.*.* on either of these lists or both lists are blank then the feature is disabled for this login attempt. If however there are a list of IP addresses, the user's current IP address is checked against this dynamic list, if this finds a match then they are allowed access and their password is checked as normal. If the IP is not on the list then the user is not allowed access and they are returned to the login page displaying an information message.
When a User is blocked because they are accessing from an unauthorised IP address the user will see the message below;
This tells the user the feature is enabled and provides a link to request their current IP be authorised by an administrator. Clicking this link will give the User a where they can request IP authorisation.
This form allows the user to send a message to the Administrator responsible for authorising IPs, the message sent will automatically include the IP the user is currently using. The message box is there for the user to confirm they are who the message claims them to be, this could be by providing details that can only be found on their user record, or maybe an agreed upon passphrase.
Before being able to submit this form the user will need to enter the code shown, this is just to confirm they are human and not spam robots trying to use the form for mischief.
Disclaimer: All IPs in the screenshots are made up and any systems they do point at have nothing at all to do with OpenCRM.