Skip to content
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

Txt file for multiple client creation #732

Closed
4 tasks done
g-pane opened this issue Sep 24, 2020 · 3 comments
Closed
4 tasks done

Txt file for multiple client creation #732

g-pane opened this issue Sep 24, 2020 · 3 comments

Comments

@g-pane
Copy link

g-pane commented Sep 24, 2020

Checklist

  • I read the README
  • I read the FAQ
  • I searched the issues
  • My issue is about the script, and not OpenVPN itself

Describe the solution you'd like
Since i need to create many client always with the same "name style" (like vpn_001, vpn_002 and so on) was cool if i can pass a txt file with the all "certificates name" instead to create one to one, manually. The openvpn-install.sh ask only for the certificate name and password when create a new client.

  1. Add new users from txt

Txt content:
vpn_001|mypass
vpn_002 //without password
vpn_003|another pass

The password thing can be skipped if isn't possible. It can be very useful to create users in this way

@randshell
Copy link
Contributor

You can make a bash script that uses the headless user addition explained in the README:

while read USER
    do MENU_OPTION="1" CLIENT="$USER" PASS="1" ./openvpn-install.sh
done < users.txt

In users.txt each line contains a client name, setting a password headlessly is not supported yet by this script #389.

@angristan #521 is now a duplicate.

@g-pane
Copy link
Author

g-pane commented Sep 29, 2020

Work fine thanks

@angristan
Copy link
Owner

angristan commented Dec 8, 2020

Could this be added to the FAQ? 😄

timbo2k pushed a commit to timbo2k/openvpn-install that referenced this issue Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants