我正在开发一个ASP.net web应用程序,我想绑定它,以便可以通过OpenVPN从远程网络使用它。我已经与网络建立了连接,可以从网络中的其他设备ping我的设备。这是我在OpenVPN中使用的配置
client
dev tap
proto tcp
dev-node openvpn
remote 86.89.135.168 443
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher AES-128-CBC
comp-lzo
verb 5
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
#ifconfig 192.168.201.221 255.255.255.0
#route-gateway 192.168.201.1client在applicationhost.config中,我绑定了以下内容:
<bindings>
<binding protocol="http" bindingInformation="*:52022:*" />
<binding protocol="http" bindingInformation="*:52022:192.168.201.68" />
<binding protocol="http" bindingInformation="*:52022:localhost" />
</bindings>我可以通过本地主机或本地ip地址访问应用程序。但是,当我尝试从网络中的设备使用vpn ip访问它时,我得到的结果是:

我的防火墙关闭了,即使它不能工作。就像我说的,它可以在我的本地网络和主机中的其他设备上工作,但不能在remove网络中的设备上工作。
有人能帮我解决这个问题吗?我是个新手。
发布于 2020-10-19 16:12:59
我通过以下方式解决了我的问题:1.在“病毒和威胁防护设置”中将我的VPN executor添加为独占。2.将其添加到“允许应用程序或功能通过Windows defender防火墙”(如果不在列表中,您必须单击“允许另一个应用程序”。3.将“具有高级安全性的Windows Defender防火墙”中的TCP入站规则添加到VPN将用于通信的端口。在我的情况下,它是443。
https://stackoverflow.com/questions/64209705
复制相似问题