How to route traffic to internet via VPN gateway tunnel.

Sudarshan Bhamare 45 Reputation points
2024-04-10T20:04:11.57+00:00

I have a Virtual machine that has a Private IP address only. I also have a site-to-site tunnel configured to Netskope. I want to route my VM's internet traffic should be via this Netskope tunnel public IP only. Because I want to whitelist this tunnel public IP in my other on-prem server. I have configured the Route table and added the rule 0.0.0.0/0 to the Virtual Network gateway after this the internet access is disabled. In my Virtual Network gateway, I have multiple local network gateway connections.

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,387 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 96,606 Reputation points MVP
    2024-04-10T20:32:50.64+00:00

    Hi @Sudarshan Bhamare ,

    the feature you are looking for to send Azure VM's internet traffic via VPN Gateway Site To Site tunnel is called forced tunneling.

    These articles are maybe helpful:

    About forced tunneling for site-to-site configurations

    Configure forced tunneling using Default Site for site-to-site connections


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten


0 additional answers

Sort by: Most helpful