Internet connection does not work with Azure P2S VPN on Linux

MrFlinstone 481 Reputation points
2023-01-16T00:04:21.76+00:00

Azure VPN setup and fully working, configuration allows for Azure AD authentication and using certificates for Linux users. Linux users are complaining of being unable to browse the internet when the VPN is switched on.

Appears to be some sort of configuration issue from the client side, users who use Azure AD do not report such issues. Is there a configuration setting that must be in place to allow for internet traffic to work alongside VPN traffic. VPN has a DNS forwarder in place, no issues with other users only Linux users.

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,380 questions
{count} votes

2 answers

Sort by: Most helpful
  1. msrini-MSFT 9,256 Reputation points Microsoft Employee
    2023-01-16T07:22:44.4833333+00:00

    Hi, This happens when you route all traffic via VPN from the client. Can you do a route print and check the routing table of the client when connected to vpn gateway? If you see default route via the vpn interface, you will need to add a static route to get your internet connection on you client.


  2. Bas Pruijn 946 Reputation points
    2023-01-17T14:56:05.8566667+00:00

    I see in your previous answers you are using the 149.16.254.0/24 network as a range for your P2S addresses. This should not be done, unless you own that range of IP addresses. You should use a subset of the RFC1918 range address ([https://netbeez.net/blog/rfc1918/).

    Furthermore I see the metric of the VPN connection is lower than the metric of the internet connection. This routes all traffic via the VPN. Therefor it seems logical that no internet traffic is possible anymore.