Windows system builds network disk artifact filebrowser combined with intranet penetration to achieve public network access

Windows system builds network disk artifact filebrowser combined with intranet penetration to achieve public network access

Preface

File Browser is an open source file manager and file sharing tool that helps users easily manage their files and folders and access and share them through a web interface. It is commonly used in self-hosted cloud storage solutions that allow users to create and manage file storage services on their own servers, similar to Google Drive or Dropbox.

The main functions of File Browser include uploading, downloading, renaming, copying, pasting, deleting and other operations of files and folders, as well as file search, preview and sharing link generation. It also supports user and permission management to ensure file security and privacy. Let me share with you how to build this network disk artifact filebrowser on Windows system and combine it with cpolar intranet penetration to achieve public network access to local cloud disk files.

1. Download and install File Browser

Download address: https://github.com/filebrowser/filebrowser/releases

img

After downloading the installation package, unzip it and set it aside. Let's first create a folder on the drive letter where we plan to create the shared folder. Here I created a FBsharefolder named:

1694158827052

Then find the folder you just downloaded and unzipped File Browserand copy its path.

1694159079066

Next, type in the search box in the lower left corner of your computer desktop cmdand select Run as administrator.

1694159171293

In this interface, enter the following space and paste the folder path cdwe copied in the previous step , and press EnterFile Browser

1694159421685

Then you need to generate the configuration in this path and change the directory location of the shared folder you want to access, that is, the location of the FBshare folder.

Enter filebrowser config set -r c://FBsharethe command and press Enter:

1694159690543

1694159889184

At this time, it may be displayed filebrowser.dbthat it does not exist, but the problem is not big. We File Browserdouble-click the executable file in the folder filebrowser.exeto automatically generate it.filebrowser.db

1694160067427

At this point we return to the cmd interface, enter filebrowser config initthe command and press Enter, it will show that filebrowser.dbthe file already exists.

1694160224863

Then enter filebrowser config set -r c://FBsharethe command again and press Enter: the display is as shown in the figure below, which means the local deployment is completed.

image-20230908161348566

2. Start accessing File Browser

When we File Browserdouble-click the executable file in the folder filebrowser.exe, a window will pop up, as shown in the figure below.

1694161029626

Enter this address 127.0.0.1:8000 in your local browser to start File Browser.

The default account password is: admin

image-20230908161950912

Enter your account password and click Login. After successful login, the interface is as shown below:

image-20230908162051873

If you want to change the language settings, you can change it as shown below.

1694161412718

1694161443456

3. Install cpolar intranet penetration

At this time, our network disk artifact FileBrowser has been deployed and can be logged in successfully, but it can only be accessed locally. If we plan to access the intranet FileBrowser at any time in the public network environment, we need to install cpolar intranet penetration to achieve this.

3.1 Register an account

Enter cpolar official website: https://www.cpolar.com/

Click in the upper right corner 免费注册, use your email to register a cpolar account for free and log in

20221117173301

3.2 Download cpolar client

After successfully logging in, click to download cpolar locally and install it (you can install it by default all the way). In this tutorial, you choose to download the Windows version.

20221117173307

3.3 Log in to the cpolar web ui management interface

Access 127.0.0.1:9200 on the browser and use the registered cpolar email account to log in to the cpolar web ui management interface (default is local port 9200)

20221117173316

3.4 Create a public network address

隧道管理After successfully logging in and entering the main interface, we click - on the left dashboard 隧道列表, and then click 创建隧道.

image-20230908163237598

  • Tunnel name: The name can be customized and cannot be repeated with the existing tunnel name. Here I filled in the FileBrowser

  • Protocol: Select http

  • Local address: 8080

  • Domain name type: Choose a random domain name for free

  • Region: China Top

Click创建

1694162076678

Then click 状态on 在线隧道列表the left, you can see that the FileBrowser tunnel you just created has generated two public network addresses. There are two access methods, namely http and https. You can copy an address at will and open it in a public network computer browser. , as shown in the figure below, means the access is successful.

image-20230908163623001

Enter the account password admin to log in to the public network and access the FileBrowser deployed on the intranet!

image-20230908163738398

4. Fixed public network address access

It should be noted that this tutorial uses a random temporary address on the public network generated by free cpolar. This address will change within 24 hours. For users who need to use the network disk artifact we built for a long time, configure A fixed address is necessary.

Therefore, we can configure a second-level subdomain name for it. This address is a fixed address and will not change randomly [ps: cpolar.cn has been filed]

Note that you need to upgrade the cpolar package to a basic package or above, and the bandwidth corresponding to each package is different. [cpolar.cn has been registered]

Log in to the cpolar official website, click Reserve on the left, select to reserve the second-level subdomain name, set a second-level subdomain name, click Reserve, and copy the reserved second-level subdomain name after the reservation is successful.

1694163026350

Taking this tutorial as an example, select China VIP for the region, fill in FileBrowser for the secondary domain name, fill in yunpan for the description, and click Reserve.

image-20230908165216723

隧道管理After the reservation is successful, copy the reserved second-level subdomain name address, log in to the cpolar web UI management interface, click - on the left dashboard 隧道列表, find the tunnel to be configured: FileBrowser, and click on the right编辑

image-20230908165314473

Modify the tunnel information and configure the successfully reserved second-level subdomain name into the tunnel.

  • Domain name type: Select a second-level subdomain name
  • Sub Domain: Fill in the successfully reserved second-level subdomain FileBrowser

Click更新

1694163275944

After the update is completed, open the online tunnel list. At this time, you can see that the public network address has changed and the address name has become a reserved and fixed second-level subdomain name.

1694163491992

Finally, we use a fixed public network address for connection access, copy http://filebrowser.vip.cpolar.cn to another public network computer and open it in a browser. There are no errors or connection exceptions, and you can see that the connection is successful, like this Fixed address access is set up.

image-20230908165939902

Reprinted from cpolar pole cloud article: Windows system builds network disk artifact Filebrowser combined with intranet penetration to achieve public network

Guess you like

Origin blog.csdn.net/ks_wyf/article/details/132858841