parent
ec36253e75
commit
03bb785155
1 changed files with 20 additions and 0 deletions
20
FAQ.md
20
FAQ.md
|
|
@ -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?
|
**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`
|
**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
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue