How to specify a range of IP addresses for a reseller?
In Ministra TV Platform version 5.6, the operator has the opportunity to check whether the user's IP address is in the range specified for reseller.
To add the ability to set a range of IP addresses, you need to add the following parameter to the custom.ini file:
allow_resellers_ip_ranges = true
Specify the time during which the service will be available to a user with an incorrect IP, by default 300 seconds:
user_wrong_ip_timeout = 30
If the user's IP address does not match the specified in the administrative panel, after the set time, the user will be denied access to the service.
1. Open the Administrators tab.
2. Select Resellers.
3. Click the Add Reseller button.
4. Fill in the required fields.
The IP addresses field allows you to add several individual IP addresses and ranges like 111.222.0.0/16 or 111.222.0.0-111.222.1.255. If the user's IP address matches the specified address or is in the IP address range, the user will be able to log in to the Ministra TV platform portal. Otherwise, the message “You can not connect to the service in this network” will be sent to the user device.
Note! After enabling the parameter
the IP address field will be available by default. To disable the ability to add IP addresses, uncheck the check box Limit the range of IP-addresses of user.
If no reseller has been specified for the user, authorization will succeed regardless of the IP from which the user connects.