Page 1 of 1

Routing all client traffic through the VPN on client side

Posted: Thu Apr 07, 2016 12:21 pm
by bahador_b_92
Hi,

I have read the howto and I know that I can route all client traffic through the VPN by putting

Code: Select all

push "redirect-gateway def1"
in my server configuration. But what if the server doesn't contain this line and I want to do it on client configuration?

Re: Routing all client traffic through the VPN on client sid

Posted: Thu Apr 07, 2016 12:51 pm
by Traffic
client config:

Code: Select all

redirect-gateway def1
However, if the server is not setup to function as your client default gateway then it will not work.

Re: Routing all client traffic through the VPN on client sid

Posted: Thu Apr 07, 2016 2:44 pm
by bahador_b_92
Traffic wrote:client config:

Code: Select all

redirect-gateway def1
However, if the server is not setup to function as your client default gateway then it will not work.
Thanks for answering.

I seems that the server wasn't configured in a way to allow me to redirect all my traffic through the connection :( .

Now the opposite scenario. I have used

Code: Select all

--route-noexec
on my client configuration for a server that DOES

Code: Select all

push "redirect-gateway def1"
. The client config works fine on a windows or linux machine, NOT redirecting all the traffic, however when I use the same config file on my android phone with "OpenVPN Connect" app, it REDIRECTS all the traffic and apparently ignores

Code: Select all

--route-noexec
. Should I make a new post for this?

Re: Routing all client traffic through the VPN on client sid

Posted: Thu Apr 07, 2016 8:05 pm
by Traffic
bahador_b_92 wrote:when I use the same config file on my android phone with "OpenVPN Connect" app, it REDIRECTS all the traffic
Check your Connect log for errors ..