-
Notifications
You must be signed in to change notification settings - Fork 21.9k
Enhance VPN client configuration instructions #128273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
22b1ee3
fd60233
0dd3416
f826f93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -18,11 +18,34 @@ To work with VPN client profile configuration files (xml files), use the followi | |||||||||||||
|
|
||||||||||||||
| 1. Locate the profile configuration file and open it using the editor of your choice. | ||||||||||||||
| 1. Using the examples in the following sections, modify the file as necessary, then save your changes. | ||||||||||||||
| 1. Import the file to configure the Azure VPN client. You can import the file for the Azure VPN Client using these methods: | ||||||||||||||
|
|
||||||||||||||
| ### Windows | ||||||||||||||
|
|
||||||||||||||
| Import the file to configure the Azure VPN client. You can import the file for the Azure VPN Client using these methods: | ||||||||||||||
|
|
||||||||||||||
| * **Azure VPN Client interface**: Open the Azure VPN Client and select **+** and then **Import**. Locate the modified .xml file. Configure any additional settings in the Azure VPN Client interface (if necessary), then select **Save**. | ||||||||||||||
|
|
||||||||||||||
| * **Command-line prompt**: Place the appropriate downloaded configuration xml file in the *%userprofile%\AppData\Local\Packages\Microsoft.AzureVpn_8wekyb3d8bbwe\LocalState* folder, then run the command that corresponds to the configuration file name. For example, `azurevpn -i azurevpnconfig_aad.xml`. To force the import, use the `-f` switch. | ||||||||||||||
|
|
||||||||||||||
| ### macOS | ||||||||||||||
|
|
||||||||||||||
| Import the file to configure the Azure VPN client. You can import the file for the Azure VPN Client using these methods: | ||||||||||||||
|
|
||||||||||||||
| * **Azure VPN Client interface**: Open the Azure VPN Client and select **Import**. Locate the modified .xml file. Configure any additional settings in the Azure VPN Client interface (if necessary), then select **Save**. | ||||||||||||||
|
|
||||||||||||||
| * **Command-line prompt**: Modify the following code snippet to distribute your configuration file. Execute it with privileges using `sudo sh ./script.sh`. A restart may be needed if Azure VPN CLient has been started in the user session already. | ||||||||||||||
| ```bash | ||||||||||||||
| #!/bin/sh | ||||||||||||||
|
|
||||||||||||||
| # Change this path | ||||||||||||||
| sourcePath="UPDATE THIS PATH TO YOUR XML" | ||||||||||||||
| profileName="Azure VPN" | ||||||||||||||
|
|
||||||||||||||
| # These lines do not need changing | ||||||||||||||
| consoleuser=$(ls -l /dev/console | awk '{ print $3 }') | ||||||||||||||
| filePath="/Users/$consoleuser/Library/Containers/com.microsoft.AzureVpnMac/Data/Library/Application Support/com.microsoft.AzureVpnMac/$profileName.AzureVpnProfile.xml" | ||||||||||||||
| cp $sourcePath $filePath | ||||||||||||||
nyanhp marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||
| consoleuser=$(ls -l /dev/console | awk '{ print $3 }') | |
| filePath="/Users/$consoleuser/Library/Containers/com.microsoft.AzureVpnMac/Data/Library/Application Support/com.microsoft.AzureVpnMac/$profileName.AzureVpnProfile.xml" | |
| cp $sourcePath $filePath | |
| consoleuser=$(stat -f '%Su' /dev/console) | |
| filePath="/Users/$consoleuser/Library/Containers/com.microsoft.AzureVpnMac/Data/Library/Application Support/com.microsoft.AzureVpnMac/$profileName.AzureVpnProfile.xml" | |
| cp "$sourcePath" "$filePath" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This suggestion neither works on Linux nor on macOS.
Uh oh!
There was an error while loading. Please reload this page.