Skip to main content

How to use Datacenter proxies with OpenVPN

D
Written by Dmitry
Updated over 2 weeks ago

This guide explains how to connect datacenter proxies from Gsocks through OpenVPN. A great choice for fast network speeds, automation tools, and high-performance tasks where stability is key.

Create an .ovpn configuration file

Below is a step-by-step guide on how to create an .ovpn configuration file for OpenVPN with a Gsocks proxy.

1) Prepare proxy data

Ensure you have all the proxy data in the following format:

IP PORT LOGIN PASS

Using a residential proxy as an example:

  • IP: eu.datacenter.gsocks.net

  • PORT: 10000

  • LOGIN: username

  • PASS: password

You'll need this info when you set up the configuration file.

2) Create a text file

  1. Open any text editor (Notepad, Notepad++, VS Code, etc.).

  2. Paste the basic configuration template into it:

    client
    dev tun
    proto tcp
    remote vpn.example.com 443
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    verb 3

    # Proxy settings
    http-proxy eu.datacenter.gsocks.net 10000
    http-proxy-retry
    http-proxy-timeout 10
    http-proxy-user-pass proxy-login.txt

    cipher AES-256-CBC
    auth SHA256
  3. In the remote Your_VPN_Server 443 line, specify the actual address and port of your VPN server, for example:
    remote vpn.example.com 443

    (This is an example)

  4. Save it with the .ovpn extension.

    For example: Gsocks.ovpn

3) http-proxy-user-pass proxy-login.txt

Ensure that the line http-proxy-user-pass proxy-login.txt is specified exactly as shown—this is the name of the file containing the login and password for the proxy, which we will create in the next step.

4) Create a file with your proxy login and password (proxy-login.txt)

A separate file is required so that OpenVPN can automatically enter the login and password for the proxy.

Steps:

  1. Create a new text file in the same folder where your .ovpn file is located.

  2. Name it: proxy-login.txt

  3. Insert two lines. The first line is the proxy login, and the second line is the proxy password.
    username
    password

  4. Save the file without unnecessary spaces and empty lines.

Installing OpenVPN and importing the configuration file

After creating the file, install the application and import the settings.

1) Download OpenVPN client

Access the official OpenVPN website and download the client for your operating system.

2) Install the application

Run the installer and complete the setup process.

3) Open the OpenVPN / OpenVPN Connect application.

4) Import

After installation, you will see an icon in the tray.

Click Import Profile or File → Import (the name may vary depending on the client).

After successful import, you may receive a notification.

5) Connect

Then, right-click on the application icon in the tray and select Connect.

Now you can connect and verify that traffic is going through the proxy.


Do you have more questions or want a trial? Contact Gsocks support at support@gsocks.net.

Did this answer your question?