对等互连打开时无法使用 VPN 网关访问 Vnet
您好, 我有 2 个 Vnet,一个包含 Vms(私有 Vnet)的 Vnet 包含 Aks 集群的 Vnet(私有的,但我想使用的 pod 是公共的(使用 LB 公开)) 要从本地连接到 Vnet1,我使用的是 VPN 网关,但是当我添加时,我在 Vnet1 和 Vnet1 之间进行网络对等互连。 Vnet2,即使我连接到 VPN,突然也无法访问我的私有虚拟机 尽管 Vnet1 和 Vnet1 之间的对等互连vnet2 工作正常 我可以从 aks pod 访问我的私有虚拟机 这是我的 vnets/子网
GatewaySubnet 172.17.1.0/24
默认 172.17.0.0/24
我的 vpn 配置:
- 指向站点
- 地址池 10.0.0.0/16
- 隧道类型 IKEv2 和 OpenVPN(SSL)
- 主动-主动模式:已禁用
- 网关专用 IP:已禁用
- VPN 类型:基于路由
,这是我的对等配置:
我不知道是什么原因造成的 我希望有人能引导我走向正确的方向
Hello ,
I have 2 Vnets, a Vnet containing Vms (Private Vnet)
a Vnet containing an Aks Cluster (Private but the pod I want to use is public (exposed using LB))
to Connect to Vnet1 from my local I'm using a Vpn Gateway but when I added I Network peering betweeen Vnet1 & Vnet2 , Suddenly I can't reach my private vms even when im connected to the vpn
although the peering between Vnet1 & vnet2 Is working just fine
I can reach my private vms from aks pods
here is my vnets/subnets
GatewaySubnet 172.17.1.0/24
default 172.17.0.0/24
my vpn config :
- point to site
- Address pool 10.0.0.0/16
- Tunnel type IKEv2 and OpenVPN(SSL)
- Active-active mode : disabled
- Gateway Private IPs : disabled
- VPN type : Route Based
and here is my peering configuration :
I don't know what is causing this
I hope somebody can guide me to the right direction
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“aks”vnet 的地址空间为“10.0.0.0/8”,与 VPN 的点到站点 VPN 客户端地址池重叠。
更改 p2s 配置的地址池将解决您的问题
the "aks" vnet has an address space of "10.0.0.0/8" that overlaps with the VPN's Point to Site VPN client address pool.
Changing the adress pool of your p2s config will solve your problem