当前位置:网站首页>使用 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页

边栏推荐
- 【ELT.ZIP】OpenHarmony啃论文俱乐部—见证文件压缩系统EROFS
- 黑马程序员-软件测试基础班-02-30-45工具代开浏览器运行代码,音、视频、测试点,音视频标签,布局标签。超链接语法进阶,绝对路径,相对路径
- 2022 Liaoning's latest eight members (Safety Officer) simulated test question bank and answers
- Computing trends in three times of machine learning
- Application of tdengine in monitoring of CNC machine tools
- 国内首家!EMQ加入亚马逊云科技“初创加速-全球合作伙伴网络计划”
- The power of code refactoring: how to measure the success of refactoring
- About binary
- ansible环境安装及数据恢复
- Leetcode 33. Search rotation sort array
猜你喜欢

Wanzhou gold industry: a common technical term in gold t+d transaction?

Set up your own website (10)

Teach you how to realize pynq-z2 bar code recognition

(5) SPI application design and simulation verification 1 - logic sorting

Wechat applet payment countdown
![[leetcode] 2. Add two numbers (user-defined listnode), medium](/img/27/1e7ce0e08d7428f0f594a3477e35df.jpg)
[leetcode] 2. Add two numbers (user-defined listnode), medium

Simple anti shake for wechat applet

MySQL数据库登录和退出的两种方式
![[elt.zip] openharmony paper Club - witness file compression system erofs](/img/ad/5c3363b7536d495f153aa0130a10f1.png)
[elt.zip] openharmony paper Club - witness file compression system erofs

Analysis of shardingsphere core source code
随机推荐
GAC Mitsubishi's new outlander made its first domestic debut in the year, and its product strength was fully renewed
Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'
软件测试基础-软件测试历史流程,分类,好处,限制
TP5 generates the most detailed two-dimensional code tp6 (also available)
VSCode 建议你启用 gopls,它到底是个什么东东?
Introduction to photoswape
leetcode 92. Reverse linked list II
Why migrate from opentsdb to tdengine
Teach you to use elastic search: run the first hello world search command
Leetcode 704. Binary search
Contest3182 - the 39th individual training match for 2021 freshmen_ F: ss
[UVM basics] set a monitor at the input port of the DUT to explain the necessity
Redis系列2:数据持久化提高可用性
Set up your own website (10)
Sword finger offer 22 The penultimate node in the linked list
Hash encryption
Market status and development prospect forecast of global off-road recovery rope industry in 2022
Uploading multiple attachments from canvas apps to SharePoint
黑马程序员-软件测试基础班-02-30-45工具代开浏览器运行代码,音、视频、测试点,音视频标签,布局标签。超链接语法进阶,绝对路径,相对路径
Shardingsphere sharding proxy actual combat scenario