Configure a Proxy on Linux
Host Machine Proxy via Clash Port
Set the proxy:
export https_proxy=http://127.0.0.1:7890
export http_proxy=http://127.0.0.1:7890
export all_proxy=socks5://127.0.0.1:7890
Virtual Machine
First, check the host machine's IP address:
cat /etc/resolv.conf
Or open a command prompt and run:
ipconfig
After confirming the host machine's IP address, set the proxy:
export https_proxy=http://192.168.145.1:7890
export http_proxy=http://192.168.145.1:7890
export all_proxy=socks5://192.168.145.1:7890