The method of remotely accessing Synology Drive and mounting it as a computer disk without a public network IP

foreword

As a professional data storage center, Synology is becoming more and more common in our work and life. Whether it is storing photos, film and television dramas at home, or storing business materials in the office, the Synology system can play the role of a data center, which is convenient for us to store at any time And call various data files. Of course, the role of Synology is not limited to this, we can also use Synology's Drive suite to cooperate with cpolar, allowing users to access Synology Drive located in the office or home on other networks (non-office LAN) to achieve remote collaboration The purpose of office work (or access to the information on the editor's home group). Now, the author will introduce in detail how to set up Synology Drive and cpolar to realize the purpose of remote access to Synology Drive.

1. The installation of Synology Drive package

The Synology Drive suite of Synology is a cross-platform data synchronization software. The data is always stored in the Synology hard drive, but it allows designated users to edit and modify the files, which ensures the security of the data files and can also reach multiple departments. Collaborative office (or remote access home cluster) purposes.

1.1 Install Synology Drive package

We open the package center of Synology, enter in the search box drive, find the Synology Drive package, and click the button below 安装套件, and then 下一步wait all the way for the installation to complete.

20230303102301

20230303102302

20230303102303

After the Synology Drive package is installed, you can find the package icon of Synology Drive in the main menu of Synology. Since the Synology Drive package does not automatically enable document sharing, we need to set it up, which also allows us to choose which files can be shared.

1.2 Set up Synology Drive package

Click the button above the main interface of Synology 主菜单, and you can see the shortcuts of the installed packages.

20230303102304

Synology Drive控制台Find the shortcut named in it , click to enter the management console of Synology Drive.

20230303102305

On the left side of the main interface of the Synology Drive management console, click 团队文件夹Options, and you will see 我的文件the option named.

20230303102306

At this point we can see that 我的文件the option has not enabled the home directory, nor can remote access. So we click the "Enable" button at the top of the page.

20230303102307

After clicking 启用the button, Synology Drive will guide us to enable the user home directory service, and we click the "Yes" button according to the pop-up window guidance.

20230303102308

The system will automatically jump to 用户组群the 高级设置page, we pull down this page to the lowest end, we can see 家目录, 启动家目录服务check the box in front, and then click 应用the button at the bottom right to start the shared file service.

20230303102309

20230303102310

After completing the above steps, the system will automatically generate homesa folder named . We can also click on the top of the page in the same way to 启用enable the sharing of this folder.

20230303102311

20230303102312

20230303102313

After completing the settings of the Synology Drive management console, we return to the main program of Synology Drive, and we can easily create a shared folder, and put all kinds of files we want to share and edit in this folder (including various documents, photos, videos, etc.).

20230303102314

20230303102315

1.3 Test and use of computers in LAN

After completing the settings of the above steps, we can create a test folder as a shared folder, or create a shared file in this folder for allowed visitors to view.

The way to create a folder is to click the "Create" button at the top of the page, and name it in the folder editing window that pops up.

20230303102316

Then click to open this folder, drag a file into here, and the upload of this file is completed.

20230303102317

20230303102318

After uploading the test file, we can select the test file and click the 链接button at the top of the page to generate a local LAN accessible connection to view the file.

20230303102319

20230303102320

Of course, we can also download the Synology Drive Client client on the LAN computer to edit and synchronize this shared document.

20230303102321

20230303102322

Click the prompt box at the bottom right of Synology Drive, download a Synology Drive Client, install it according to the installation guide, and realize the sharing and synchronization of shared files under the same LAN.

20230303102323

After installing Synology Drive Client, you need to make several basic settings, mainly to guide Synology Drive Client to find the shared Synology Drive. Including setting the address of the Synology NAS in the local area network, which user to log in as, scheduled tasks for files (such as real-time synchronization or regular backup), and storage locations for backup and shared files.

20230303102324

20230303102325

20230303102326

20230303102327

When the Synology Drive Client is set up and successfully connected, we can see the relevant information of the client in the Synology Drive management console.

20230303102328

I believe everyone has noticed that the Synology Drive at this time can only be accessed by devices under the same LAN. If you want to access it from devices outside the local LAN, you need the assistance of cpolar to achieve it.

Next, we continue to install and configure cpolar on the Synology NAS, so that Synology Drive of Synology can use cpolar to penetrate the intranet restrictions and access the files shared by Synology Drive under public Internet conditions.

2. Use cpolar to remotely access the intranet Synology Drive

Cpolar is an easy-to-use intranet penetration software, which can generate a public Internet address for the output port of Synology Drive, so that visitors on the public Internet can connect to the port of Synology Drive located in the local area network through this address (The default output port of Synology Drive is 6690), it is like directly opening an efficient, secure and confidential data tunnel between the local area network and the Internet (this address is only known to others by yourself, and outsiders do not know the existence of this tunnel at all) , so that specific visitors can view the files and materials we share through this data tunnel.

