Need a quote? A specific configuration, a project? Contact us on 02 51 99 13 03 .

Tutorial: How to install MILESIGHT Free VPN?

Tutoriel : Comment installer le VPN gratuit MILESIGHT ?

Equipe Sparwan |

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

bfEyplvt4dpj9GMYYqhLPbTvLkeN1kjvqhAbe5K8kNHlJYHRdS-QtAwsaeZhQv3a4F0SLv6bgZnH7sDopbQeSp9sBXemaR8MOIIljYHh0KAfibGMkm16KS7hHnDxv27QqRefGKl73zKTC Ym0uNsoCRgpgd_8tfOOxuUhjsTsOBEpBDCSKGDvyVcGGg5Y 2. Open WinSCP and set up a session between WinSCP and your server.

eYA0IaS2I_tQBNHU0XdjyKFPk48-6mRd43GT-9CSC4hrzunMrLW8TvKNdV5NmHy4sXtnFsmMwwEAUOEqP8HrdB5CrhhDGj-V6kRwVFz9iWa5M3BkTus2QPr5hJuetBE_9YfdI8IEY7Vro -4ekE_fMNwdw8Zd9Z9Sw12JRtlt0vEQ18Imzhm0WS8RrVmv 3.Select the MilesightVPN folder and click "Download", select the server path and click "OK" to download.

RDT8PIzWifQpp4CbFRfFW_C8h61CjHMmuL8SzMuOKQHd0vQv-u7gdOjr7BdvP0U4k3ZBrUI187PVVaI2a3dzIgahOWEL2fHYD51JRdpvMDo6YRlRARsULt-KDne-zIAJirSKatZrpOzqs4H6JfULs tS0kAjW2xJOW-dWdj40FbmvpVQEuMS3Tk7LKaw8

 

 

Installing MilesightVPN

  1. Connect to the server via Putty. You can also use other SSH tools. 1reVmIG1mlVN4d0SuCQyer8wMCMUM5-mkKhNputODt0U-9P1YBojt7F3XyJ5wGdTYSEzzfhEe4FLU0NDS9joTfowJ86Z5dBknPiUPOEfk1h5Q3nyk0akUsLoQp_aVA59e2wtU-hF2-lF8DapIhFVy 7d6EWa6yWFI68ZHF0npQR3wlH_PvNp3c0KTVjqG

  2. 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. CgBTLM7pyUkbpyUrh_kiI--4kSPsolECDxtvws5nx_udrMk7OnOB9Sahqe5txTLvigl1EVLoL8nanAVutTBe4G_qCdG51hY7o71nrdLMEKhgWzhEpxRPDzoKtWZ8zZBi7cmRSlYWhCrnnUAk8Rzp7GmP4CSGW BPzo6UMscEpxpojkORoefwX7T-7ovz1
  3. Run the following commands under the MilesightVPN directory.

    chmod +x depend_install_urvpn.sh

    ./depend_install_urvpn.sh

8XZeb0hny82amb0YqyXpglwJIvN37rQSUK2UxVoozKM3k8ECfb7lY7eTU5uWOwCtaLXgoNJA12_K_YGt0OHX_PhSQKajEoW6i_f-M9Anphp4V1dCmUV0RyYMrjujYujEWzcPXE1EcsL5al FqV9YUkJOCuRukbLmk_MT1PzaAhuAbd9assf94x4eOL1g6

chmod +x depend_install_urvpn.sh

./depend_install_urvpn.sh

 

  1. 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.

2GvkugB_dnc52T9gsblW1Yi6DyEIk5U6TorankXgRAGh6RzJ_jicpcFDylzGqNpm7wITjH-MkhDlh6w6C3mRYcocINg305i23VZikOXZRNHuOPw8of40lULA-W3Au39TN5Uclqc5ikNiLCBfRWrZEfpRvQ l27eLZPyAHENvox8Z4AmAxWR-IpiFWj2Bn

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.

bTqkAROeewsEYQAzLkh7KtKlySi8YNLNkGaCC79_yVWjn2hg_u3RpbBzE2WSHPyUOKNErScC5EBZZhbLxQ894u1-bySVX46H91Kchz52gtxTCGiU1GETtyvKI8IrnS8Ri_4F_ngfeu0tTtbt1CldN y1TOZkJqoats0nc1MDIGOVvhb2k7OlyLXpMy92H_g

The maximum number of management devices is 25 by default. Please refer to the following steps to expand device management.

 

  1. Log in to MilesightVPN and go to the "VPN" tab, then click "Create and Upload" to download the license information file.
  2. Contact our sales department and get the license information.
  3. Obtain an extended license from Milesight and click "Browse" to import the license.
  4. 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.

 

PJVNHa1A977_qgacLZSfi46nf1fsUlZ0okL6VbfefUOuGjIPUduKA87NX2VyD2hmbGoELh8BvjvNFl1hKDE0n1yObMs2fAuEaHzOjhSkUOvtFPEWzQRIYbrLruAGJ624VVEz7L6A05j3TMx67Qi 6qmVmYQ4ZMfd6z-uBq41twtnWWcvOC9HtV-8kObARxw

Once connected, we can move on to the settings.