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

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
dimovi
OpenVpn Newbie
Posts: 4
Joined: Fri Jul 16, 2021 1:08 pm

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

Post by dimovi » Fri Jul 16, 2021 1:20 pm

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?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Fri Jul 16, 2021 2:46 pm

Add this to your client config file:

Code: Select all

redirect-gateway def1

dimovi
OpenVpn Newbie
Posts: 4
Joined: Fri Jul 16, 2021 1:08 pm

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

Post by dimovi » Wed Jul 21, 2021 11:09 am

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?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Wed Jul 21, 2021 12:06 pm

dimovi wrote:
Wed Jul 21, 2021 11:09 am
do I need to do anything special to get to it?
Yes, you do ..

dimovi
OpenVpn Newbie
Posts: 4
Joined: Fri Jul 16, 2021 1:08 pm

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

Post by dimovi » Wed Jul 21, 2021 3:33 pm

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

300000
OpenVPN Expert
Posts: 685
Joined: Tue May 01, 2012 9:30 pm

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

Post by 300000 » Thu Jul 22, 2021 10:17 pm

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

dimovi
OpenVpn Newbie
Posts: 4
Joined: Fri Jul 16, 2021 1:08 pm

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

Post by dimovi » Tue Jul 27, 2021 10:51 am

Do you need to root the phone? Where is that file?

Post Reply