Skip to content

loysosan/azure_setup_openvpn_server

Repository files navigation

Steps to Create a VPN User

  1. SSH into the VPN server:

    ssh [email protected] -i ~/.ssh/privatvpnkey.pem
  2. Switch to the root user:

    sudo su -
  3. Run the VPN user creation script with the username (replace andreyb with the desired username):

    ./createuservpn.sh andreyb

    As a result, you will receive the path to the OpenVPN configuration file:

    Client configuration file created: /root/client-configs/andreyb.ovpn
    
  4. Copy the content of the configuration file or transfer the file to your local machine using scp:

    • To display and copy the file content:
      cat /root/client-configs/andreyb.ovpn
  5. Create a connection profile in the OpenVPN client using the configuration file.


Notes

  • Ensure you have proper permissions and access to the server and .pem file.
  • Replace andreyb with the desired username for the VPN.

About

Azure - Script for setup Openvpn server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published