Milesight provides several software solutions in its connectivity suite for managing its products.
Thus, “Milesight VPN” which can be easily deployed on a Linux server, which is a free VPN and which allows you to connect your Milesight devices and products within the same VPN network.
In this tutorial, we will describe the procedure to follow for the installation:
Installation prerequisites:
Hardware Requirements
It is suggested to use a machine that meets the following requirements:
For 500 devices
- - Processor: 2 cores, 2.0 GHz
- - RAM: 16 GB
- - Disk: 512 GB
- - Bandwidth: ≥ 100 MBps
For 1000 devices
- - Processor: 8 cores, 3.2 GHz
- - RAM: 32 GB
- - Disk: 1 TB
- - Bandwidth: ≥ 100 MBps
Software Configuration
- Operating system: Ubuntu Server 20.04
- Browser: Chrome, Firefox
Facility
Installation conditions
- Ubuntu Server
- MilesightVPN
- WinSCP
- Putty (or other SSH tool)
Installing Ubuntu Server 20.04
You must install Ubuntu Server 20.04 on a machine. Here is the download link:
https://releases.ubuntu.com/focal/
The installation of Ubuntu Server is not described in this tutorial.
Software download
The following steps are based on the WinSCP tool. You can also use other tools to upload the software to your Ubuntu server.
1. Download the MilesightVPN package from the Milesight IoT website, then extract and verify the files:
Download link :
https://resource.milesight-iot.com/MilesightVPN/2.0.1/2.0.1.zip
2. Open WinSCP and set up a session between WinSCP and your server.
3.Select the MilesightVPN folder and click "Download", select the server path and click "OK" to download.
Installing MilesightVPN
-
Connect to the server via Putty. You can also use other SSH tools.
- Make sure the network tool is installed on the server. You can type ifconfig to check it. If it is not found, run apt install net-tools to install it.
-
Run the following commands under the MilesightVPN directory.
chmod +x depend_install_urvpn.sh
./depend_install_urvpn.sh
chmod +x depend_install_urvpn.sh
./depend_install_urvpn.sh
-
Install the DeviceHub software. Take version 2.0.1 as an example, please enter the following command:
dpkg -i milesight_vpn_2.0.1_amd64.deb
It will take approximately 10 minutes to complete the installation and a following message will be displayed when the installation is complete.
To note:
If you need to upgrade to V2.0.1 from V1.0.19, please backup the VPN database and uninstall the old version program, then install the new version.
Uninstalling MilesightVPN
If you need to uninstall MilesightVPN, run the following commands:
sudo rm /etc/init.d/milesight_vpn.sh
sudo rm /etc/init.d/urvpn-server.sh
sudo rm /etc/init.d/urvpn_watchdog_start.sh
sudo rm -rf /milesight_vpn sudo dpkg -P
milesight-vpn sudo apt-get remove mysql*
Services and Ports
In order to ensure security and unblocked communication, here are the ports to open in your router and your firewall for the proper functioning of the services:
Port Protocol Description
Port |
Protocol |
Description |
18080 |
TCP |
HTTP service |
18443 |
TCP |
HTTPS service |
1194 |
TCP |
OpenVPN service |
Increase device management capacity
The number of available management devices can be checked in the "Device" tab.
The maximum number of management devices is 25 by default. Please refer to the following steps to expand device management.
- Log in to MilesightVPN and go to the "VPN" tab, then click "Create and Upload" to download the license information file.
- Contact our sales department and get the license information.
- Obtain an extended license from Milesight and click "Browse" to import the license.
- Click “save” to save the settings and the maximum number of manageable devices will change.
Connect to MilesightVPN
Authenticate to MilesightVPN
After installation, you can access the MilesightVPN interface by typing the following address into your browser:
https://ip-du-serveur:18443 or http://ip-du-serveur:18080 *.
Default username: admin
Default password: password
* server-ip is the IP of the Ubuntu server on which you installed the solution.
Once connected, we can move on to the settings.