Windows system builds network disk artifact filebrowser combined with intranet penetration to achieve public network access
Article directory
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
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 FBshare
folder named:
Then find the folder you just downloaded and unzipped File Browser
and copy its path.
Next, type in the search box in the lower left corner of your computer desktop cmd
and select Run as administrator.
In this interface, enter the following space and paste the folder path cd
we copied in the previous step , and press EnterFile Browser
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://FBshare
the command and press Enter:
At this time, it may be displayed filebrowser.db
that it does not exist, but the problem is not big. We File Browser
double-click the executable file in the folder filebrowser.exe
to automatically generate it.filebrowser.db
At this point we return to the cmd interface, enter filebrowser config init
the command and press Enter, it will show that filebrowser.db
the file already exists.
Then enter filebrowser config set -r c://FBshare
the command again and press Enter: the display is as shown in the figure below, which means the local deployment is completed.
2. Start accessing File Browser
When we File Browser
double-click the executable file in the folder filebrowser.exe
, a window will pop up, as shown in the figure below.
Enter this address 127.0.0.1:8000 in your local browser to start File Browser.
The default account password is: admin
Enter your account password and click Login. After successful login, the interface is as shown below:
If you want to change the language settings, you can change it as shown below.
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
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.
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)
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 创建隧道
.
-
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创建
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.
Enter the account password admin to log in to the public network and access the FileBrowser deployed on the intranet!
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.
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.
隧道管理
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编辑
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更新
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.
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.
Reprinted from cpolar pole cloud article: Windows system builds network disk artifact Filebrowser combined with intranet penetration to achieve public network