AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-209978

Gavin's questions

Martin Hope
Gavin
Asked: 2016-06-22 03:54:56 +0800 CST

使用较小的驱动器更换 Raid 10 中的故障驱动器?

  • -1

我在 Qnap TS-809 中有一个带有故障驱动器的 Raid 10 阵列。

该阵列包含以下驱动器:(我知道首先混合驱动器是一个愚蠢的想法)

1. 2TB WD Red --\
2. 2TB WD Red --/

3. 2TB WD Red --\
4. 2TB WD Red --/

5. 2.5TB WD Green --\
6. 2.5TB WD Green --/     <-- Faulty Drive

我想用另一个 WD Red 替换有故障的驱动器,并有几个备用的 WD Red 2TB 驱动器。

由于 2.5TB 驱动器被添加到由 2TB 驱动器组成的阵列中,它们会被视为 2TB,因此我可以用 2TB 驱动器替换吗?

谢谢

raid raid10 qnap
  • 3 个回答
  • 397 Views
Martin Hope
Gavin
Asked: 2015-09-05 02:33:50 +0800 CST

openVPN - 客户端 DNS 查询

  • 2

我有一个使用路由 TUN 设置的 openVPN 服务器。

服务器配置文件

topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway"
push "route 10.0.0.0 255.255.255.0"
push "dhcp-option DNS 10.0.0.1"    

我的 openVPN 客户端和访问 Intranet Web 服务器时遇到问题。Web 服务器的域名是intranet.app.

来自 LAN 的访问工作正常 - 网关将 DNS 查询转发intranet.app到本地服务器。

当我通过 openVPN 连接时,似乎所有 DNS 查询都被转发到用于连接到 Internet 的无线/LAN 适配器列出的 DNS 服务器。如果该 DNS 查询无法解析 - 然后它会查询 vpn 网关上列出的 DNS 服务器。

我已经通过在我的服务器上设置一个虚拟域作为intranet.lan.

intranet.app- 解析为 127.0.53.53,因为.app现在是 gTLD 但intranet.app不是注册域。

intranet.lan.lan然后查询 vpn 网关 DNS 服务器,并且查询确实解析到 LAN 托管的 Web 服务器。

如何以编程方式确保 openVPN 客户端仅将 DNS 查询发送到 VPN 网关而不是无线/LAN 适配器?

谢谢

networking
  • 1 个回答
  • 2208 Views
Martin Hope
Gavin
Asked: 2015-09-04 03:46:07 +0800 CST

无法让客户端通过 openVPN 隧道传递 DNS 查询

  • 1

我无法让我的 openVPN 客户端计算机 (Windows 10) 通过 VPN 隧道传递 DNS 查询。

我10.0.0.1作为 DNS 服务器推送,VPN 连接显示它是该连接的 DNS 服务器。

Ethernet adapter Ethernet 3:
Connection-specific DNS Suffix  . :
Description . . . . . . . . . . . : Apple Mobile Device Ethernet
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 172.20.10.2(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.240
Lease Obtained. . . . . . . . . . : 03 September 2015 09:55:59
Lease Expires . . . . . . . . . . : 04 September 2015 12:05:04
Default Gateway . . . . . . . . . : 172.20.10.1
DHCP Server . . . . . . . . . . . : 172.20.10.1
DNS Servers . . . . . . . . . . . : 172.20.10.1
NetBIOS over Tcpip. . . . . . . . : Enabled


Ethernet adapter Ethernet 2:
Connection-specific DNS Suffix  . :
Description . . . . . . . . . . . : TAP-Win32 Adapter V9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.8.0.4(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 03 September 2015 11:25:47
Lease Expires . . . . . . . . . . : 02 September 2016 12:19:32
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 10.8.0.254
DNS Servers . . . . . . . . . . . : 10.0.0.1
NetBIOS over Tcpip. . . . . . . . : Enabled

连接创建此路由表

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      172.20.10.1      172.20.10.2     20
          0.0.0.0        128.0.0.0         10.8.0.1         10.8.0.4     31
         10.0.0.0    255.255.255.0         10.8.0.1         10.8.0.4     31
         10.8.0.0    255.255.255.0         On-link          10.8.0.4    286
         10.8.0.4  255.255.255.255         On-link          10.8.0.4    286
       10.8.0.255  255.255.255.255         On-link          10.8.0.4    286
   **.***.***.***  255.255.255.255      172.20.10.1      172.20.10.2     21  <-- Public VPN Address
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
        128.0.0.0        128.0.0.0         10.8.0.1         10.8.0.4     31
      172.20.10.0  255.255.255.240         On-link       172.20.10.2    276
      172.20.10.2  255.255.255.255         On-link       172.20.10.2    276
     172.20.10.15  255.255.255.255         On-link       172.20.10.2    276
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link          10.8.0.4    286
        224.0.0.0        240.0.0.0         On-link       172.20.10.2    276
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link          10.8.0.4    286
  255.255.255.255  255.255.255.255         On-link       172.20.10.2    276
===========================================================================

服务器配置文件

ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
tls-server
tls-auth ta.key 0
dev tun
local 10.0.0.250
port 1194
proto udp
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 10.0.0.1"
keepalive 10 120
cipher BF-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
ifconfig-pool-persist ipp.txt
status openvpn-status.log
log openvpn.log
verb 6

nslookup 结果如下:

C:\Windows\system32>nslookup alpha.intranet.app
Server:  UnKnown
Address:  172.20.10.1

Non-authoritative answer:
Name:    alpha.intranet.app
Address:  127.0.53.53

但是,强制 nslookup 使用所需的 DNS 服务器会导致:

C:\Windows\system32>nslookup alpha.intranet.app 10.0.0.1
Server:  lan.router
Address:  10.0.0.1

Non-authoritative answer:
Name:    alpha.intranet.app
Address:  10.0.0.251

如果我手动将 DNS 服务器更改为Ethernet adapter Ethernet 3nslookup ,则10.0.0.1无需强制使用 DNS 服务器,并且我的 Intranet 页面加载正常。

关于为什么物理连接的 DNS 服务器优先于 VPN 以及如何更改的任何想法?

谢谢

networking
  • 2 个回答
  • 3549 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve