ClashX
Downloading the Required Version of ClashX
You need to go to the official GitHub page of the ClashX project and download the appropriate archive version for your operating system. The example provided is based on configuration for Windows OS. (Clash.for.Windows-0.20.39-win.7z).
Link on Github: https://github.com/lantongxue/clash_for_windows_pkg/releases

Extracting and Launching ClashX
Then, extract the archive and run "Clash for Windows.exe" as administrator, as shown in the screenshots below.


Accessing Configuration Settings
After launching the program, go to "Profiles" and open the editor for config.yaml
.

Configuring the Settings
You need to configure the file as shown in the example below.
proxies:
- name: "ProxyShard-Germany-testname"
type: socks5
server: 123.123.123.123
port: 1234
username: proxy_login
password: password_login
udp: true
proxy-groups:
- name: "Auto"
type: select
proxies:
- ProxyShard-Germany-testname
rules:
- PROCESS-NAME,chrome.exe,Auto
- MATCH,DIRECT
In the end, your configuration should look approximately like this:

You should also clarify what each field is responsible for (link about proxy fields).
proxies:
- name: "ProxyShard-Germany-testname" | Name proxy | any name
type: socks5 | Type protocol (for UDP only SOCKS5)
server: 123.123.123.123 | Address server proxy
port: 1234 | Port proxy
username: proxy_login | Login proxy
password: password_login | Password proxy
udp: true
proxy-groups:
- name: "Auto"
type: select
proxies:
- ProxyShard-Germany-testname
rules:
- PROCESS-NAME,,Auto | Selecting a Specific Application for proxying
- MATCH,DIRECT | In our example, we use the Chrome browser,
| but it can be any application you want, for example, discord.exe
| - MATCH,DIRECT means that all traffic not coming from Chrome
| will be routed directly through your main network interface, not through the proxy.
Configuration Check
After setting up the configuration, open "Proxies", select the "Global" option, and test your configured setup from step 4.

If the test fails and shows "Failed", double-check your configuration file to ensure all proxy details are entered correctly. If the settings are correct, you will see a successful test result like in the screenshot below.

Installing and Enabling the TAP Interface
Next, go to "General" and install the TAP interface on your computer. This will create a new network interface that the proxy will bind to. After installing the TAP interface, you need to activate "TUN Mode".

Functionality Check
If everything starts successfully, open the application you configured (step 4) and enjoy your programs working with UDP proxying enabled!
In our example, proxying was done through Chrome, and you can verify it on various checkers.


If the test or proxying doesn’t work, make sure you ran ClashX as Administrator and that steps 4 through 6 were completed correctly.
Adding Multiple Proxies and Switching Between Them
To quickly switch between proxies, you need to add new proxies to the configuration from step 4. The names like "ProxyShard-DE-testname1" are arbitrary and can be chosen as you prefer.
The key point after adding proxies is to include them in the "proxy-group", as shown below:
proxies:
- name: "ProxyShard-DE-testname1"
type: socks5
server: 123.123.123.123
port: 42651
username: LOgin
password: pasSSWORD
udp: true
- name: "ProxyShard-NL-testname2"
type: socks5
server: 123.123.123.123
port: 42651
username: LOgin
password: pasSSWORD
udp: true
- name: "ProxyShard-RO-testname3"
type: socks5
server: 123.123.123.123
port: 42651
username: LOgin
password: pasSSWORD
udp: true
proxy-groups:
- name: "Auto"
type: select
proxies:
- ProxyShard-DE-testname1
- ProxyShard-NL-testname2
- ProxyShard-RO-testname3
rules:
- PROCESS-NAME,chrome.exe,Auto
- MATCH,DIRECT
If everything is set correctly, additional connection points will appear in the "Proxies" section. Depending on the selected profile (just click on any), the connection will be established accordingly.

Last updated
Was this helpful?