Skip to content

OpenVPN client on virtual machine with Ubuntu18 OS on Microsoft Azure cannot start. #118

Discussion options

You must be logged in to vote

Okay, so you lose connection because the default gateway to your host is changed. Notice line 4 in the [LOG] OPTIONS: part. This is why. And this is the expected behavior when you change the default gateway.

You need to figure out what you want with your VPN connection - to route all the Internet traffic via the VPN connection? Or just some subnets? If you want to route everything, you need to add an explicit route ensuring the IP address (or range) you connect from is not routed via the VPN tunnel. If you know which IP subnets you want to route via the tunnel, then you can use a different approach by adding a few additional options to your VPN config, like pull-filter and route lines, wh…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dsommers
Comment options

Comment options

You must be logged in to vote
1 reply
@dsommers
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dsommers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #116 on March 24, 2022 11:03.