From 9623867026c82615f86c5f30907c082cc4f1d7fb Mon Sep 17 00:00:00 2001 From: Gal Bracha Date: Tue, 8 Sep 2020 11:47:31 +0300 Subject: [PATCH 1/2] FAQ - Added how to set up part of the routing # Implements Updated `FAQ.md` - Added how to set only some of the traffic to go through the VPN and the rest using the normal connection --- FAQ.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/FAQ.md b/FAQ.md index 8c894c0..87e6afe 100644 --- a/FAQ.md +++ b/FAQ.md @@ -124,3 +124,14 @@ for i in ${userlist[@]};do MENU_OPTION=1 CLIENT=$i PASS=1 ./openvpn-install.sh done ``` +--- + +**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. From 7ddd525edfceb7b83117f42fec3bcfa63f21a5fc Mon Sep 17 00:00:00 2001 From: Gal Bracha Date: Mon, 12 Oct 2020 10:28:22 +0300 Subject: [PATCH 2/2] Update FAQ.md Added instructions on the `/etc/openvpn/client-template.txt` as requested --- FAQ.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/FAQ.md b/FAQ.md index 87e6afe..4a7d2de 100644 --- a/FAQ.md +++ b/FAQ.md @@ -124,6 +124,13 @@ for i in ${userlist[@]};do MENU_OPTION=1 CLIENT=$i PASS=1 ./openvpn-install.sh 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?