Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
314 views
in Technique[技术] by (71.8m points)

How to use Azure VPN as a proxy gateway

I have followed this document to set up a Point-to-Site VPN connection to an Azure Virtual Network which contains my Azure Windows Virtual Machine. I successfully managed to get to my VM via its private IP address e.g., doing Remote Desktop.

Now my question is how to use this VPN connection as a proxy gateway; i.e., all the traffic from my PC goes through the Virtual Network or the Virtual Machine?

Any article or hint will be appreciated.

question from:https://stackoverflow.com/questions/65916499/how-to-use-azure-vpn-as-a-proxy-gateway

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Not sure why you want all the traffic from your local PC to go through the VPN gateway. Perhaps, you just want to restrict to access Azure resources via the VPN gateway, if so, that is the VPN gateway itself that can do it. You just need to access azure resources with the VPN client's private IP address with a VPN connection.

Essentially, a VPN gateway sends encrypted traffic between your virtual network and your on-premises location across a public connection. By default, the outbound traffic from your local PC goes through to the Internet with a default route via the local network gateway. Before you can connect to the VPN gateway, you need to ensure that there is networking connectivity from the local PC to the Azure VPN gateway public IP address.

Update

Unfortunately, Azure P2S VPN by default uses split tunneling. it's not supported to route all the traffic from your PC to go through the VPN gateway. See this and you could vote up this feedback.

Here is a suggestion from the Azure feedback team.

  1. Use default route or forced tunneling on P2S client rather than split tunneling.
  2. Enable Azure VPN gateway as a forward proxy to the Internet.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...