当我通过 VPN 连接时,我无法访问我们的共享网络驱动器。
当我在办公室并连接时,我完全没有问题。在每个人的电脑上,驱动器都按 进行映射\\ServerName
。
此外,当我\\10.0.0.75
连接到 VPN 并输入用户名和密码时,它工作正常。
共享文件的服务器正在运行 Microsoft Server 2008 R2,而 OpenVPN 服务器则运行 Ubuntu 18.04。
\\ServerName
为什么通过 VPN 时我无法连接到共享驱动器?
如果我需要更改任何内容,我确实可以访问 OpenVPN 服务器。任何帮助都将不胜感激。
客户端配置文件
client
proto udp
remote xxx.xxx.xxx.xxx 1194
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_S0sFBDyPTuNCNvKX name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3
<ca>
</ca>
<cert>
</cert>
<key>
</key>
<tls-crypt>
</tls-crypt>
OpenVPN 服务器.conf
port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option WINS 10.0.0.75"
push "dhcp-option DNS 10.0.0.1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
push "redirect-gateway def1 bypass-dhcp"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key 0
crl-verify crl.pem
ca ca.crt
cert server_S0sFBDyPTuNCNvKX.crt
key server_S0sFBDyPTuNCNvKX.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
status /var/log/openvpn/status.log
verb 3