Page 1 of 1

Help with routing all traffic from my phone, but not any other clients

Posted: Fri Jul 16, 2021 1:20 pm
by dimovi
I have OpenVPN server on an Asus router and several clients (a few PCs and an Android phone) connected to it without a problem.
All clients connect and work fine, the issue is that I want my Android phone to route ALL traffic through the VPN server, while the PCs only LAN traffic.
From the server option I can easily select all clients to redirect traffic or none, but is there an option on the client side (my Android phone) to route only all of its traffic through the VPN tunnel?

Re: Help with routing all traffic from my phone, but not any other clients

Posted: Fri Jul 16, 2021 2:46 pm
by TinCanTech
Add this to your client config file:

Code: Select all

redirect-gateway def1

Re: Help with routing all traffic from my phone, but not any other clients

Posted: Wed Jul 21, 2021 11:09 am
by dimovi
Where is that file? I'm unable to find it using any file browsers. I have a pixel 3A, do I need to do anything special to get to it?

Re: Help with routing all traffic from my phone, but not any other clients

Posted: Wed Jul 21, 2021 12:06 pm
by TinCanTech
dimovi wrote:
Wed Jul 21, 2021 11:09 am
do I need to do anything special to get to it?
Yes, you do ..

Re: Help with routing all traffic from my phone, but not any other clients

Posted: Wed Jul 21, 2021 3:33 pm
by dimovi
TinCanTech wrote:
Wed Jul 21, 2021 12:06 pm
Yes, you do ..
Are you going to tell me or you don't know?

Re: Help with routing all traffic from my phone, but not any other clients

Posted: Thu Jul 22, 2021 10:17 pm
by 300000
He told do that and you didnot . What do you want to do now? If you dont know what to find and change so dont do it . Not easy to do

Re: Help with routing all traffic from my phone, but not any other clients

Posted: Tue Jul 27, 2021 10:51 am
by dimovi
Do you need to root the phone? Where is that file?