Kezel wrote
Yes but on my smartphone everything work ...
everything work on your computer too but you don't like how it works.
Using
--redirect-gateway def1 means that openvpn will install a host route for your server so that it does not send encrypted packets into the tunnel again.
It is possible that smartphones do this differently but we do not know anything about your smartphone, like what version of openvpn you are using ?
Kezel wrote
When i add "redirect-gateway def1" on my client configuration the connection stop to redirect all trafic :shock:
This does not make sense, so I will just ignore it.
Kezel wrote
So i checked all options and it seems to be option "persist-tun" doing the job to redirect all trafic
--persist-tun has no effect, as can be seen in your log:
Kezel wrote
16:55:12.453 -- UNUSED OPTIONS
0 [persist-tun]