Windows builds WebDAV service, and the intranet penetrates the public network to access [no public IP]
Article directory
I built a home NAS host using Windows Server, and the WebDAV file sharing method is of course essential.
This article uses WIN10 Professional Edition.
1. Install the necessary WebDav components for IIS
1.1 Open the Control Panel, change the view mode to "Category", enter "Programs", "Turn Windows features on or off"
1.2 Check "IIS Management Console", "Windows Authentication", "Management Services", "WebDAV Publishing" and "Directory Browsing" in Internet Information Services (IIS), and then install 确定
.
1.3 After completing the installation, find "IIS Manager" in "Windows Management Tools" and open it.
1.4 On the website, right-click and add website.
1.5 Give the network a name and select a physical path. Here, I named it webdav. The path selection is: D:\WebDav. The port number is set to 8090.
1.6 Select the webdav site and enter its "WebDAV Creation Rules".
1.7 Enable authoring rules
1.8 Add creation rules
1.9 Select the webdav site and enter "Identity Authentication"
1.10 Enable "Windows Authentication" and disable "Anonymous Authentication"
1.11 Select "webdav" and enter "Directory Browse"
1.12 Click 'Enable'
1.13 Restart webdav site
2. Client testing
In the browser, enter http://127.0.0.1:8090/ to access the file content in the WebDav service.
3. cpolar intranet penetration
Use [cpolar] ( cpolar - a secure intranet penetration tool ) for intranet penetration to expose the WebDav service to the public network.
3.1 Open the Web-UI management interface
Open the browser: 127.0.0.1:9200, and log in with your cpolar email account.
3.2 Create tunnel
Tunnel Management – Add Tunnel
3.3 View the online tunnel list
Status – Online tunnel list, we can see that a TCP random tunnel has been generated.
3.4 Browser access test
We paste the tunnel address in the browser. Because we are accessing from the external network, we will be prompted for the account number and password for authentication. We log in using a windows account and password.
4. Install Raidrive client
Of course, when we use it officially, we usually use the WebDav client to change the local drive letter of the remote server virtual machine.
Raidrive client: https://www.raidrive.com/download
4.1 Connect to WebDav server
4.2 Connection successful
4.2 Connection successful
Summarize:
The current test uses links created by random TCP tunnels, which will change within 24 hours and are only for testing. The next tutorial will introduce how to use fixed TCP tunnels to create long-term public network tunnel links.
Reprinted from cpolar pole cloud article: How to build a WebDav service in Windows and make it accessible from the external network