How to make AdGuard work with proxies/VPNs in Android (using Clash as an example)
Lazy loaded imageHow to make AdGuard work with proxies/VPNs in Android (using Clash as an example)
Words 742Read Time 2 min
2024-12-18
2025-6-27
AI intelligent summary
GPT
The article explains how to configure AdGuard to work with proxies or VPNs on Android, using Clash as an example. It provides two methods: configuring autoproxy with root access, and forwarding traffic to a proxy via AdGuard without root. The first method involves enabling autoproxy in AdGuard settings and excluding the VPN app from AdGuard routing. The second method requires adding proxy details in AdGuard and adjusting settings in both AdGuard and the VPN app.
Elements of content
This article discusses how to use proxy/VPN software such as AdGuard and Clash at the same time on Android, providing a detailed setup plan and possible problems encountered. The content includes configuring automatic proxy in case of Root, forwarding traffic to proxy via AdGuard in case of no Root, using DNS with configured proxy software, etc. It is suitable for users who need to use AdGuard and proxy/VPN at the same time.
 
 

📝 Main content

software version

AdGuard v4.2 Nightly 18 (v3 and v4 are quite different, v4 has some smarter but less easy to figure out designs) Clash for Android 2.5.12.premium (theoretically works with all proxy software)

"one" radical in Chinese characters (Kangxi radical 1) . Configuring the autoproxy (the easy way out in the case of Root)

📋
Program features
  • Requires device to be rooted
  • Works with all VPN software
  • AdGuard or VPN software is independent of each other and does not depend on each other for ease of use

1. Open in AdGuard Settings>Filtering>Network>Routing Mode Then you can turn on the autoproxy

notion image
show (a ticket) Settings > Filtering
notion image
show (a ticket) Filter>Network
notion image
show (a ticket) Network > Routing Mode
notion image
Routing Mode>Auto Proxy

2. Open in AdGuard Application Management, find the VPN software you want to use at the same time and close Routing traffic through AdGuard

notion image
notion image

3. Just turn on AdGuard and VPN at the same time.

II. Forwarding traffic to the proxy via AdGuard (a stopgap measure without ROOT)

📋
Program features
  • No root privileges required
  • Requires VPN software support to work as a socks or http proxy

1. Open in AdGuard Application Management, find the VPN software you want to use at the same time and close Routing traffic through AdGuard

notion image
notion image

2. Clash Settings>Network>Auto-Route System Traffic Closed (V2rayNG, etc. changed to agent-only mode)

notion image
notion image
notion image
 

3. Open in AdGuard Settings>Filtering>Network>Proxy and add proxies. Proxy Hosting to 127.0.0.1. agency agreement Recommended for SOCKS5

📋
Difference between http, socks4 and socks5 proxies HTTP Proxy : Able to proxy the client's HTTP access The main thing is to proxy the browser Access to the web page SOCKS4 Agent Only support TCP protocol but (not) SOCKS5 Agent imitate Supports both TCP and UDP protocols It also supports various authentication mechanisms, server-side domain name resolution, etc.
notion image
show (a ticket) Settings > Filtering
notion image
show (a ticket) Filter>Network
notion image
show (a ticket) Network > Routing Mode
 
notion image
📋
Default ports for major VPN/proxy software SOCKS
software name
default protocol
Default Proxy Port
Shadowsocks
SOCKS5
1080
ShadowsocksRb
SOCKS5
1080
Clash
SOCKS5
7891
V2RayNG (1.4.0+)
SOCKS5
10808
SagerNet
SOCKS5
2080
⚠️
caveat
  1. Clash's actual port Subject to actual configuration file 7891 is just the default port.
  1. within AdGuard Checking Connections When the detection fails, the probability is that it did fail, but when the detection succeeds, it doesn't necessarily succeed, and you need to actually visit the page to try it out
  1. Play Store AdGuard The default does not route its traffic (⚠️ must route the software below its traffic for the feature to work) , the new version of the UI is misleading )
  1. When used in coexistence, the You have to turn on clash first, then turn on the adguard proxy

III. AdGuard uses DNS to configure proxy software (optional operation, recommended when DNS pollution is severe)

1. Clash will not turn on DNS by default, including subscription conversion platform commonly used subscription conversion rules will not turn on DNS, and in order to maintain the uniformity of the multi-profile, it is also recommended that you can override the configuration of the DNS in Clash

notion image
notion image
 
⚠️
Fake-IP's DNS must be used when proxying traffic with Clash or else problems will occur.
through (a gap) compatibility Consider that it is possible to use the Real-IP mode
Enhanced Mode Explanation
📋
DNS Policy Explained
  • No modifications: Keep the original Clash profile specifications
  • Mandatory Enablement: Force override of original settings The configuration set here is the last to be used
  • Use the built-in: Using Clash Default built-in DNS

2. On the AdGuard home page, long press to open DNS settings, then turn on Auto DNS, and change the DNS service of the integrated mode or outbound proxy to the Clash DNS server you just set up.

notion image
notion image
It is also possible to choose other DNS servers and not use automatic DNS
notion image

IV. Solution for Clash and Adguard coexisting and not being able to be used on their own.

📖 Extended reading

🤗 Summarize and summarize

⚠️
caveat
  1. Clash's actual port Subject to actual configuration file 7891 is just the default port.
  1. within AdGuard Checking Connections When the detection fails, the probability is that it did fail, but when the detection succeeds, it doesn't necessarily succeed, and you need to actually visit the page to try it out
  1. Play Store AdGuard The default does not route its traffic (⚠️ must route the software below its traffic for the feature to work) , the new version of the UI is misleading )
  1. When used in coexistence, the You have to turn on clash first, then turn on the adguard proxy

📎 Reference article

primary reference
 
💡
acceptable become a member Telegram's Little Warehouse of Seven Rows | Internet Memories | Blogs  cap Seven lines Technical Exchange Group  Find more tips oh 🥰 and also discuss various issues in the chat group ❓
Welcome to the Bottom comment section. Share your thoughts and experiences with Let's discuss and improve together!
 

Comments
Loading...
Catalog