Use Cpolar intranet penetration to realize Windows remote WebDAV access

Reprinted from the article of Intranet Penetration Tool: Use Nodejs to build HTTP service and realize remote access to the public network "Intranet Penetration"

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

I built a home NAS host with Windows Server, and of course the file sharing method of WebDAV is also 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 "program", "enable or close Windows function"

img

1.2 Check "IIS Management Console", "Windows Authentication", "Management Services", "WebDAV Publishing" and "Directory Browsing" in Internet Information Services (IIS), and then install 确定.

img

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

img

1.4 In the website, right click and add website.

img

1.5 Give the network a name, and choose a physical path, here, I named it webdav, path selection: D:\WebDav, port number, we set it to 8090

img

1.6 Select the webdav site and enter its "WebDAV authoring rules".

img

1.7 Enabling authoring rules

img

1.8 Add creation rules

img

img

1.9 Select the webdav site and enter "Authentication"

img

1.10 Enable "Windows Authentication", disable "Anonymous Authentication"

img

1.11 Select "webdav" and enter "Directory Browse"

img

1.12 Click 'Enable'

img

1.13 Restart the webdav site

img

2. Client testing

In the browser, enter http://127.0.0.1:8090/ to access the file content in the WebDav service.

3. Use cpolar intranet penetration to expose WebDav services to the public network

If you have not installed cpolar, please refer to " How to Install Cpolar Intranet Penetration for Windows Users " to install it.

3.1 Open the Web-UI management interface

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

img

3.2 Create a tunnel

Tunnel Management – ​​Add Tunnel

img

img

3.3 View the list of online tunnels

Status – list of online tunnels, 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 it is accessed from the external network, the account and password will be prompted for authentication. We use the windows account and password to log in.

img

4. Install the Raidrive client

Of course, when we use it officially, we generally use the WebDav client to set the local drive letter of the remote server virtual machine.

Raidrive client: https://www.raidrive.com/download

4.1 Connect to WebDav server

img

4.2 Successful connection

img

4.2 Successful connection

img

Summarize:

The current test uses a link created by a random TCP tunnel, which will change within 24 hours and is only used for testing. The next tutorial will introduce how to use a fixed TCP tunnel to create a long-term public network tunnel link.

Guess you like

Origin blog.csdn.net/2301_76147196/article/details/131846820
Recommended