当前位置:网站首页>使用 WebDAV 替代445端口文件共享
使用 WebDAV 替代445端口文件共享
2022-06-27 16:16:00 【墨天轮】
WebDAV是基于HTTP的共享协议,用户可以使用用户名和密码来访问存储资源,可供多个用户共享文件。
使用WebDAV方式共享文件和传统的SMB/CIFS共享看起来效果差不多,但是WebDAV是通过web协议来传输文件,而SMB使用的是445端口,因为安全原因,445端口可能会被封掉,所以SMB在内网中的应用会受限。
一般的NAS存储都是支持WebDAV协议的,只是WebDAV的客户端比较少,很多人都没有使用过。因为支持WebDAV的存储每家的配置都不一样,我们选几款作为例子。这些品牌的存储有可能没接触过,不过没关系,我们主要看一下WebDAV的配置过程。
先看一下WebDAV最终使用效果,使用RaiDrive作为WebDAV客户端,连接了三个不同的WebDAV服务:

连接成功后会分别映射三个不同的盘符,在 Windows 上看到的效果如下:

我们分别在不同的存储设备上看一下各种WebDAV的服务端配置是什么样的。
Infortrend NAS存储

在这款NAS存储上可以看到它支持多种协议,SMB、NFS、WebDAV,当开启相应的服务后,可以使用 http 或 https 来访问共享的资源。在正式访问前,需要在共享目录中设置设置权限。

在具体的共享目录上开启WebDAV,同时为其分配权限,指定能访问的用户:

此时就可以在RaiDrive上连接WebDAV服务了

我们再看看 WD My Cloud Ex4 这款桌面级NAS存储上的WebDAV的配置。
WD My Cloud NAS存储
My Cloud 的界面如下,是个4盘位的桌面级NAS。

同样在它的网络配置中有启用 WebDAV 的选项

与企业级NAS配置WebDAV的逻辑一样,还需要在共享目录上开启WebDAV服务。同时这个共享目录名就是接入时的目录名。

在RaiDrive上的连接配置如下:

这里需要说明的一点就是各家WebDAV的URL地址是不一样的,My Cloud 的URL地址可以使用以下两个:
http://address:8080/Downloads
https://address:4443/Downloads

因为各家的产品设计不同,具体情况要根据产品说明来使用。
最后一个例子是个私人网盘 cloudreve 所提供的WebDAV服务,项目地址为:
https://github.com/cloudreve/Cloudreve
cloudreve 网盘
cloudreve 支持 WebDAV 方式对文件进行读取,在软件配置界面可以指定写入目录:

在 RaiDrive 上的连接配置如下:

以上就是三种不同 WebDAV 服务的配置,基本流程就是指定 WebDAV 的 URL 以及账号密码,连接成功后会在 Windows 上映射一个驱动器。和使用445端口的SMB 共享目录的使用效果差不多。
RaiDrive 程序可以在官网下载,因为我们只使用了它的WebDAV功能,实际上它可以连接第三方网盘。下载地址为:
https://www.raidrive.com/download
下载后的文件名称如下:

直接使用默认安装即可,连接WebDAV时切到第4个叫NAS的Tab页

边栏推荐
- Wechat applet payment countdown
- Why migrate from opentsdb to tdengine
- 软件测试学习-黑马程序员,软件测试学习大纲
- 时间序列数据的特点
- 新产品新人事新服务,英菲尼迪继续深耕中国未来可期!
- Explain the distributed computing of Apache skywalking OAP in detail
- Current market situation and development prospect forecast of global concrete shrinkage reducing agent industry in 2022
- Common optimization techniques for Web Performance
- [elt.zip] openharmony paper Club - witness file compression system erofs
- 软件测试基础-软件测试历史流程,分类,好处,限制
猜你喜欢

Hospital reservation and registration system - system structure

Asemi rectifier bridge kbp307 parameters, kbp307 details, kbp307 pictures

数据同步工具 DataX 已经正式支持读写 TDengine

The first in China! EMQ joined Amazon cloud technology's "startup acceleration - global partner network program"

VSCode 建议你启用 gopls,它到底是个什么东东?
![[UVM basics] set a monitor at the input port of the DUT to explain the necessity](/img/72/0cecd17ab2c893b978b0995363cfcf.jpg)
[UVM basics] set a monitor at the input port of the DUT to explain the necessity

2022 Liaoning latest fire facility operator simulation test question bank and answers

Leetcode 33. Search rotation sort array

JS event binding and common events

Shardingsphere & Atlas & MYCAT comparison
随机推荐
Leetcode 5. Longest Palindromic Substring
OpenSSF 安全计划:SBOM 将驱动软件供应链安全
Part 30 supplement (30) ECMAScript object
leetcode 19. Delete the penultimate node of the linked list
[Tang Laoshi] C -- encapsulation: member method
About redis master-slave replication
Market status and development prospect forecast of global triisopropyl chlorosilane industry in 2022
Explain in detail the differences between opentsdb and tdengine in system functions
Electronic smart package tutorial
Hospital reservation and registration system - system structure
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
TDengine在数控机床监控中的应用
SQL update批量更新
Market status and development prospect forecast of global off-road recovery rope industry in 2022
Uploading multiple attachments from canvas apps to SharePoint
Application of scaleflux CSD 2000 in Ctrip
医院预约挂号系统-系统结构
阅文、中文在线等网文平台如何布局数字藏品?未来是否会推出“Read/Write-to-Earn”产品?
Application practice of day13 for loop distinguish the application of traversing break continue
The first in China! EMQ joined Amazon cloud technology's "startup acceleration - global partner network program"