run local HTTP or SOCK proxy through openvpn

Solution 1:

As Piotr P. Karwasz has mentioned, OpenVPN at least itself does not provide the HTTPS/SOCKS5 function. Besides, I have used such function via ssh client service, it does not always work out. There are still many websites imcompatible to such proxies.

What you really want is the normal visit on WWW stays the same, but use OpenVPN to visit some specific sites or IPs. I suggest Not using the VPN gateway as the default router, as you just set in OpenVPN configurations. Instead, specify where you wanna visit through the OpenVPN. For example destination_IP=8.8.8.8: route 8.8.8.8 255.255.255.255

Make sure there is no other routing policies in your client configuration or in your server configuration with "push" at the beginning. No "def1" either. Then with this line only in the client configuration, you visit 8.8.8.8 via VPN channel while all the other places using the old router at your home.