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.
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

show (a ticket)
Settings > Filtering
show (a ticket)
Filter>Network
show (a ticket)
Network > Routing Mode
Routing Mode>Auto Proxy2. Open in AdGuard Application Management, find the VPN software you want to use at the same time and close Routing traffic through AdGuard


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


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



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.

show (a ticket)
Settings > Filtering
show (a ticket)
Filter>Network
show (a ticket)
Network > Routing Mode
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
- Clash's actual port Subject to actual configuration file 7891 is just the default port.
- within AdGuard
Checking ConnectionsWhen 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
Play StoreAdGuard 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 )
- 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


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.


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

IV. Solution for Clash and Adguard coexisting and not being able to be used on their own.
caveat
- Clash's actual port Subject to actual configuration file 7891 is just the default port.
- within AdGuard
Checking ConnectionsWhen 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
Play StoreAdGuard 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 )
- When used in coexistence, the You have to turn on clash first, then turn on the adguard proxy
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!
- Author:Qi Xing
- URL:https://blog.qixing1217.top/article/how-to-use-adguard-with-proxy-vpn-on-android-clash-example
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!





