From e952d58995bcdbb2d31c60de3b8e6622c8efe7ba Mon Sep 17 00:00:00 2001 From: Techroy23 <53241974+techroy23@users.noreply.github.com> Date: Tue, 28 Apr 2020 20:23:18 +0800 Subject: [PATCH] docs(faq): add batch client generation script (#645) --- FAQ.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/FAQ.md b/FAQ.md index 6561282..b891666 100644 --- a/FAQ.md +++ b/FAQ.md @@ -110,3 +110,17 @@ Sysctl options are at `/etc/sysctl.d/20-openvpn.conf` **Q:** How can I access computers the OpenVPN server's remote LAN? **A:** Add a route with the subnet of the remote network to `/etc/openvpn/server.conf` and restart openvpn. Example: `push "route 192.168.1.0 255.255.255.0"` if the server's LAN is `192.168.1.0/24` + +--- + +**Q:** How can I add multiple users in one go? + +**A:** Here is a sample bash script to achieve this: + + ```sh +userlist=(user1 user2 user3) + +for i in ${userlist[@]};do + MENU_OPTION=1 CLIENT=$i PASS=1 ./openvpn-install.sh +done +```