Update FAQ.md

https://github.com/angristan/openvpn-install/pull/644
This commit is contained in:
Techroy23 2020-04-28 20:09:28 +08:00 committed by GitHub
parent ec36253e75
commit 03bb785155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
FAQ.md
View file

@ -110,3 +110,23 @@ 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:** create a `foo.sh` using the script below and dont forget `chmod +x foo.sh`
```bash
#!/bin/bash
userlist=(user1 user2 user3 user4 user5 user6 user7 user8 user9 user10)
for i in ${userlist[@]}
do
export MENU_OPTION="1"
export CLIENT=$i
export PASS="1"
./openvpn-install.sh
ls -a | grep $i
sleep 5
done
```