mirror of
https://github.com/namibia/openvpn-install.git
synced 2025-02-05 02:18:23 +00:00
faq: split-tunneling and client config template (#727)
This commit is contained in:
commit
197b7b9fb5
18
FAQ.md
18
FAQ.md
@ -124,3 +124,21 @@ for i in ${userlist[@]};do
|
|||||||
MENU_OPTION=1 CLIENT=$i PASS=1 ./openvpn-install.sh
|
MENU_OPTION=1 CLIENT=$i PASS=1 ./openvpn-install.sh
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Q:** How do I change the default `.ovpn` file created for future clients?
|
||||||
|
|
||||||
|
**A:** You can edit the template out of which `.ovpn` files are created by editing `/etc/openvpn/client-template.txt`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Q:** For my clients - I want to set my internal network to pass through the VPN and the rest to go through my internet?
|
||||||
|
|
||||||
|
**A:** You would need to edit the `.ovpn` file. You can edit the template out of which those files are created by editing `/etc/openvpn/client-template.txt` file and adding
|
||||||
|
|
||||||
|
```sh
|
||||||
|
route-nopull
|
||||||
|
route 10.0.0.0 255.0.0.0
|
||||||
|
```
|
||||||
|
So for example - here it would route all traffic of `10.0.0.0/8` to the vpn. And the rest through the internet.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user