Solution: Using AG with VPN without root or socks proxy

Woomera

New Member
So, I've been using AG for the past few months and after unrooting my OP6 I had a tough time blocking AD's and keeping my VPN connection at the same time.

I tried looking for a new VPN provider with an app that has a proxy option so it would go through AG for connection but had no luck finding one.

Manually setting WiFi's proxy works fine until VPN connects and then it would simply bypass the proxy settings (and YES, I tried disabling protection for my VPN app within AG settings)

So I started using OpenVPN config files from my VPN and setting proxies within the config files to route the packets through AG before heading to the Internet but the OpenVPN app's performance and constant disconnection were a disappointment.

Today, something came to my mind and I started messing with the settings of both my VPN app's and AG and managed to get it working which I'm going to explain below

There are 2 method's that I have found and been using,

Method 1:

-using OpenVPN config files to add in the proxy and then importing it into the OpenVPN app of your choice. How-To


Method 2:

Note: This method requires your VPN app to support app exception/split tunneling!

-Set AG's Filtering method to "Local HTTP Proxy"
-Set your Wifi/Data 's proxy to IP:127.0.0.1 Port:8080
-AG > App Management > (VPN app) > Disable "AdGuard Protection"
-Go to your VPN app's settings and disable VPN for your selected app i.e "Chrome" (the app that requires AD blocking)
-Now connect to your VPN and Voilà!

If you are thinking that chrome simply bypasses VPN and goes through AG directly connecting to the internet, You are mistaken. I live in a country that practices Internet Censorship so it's easy for me to test this out. The app DOES go through VPN and AG both!


It is also worth mentioning that this could simply not work for everyone depending on your ROM/VPN.
I'm on OnePlus 6 (no-root) running Android 10 and tested this with both Windscribe and VPNUnlimited from KeepSolid with SUCCESS.
 

Woomera

New Member
is this just going to have adguard working for chrome though?
Or am i reading the Method 2 wrong?
it works for any app (though it probably wont disable ads in youtube).
basically, any app that you exclude in your vpn app will still go through it but will go through AG first.
if you need an app to access the web directly with no vpn at all, you need to disable it within the AG as well.
 

devshack

New Member
Hi, i search a option for AdGuard and Wireguard. You write "Set your Wifi/Data 's proxy to IP:127.0.0.1 Port:8080" Where set the option? in Adguard or in the Android settings?
 

Baeissa

New Member
Hi, i search a option for AdGuard and Wireguard. You write "Set your Wifi/Data 's proxy to IP:127.0.0.1 Port:8080" Where set the option? in Adguard or in the Android settings?
in android settings in Network select the connected wifi, there should be Advanced Options. You will find the proxy there. Then go to the Data settings then go to Access Point Names then select the connected APN and edit and add proxy.
 
Top