Realize remote access to local WebDAV services over the public network without requiring a public network IP

Windows builds WebDAV service, and the intranet penetrates the public network to access [no public IP]

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"

img

1.2 Check "IIS Management Console", "Windows Authentication", "Management Services", "WebDAV Publishing" and "Directory Browsing" in Internet Information Services (IIS), and then< a i=1>Installation. 确定

img

1.3 After completing the installation, find "IIS Manager" in "Windows Management Tools" and open it.

img

1.4 On the website, right-click and add website.

img

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.

img

1.6 Select the webdav site and enter its "WebDAV Creation Rules".

img

1.7 Enable authoring rules

img

1.8 Add creation rules

img

img

1.9 Select the webdav site and enter "Identity Authentication"

img

1.10 Enable "Windows Authentication" and disable "Anonymous Authentication"

img

1.11 Select "webdav" and enter "Directory Browse"

img

1.12 Click ‘Enable’

img

1.13 Restart webdav site

img

2. Client testing

In the browser, enterhttp://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 net.

3.1 Open the Web-UI management interface

Open the browser: 127.0.0.1:9200, and log in with your cpolar email account.

img

3.2 Create tunnel

Tunnel Management – ​​Add Tunnel

img

img

3.3 View the online tunnel list

Status – Online tunnel list, we can see that a TCP random tunnel has been generated.

img

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.

img

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 customer board: https://www.raidrive.com/download

4.1 Connect to WebDav server

img

4.2 Connection successful

img

4.2 Connection successful

img

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.

Guess you like

Origin blog.csdn.net/Tiam_cr/article/details/134828610