If you want to use cpolar, you need to install the cpolar package on the Synology NAS. The installation of the cpolar package is also very simple. First log in to the official website of cpolar ( https://www.cpolar.com/ ), click 下载the button at the top of the page

20230303102329

Find the option on the cpolar download page NAS群晖and click it 立即下载.

20230303102330

After entering the NAS Synology download page of cpolar, select the NAS Synology model and the Synology system version from the drop-down menu. For example, the author's Synology model is DS918+, and the system version is 7.0.1. Therefore, select "DS918+" in the drop-down menu, and select "7.x" for the version. After selecting the NAS Synology model, you can click 下载the button to download the corresponding version of the cpolar package.

20230303102331

After the Cpolar package is downloaded, we return to the Synology system, click to enter 套件中心, click the button on the right 手动安装, and a page will appear at this time, 上传套件click the button here 浏览, you can choose the location of the cpolar package we downloaded, double-click the cpolar package , the installation path will be automatically generated.

20230303102332

We just need to click all the way according to the installation prompts 下一步, if there is a prompt message, click to agree.

20230303102333

20230303102334

20230303102335

After the installation is complete, you can see the cpolar package on the "Installed" page, indicating that the cpolar package has been added to the Synology NAS. At this time, click cpolar, you can see the address of the web-UI client of cpolar, click this address and enter the account password of cpolar, you can open the main interface of the cpolar suite in Synology NAS.

20230303102336

20230303102337

20230303102338

In the next step, we need to set up cpolar to let it know the Synology Drive local port of Synology, and generate the public Internet address corresponding to this port. For the convenience of operation, the author upgrades cpolar to the professional package (the professional package is cheap and large, and provides 2 fixed TCP tunnels, while the free version of the TCP tunnel changes every 24 hours), so that my shared files can be continuously and stably accessed access to.

2.1 Cpolar cloud settings

First log in to the cpolar cloud. After logging in, find 预留the button on the left side of the cpolar main page, click to enter 预留the page, and find it on this page 保留的TCP地址.

20230303102339

In 保留的TCP地址the field, we only need to make two simple settings to generate a blank TCP data tunnel. These two settings are 地区(can be selected at will) and 描述(can be regarded as a comment for this tunnel, I choose Synology drive here).

After the setting is selected, click 保留the button on the right to generate a blank TCP tunnel.

20230303102340

20230303102341

Among them, 地址the field shows the public Internet address of the Harmonized TCP tunnel. We can use this address to access the Synology Drive located in the local area network. If we don't plan to use this tunnel anymore, we can click the small X on the right to delete this tunnel easily.

2.2 Cpolar local settings

Next, we go back to the Synology NAS, open the cpolar software, and connect the blank data tunnel generated by the cpolar cloud with the local Synology Drive port of Synology.

On the left side of the main interface of the cpolar client in Synology, find 隧道管理the "Create Tunnel" button under the item, and click to enter the create tunnel page. On this page, we need to set several items of information, including the following items.

  • Tunnel name : The tunnel name here is displayed on the cpolar client (it has nothing to do with the tunnel name on the cpolar cloud). For the convenience of management, the author still named it Synology drive;
  • Protocol : The protocols here include http, tcp, tls, ftp and dedicated NAS Synology, to adapt to different tunnel applications, we choose the tcp protocol;
  • Port : The dedicated output port of Synology Drive is 6690, so enter 6690 here;
  • Port type : The port here is convenient for us to choose the duration of this tunnel. If it is only used temporarily, you can choose a random temporary port. But the author intends to let this tunnel exist for a long time, so check the fixed TCP port;
  • Reserved TCP address : This content box will only appear after selecting a fixed TCP port. The address that needs to be filled in is the address generated by the "Reserved TCP address" on the cpolar cloud.

20230303102342

After completing the above settings, you can click 创建the button at the bottom of the page to generate a public Internet address for Synology Drive to connect to. After the tunnel is created, we can find the Synology Drive tunnel 状态under the item on the left 在线隧道列表, and we can also see the public Internet address of the Synology Drive tunnel here.

20230303102343

At the same time, we can also control the opening and closing of this Synology Drive data tunnel on the "Tunnel List" page under the "Tunnel Management" item, and can also edit the basic information of this tunnel.

20230303102344

So far, we have successfully released the Synology Drive to the public Internet through the tcp data tunnel created by cpolar. Since the public Internet address of this tunnel can only be sent by the creator to trusted people, outsiders do not know this The existence of the data tunnel, coupled with the user + password authentication method of Synology Drive itself, makes the files and materials shared by Synology Drive very safe.

2.3 Test and use

Finally, we can use a device located on the public Internet to try to access the shared files of Synology Drive on the local Synology through the data tunnel established by cpolar.

Just like accessing Synology Drive in a local area network, we need to enter the basic information of the Synology NAS to be connected on the Synology Drive Client client. The difference is that in the Synology NAS address, we fill in the TCP address generated by cpolar to replace the previous four-segment LAN address. To prevent errors, you need to uncheck the "Enable SSL data transmission encryption" option. After completing the information filling, you can click "Next" to connect.

20230303102345

Like the LAN connection to Synology Drive, we only need to click "Next" all the way to configure. After the configuration is complete, you can see the Synology Drive Client in the non-local area network, successfully connect to the Synology Drive in the local area network, and you can freely edit and retrieve shared files.

20230303102346

20230303102347

20230303102348

3. Conclusion

At this point, our goal of publishing the Synology Drive in the LAN to the public Internet with the help of cpolar has been achieved. Although I watched a long introduction, the actual operation steps are very simple. Anyone who knows the most basic computer operations can easily complete the sharing and publishing of Synology Drive according to this tutorial, and we can also use it under any network (no will be imprisoned within the LAN range), easy and safe access to the data on the NAS Synology.

Reprinted from the cpolar pole cloud article: Remotely access Synology Drive and mount it as a computer disk synchronization backup file "No public network IP required"

Guess you like

Origin blog.csdn.net/CSDN_anhl/article/details/132679155