How to add a custom HTTP proxy to the OpenVPN configuration
OpenVPN is a type of VPN that has its own advantages over a regular VPN. With OpenVPN, users can, for example, determine which connection should be established, e.g. add a proxy and others. Additionally, many paid VPN service providers add OpenVPN to their list as OpenVPN is also convenient to use as it is only a very small file.
In addition to the possibility of bypassing sites blocked by operators, OpenVPN can also be adapted in various protocol options. So currently there are 2 protocols that can be used, namely TCP and UDP. For this type of UDP, it’s very simple and doesn’t support adding proxies. If, in the meantime, TCP can add proxies and also headers when the network starts up.
So now users know that the protocol in OpenVPN can provide additional proxies or Header is TCP. And to Adding proxies and headers isn’t too difficult. Users simply put a setting in text that is very easy to understand. Unless the user uses a program to switch the OpenVPN configuration, there is of course no need to use a text editor. But what will be discussed about the Notepad text editor this time, here is how to do it.
First make sure that you have set up the OpenVPN configuration in the TCP protocol. If you already have it, press the configuration 2 times and the user will open the editor.
Now pay attention to the remote control, please add management new and add a proxy like this.
http-proxy-retryhttp-proxy PROXY PORT
In the PROXY PORT section, switch to the operator IP currently in use. Examples like this.
In addition, users simply add management right down and now it’s time to add Header. So add it that way.
http-proxy-option EXT1 "Host: google.com"http-proxy-option EXT2 "X-Online-Host: google.com"
The above is an example of redirects host to google addresses, and users can add types Header others like “Referer”, “X-Forwarded-For” or others. So the result will look something like this.
Just press the last step CTRL + S on the keyboard to save and the configuration is ready for use.
If users still do not understand the procedure for using the OpenVPN configuration, please go to this page. There are so many methods Header which can be used as needed. Well it does tweaks or Troubleshooting and other. Also, be aware that adding an incorrect header or proxy can sometimes prevent a connection through this configuration and always cause problems. Therefore, it is a good idea to redirect the text properly.
Hopefully useful and good luck