How to Turn On TUN Mode in Clash For Windows (CFW)

There is a new type of application in Windows 10 that cannot be easily proxied, called UWP, which UWP Loopback can solve this problem. In addition, if people need computers proxied in a more efficient way, they are recommended to turn on the TUN MODE.
Unfortunately, I encountered a problem that my computer cannnot run TUN MODE smoothly so I decided to search for a solution, trying different ways but they did not work. Most of them were badly disrupting my network which brought about malfunctions of video meetings such as Skype and Zoom.
Finally I had to give up before inccidently finding out a really working method for me, and I reposted it. Here is what I found.
- Visit: https://www.wintun.net and then click
Download Wintun XXXto download itsZIP. Checking the bit of your PC, if you have a 64-bit PC, then copy theDLLunderamd64folder. Select the rightwintun.dllfile and copy it toHome Directory, to which you can access through Clash For Windows dashboard. - Open dashboard in Clash For Windows and find
Service ModeinGeneral. ClickManageand installService Mode. Wait for the software installing the mode and rebooting, then check the Earth icon turned green, which meansService Modeis successfully installed. (If you fail installing, then check the Step 5) - Find
Settingin dashboard and findProfile Mixin. ClickEditbehindYAML. Type the following codes:and then save it.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55mixin:
hosts:
'mtalk.google.com': 108.177.125.188
'services.googleapis.cn': 74.125.203.94
'raw.githubusercontent.com': 151.101.76.133
dns:
enable: true
default-nameserver:
- 223.5.5.5
- 1.0.0.1
ipv6: false
enhanced-mode: redir-host # Mode: 'redir-host' or 'fake-ip'. redir-host required in TUN MODE and recommended in both modes
nameserver:
- https://dns.rubyfish.cn/dns-query
- https://223.5.5.5/dns-query
- https://dns.pub/dns-query
- 1.1.1.1 # Cloudflare
- 8.8.4.4 # GoogleDNS
- 8.8.8.8 # GoogleDNS
- 185.222.222.222 # DNS.sb
- 185.184.222.222 # DNS.sb
- 223.5.5.5 # AliDNS
- 180.76.76.76 # Baidu DNS
- 119.29.29.29 # Tencent DNS
- 117.50.11.11 # ONE DNS Ver. Blocking Ads
- 117.50.10.10 # ONE DNS Ver. Pure Results
- 114.114.114.114 # 114DNS
- https://dns.alidns.com/dns-query # Ali DoH DNS
- https://doh.360.cn/dns-query # 360 DoH DNS
fallback:
- https://1.0.0.1/dns-query
- https://public.dns.iij.jp/dns-query
- https://dns.twnic.tw/dns-query
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
- 0.0.0.0/32
- 127.0.0.1/32
domain:
- +.google.com
- +.facebook.com
- +.twitter.com
- +.youtube.com
- +.xn--ngstr-lra8j.com
- +.google.cn
- +.googleapis.cn
- +.gvt1.com
tun:
enable: true
stack: system # The core 'Clash Premium 2021.05.08' or newer required. If not, please use 'gvisor'. Check your CFW version!
dns-hijack:
- 198.18.0.2:53
auto-route: true
auto-detect-interface: true - In
Generalyou should turn onMixin. It will work. (End) - (If Step 2 fails, then see here.) Open
Home Directoryfolder and access toC:\Users\yourusername\.config\clash\service. Opencmdwith administrator permission. - Type the code:and Enter, then waiting for installation completed.
1
service install clash-core-service.exe
- Save and close all applications, and then reboot your PC.
- And this is the same. Find
Settingin dashboard and findProfile Mixin. ClickEditbehindYAML. Type the following codes:remember save it before closing the window!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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55mixin:
hosts:
'mtalk.google.com': 108.177.125.188
'services.googleapis.cn': 74.125.203.94
'raw.githubusercontent.com': 151.101.76.133
dns:
enable: true
default-nameserver:
- 223.5.5.5
- 1.0.0.1
ipv6: false
enhanced-mode: redir-host # Mode: 'redir-host' or 'fake-ip'. redir-host required in TUN MODE and recommended in both modes
nameserver:
- https://dns.rubyfish.cn/dns-query
- https://223.5.5.5/dns-query
- https://dns.pub/dns-query
- 1.1.1.1 # Cloudflare
- 8.8.4.4 # GoogleDNS
- 8.8.8.8 # GoogleDNS
- 185.222.222.222 # DNS.sb
- 185.184.222.222 # DNS.sb
- 223.5.5.5 # AliDNS
- 180.76.76.76 # Baidu DNS
- 119.29.29.29 # Tencent DNS
- 117.50.11.11 # ONE DNS Ver. Blocking Ads
- 117.50.10.10 # ONE DNS Ver. Pure Results
- 114.114.114.114 # 114DNS
- https://dns.alidns.com/dns-query # Ali DoH DNS
- https://doh.360.cn/dns-query # 360 DoH DNS
fallback:
- https://1.0.0.1/dns-query
- https://public.dns.iij.jp/dns-query
- https://dns.twnic.tw/dns-query
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
- 0.0.0.0/32
- 127.0.0.1/32
domain:
- +.google.com
- +.facebook.com
- +.twitter.com
- +.youtube.com
- +.xn--ngstr-lra8j.com
- +.google.cn
- +.googleapis.cn
- +.gvt1.com
tun:
enable: true
stack: system # The core 'Clash Premium 2021.05.08' or newer required. If not, please use 'gvisor'. Check your CFW version!
dns-hijack:
- 198.18.0.2:53
auto-route: true
auto-detect-interface: true - Check it over and enjoy!