Zend certified PHP/Magento developer

“Connection not secure” error occurs when I visit websites outside the firewall in VM

I want to transfer packet flow in virtual machine to the host proxy, because my host can visit websites outside the firewall by proxy settings.
Settings on Windows:
I download clash for windows and turn on the “Allow LAN” option (other options remain default). My host and VM communicate by NAT connection way. I confirm they are in the same subnet and can ping each other successfully.
Settings on CentOS(VM):
I turn on the network proxy option and set HTTP Proxy, HTTPS Proxy and Socks Host to [MyHostIp]:[Port displayed in clash].
Problem:
When I visit websites inside the firewall it works fine. But when I visit websites outside the firewall (eg.google.com), the firefox browser alerts “connection not secure”.

I have tried to follow the instructions in this link I found a fix for “Your connection is not secure”.