Skip to main content

How to create usee

Login to server vpn-user on ip 10.8.1.1

  1. Input the new user in the user-list file located at ~/scripts/VPNTemplate/template/. The format for inputting the user on the system is "division"-"name", where spaces are replaced by dashes. For example, in this case, the division of the user is "iss" and the name is "bayu-test". After editing the file, exit and save.

    image.png

  2. Generate the password for the user using the createUser.sh script located in the /scripts/VPNTemplate/ folder. After running the script, the system will auto-generate the password for the user and copy the result to /etc/openvpn/scripts/pass.txt.

    image.png

  3. Run the configGenerator.sh script to generate the VPN user's configuration file. After generating the config file, the system will store it in the ~/scripts/VPNTemplate/output folder.

    image.png

  4. Upload the config file to the AWS S3 bucket by running the syncS3bucket.sh script. The script has four options:

    image.png

    • copy: Uploads all config files in the output folder (~/scripts/VPNTemplate/output) to the AWS S3 bucket.
    • delete: Deletes all config files on the AWS S3 bucket.
    • set-public: (Missing description)
    • presigned-url: Displays a menu to choose the config file and shows the presigned URL of the config file on the AWS S3 bucket, which allows us to download the file using that URL.