Using EasyTier and a Proxy at the Same Time

On a phone, only one VPN can exist at a time, so EasyTier and a proxy cannot be used directly at the same time; here is a workaround.

Preparation

Here I will use EasyTier and v2rayN as examples. We also need any other proxy software; I used FlClash.

Steps

Both EasyTier and v2rayN need the tun mode turned off, that is, v2 stays in proxy-only mode.

In EasyTier’s advanced settings, enable the SOCKS5 server. Here port 10852 is used as an example; v2’s default port is 10808.

Then create a yaml file at any path on the phone with the following content:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info

proxies:
  - name: Proxy-EasyTier
    type: socks5
    server: 127.0.0.1
    port: 10852
    udp: true  # 启用 UDP 转发
  - name: Proxy-v2rayN
    type: socks5
    server: 127.0.0.1
    port: 10808
    udp: true  # 启用 UDP 转发

proxy-groups:
  - name: Default
    type: select
    proxies:
      - Proxy-v2rayN

rules:
  # 本地/局域网 UDP 直连(避免阻断内网 UDP),没啥用可以去掉
  - IP-CIDR,127.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
  - IP-CIDR,172.16.0.0/12,DIRECT,no-resolve
  # 目标网段分流(含 UDP 转发)
  - IP-CIDR,10.0.0.0/8,Proxy-EasyTier,no-resolve
  # 其余全部走 Proxy-v2rayN(含 UDP)
  - MATCH,Default

In “clash - profiles”, add a new file-based config and select it, then enable clash’s VPN to do the routing.

How It Works

It is essentially using a third proxy software to do the routing. I tried it and TCP communication works fine, while UDP gets blocked; I am not sure whether it is a configuration problem, and I did not bother to keep fiddling with it…

I checked and it is indeed because EasyTier’s SOCKS5 does not support UDP:

References