{"id":2202,"date":"2025-01-03T21:37:15","date_gmt":"2025-01-03T12:37:15","guid":{"rendered":"https:\/\/remoooo.com\/?p=2202"},"modified":"2025-01-04T02:01:11","modified_gmt":"2025-01-03T17:01:11","slug":"wslandclash","status":"publish","type":"post","link":"https:\/\/remoooo.com\/en\/wslandclash\/","title":{"rendered":"Using the local Clash proxy in WSL"},"content":{"rendered":"<p>First check the port of Clash. Here is<code>7890<\/code>.<\/p>\n\n\n\n<p>In the local PowerShell, enter ipconfig, <\/p>\n\n\n\n<p>Find the vEthernet (WSL (Hyper-V firewall)) at the bottom, and remember the IPv4 address here. Mine is 172.20.0.1 .<\/p>\n\n\n\n<p>Next, in WSL, add the following code to ~\/.bashrc: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias proxy=&#039;export all_proxy=http:\/\/172.20.0.1:7890&#039; alias unproxy=&#039;unset all_proxy&#039;<\/code><\/pre>\n\n\n\n<p>Save, then execute the following code to activate:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source ~\/.bashrc<\/code><\/pre>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>First check the port of Clash, mine is 7890. In the local PowerShell, enter ipconfig and find [\u2026]<\/p>","protected":false},"author":2,"featured_media":53,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[],"class_list":["post-2202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/comments?post=2202"}],"version-history":[{"count":1,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2202\/revisions"}],"predecessor-version":[{"id":2203,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2202\/revisions\/2203"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/media\/53"}],"wp:attachment":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/media?parent=2202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/categories?post=2202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/tags?post=2202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}