📜 ⬆️ ⬇️

Using multiple proxies in Opera

In corporate and home networks that contain internal web resources, it is sometimes necessary to have a tool that is more functional than the well-known option “do not use a proxy for local addresses”.

However, if your corporate / home network is connected to several (more than one) providers, or there is a need to save on the traffic of the most frequently visited resources, and also considering that many providers have web resources that are available for free, then use several proxy becomes justified.

Then we will talk about how convenient it is to use several pre-configured proxies in Opera browser, which allows you to perform this task without installing additional modules and other software for both win and nix systems.

It should be noted that up to the actual version of Opera browser at the time of writing of article 11, in its settings there is no possibility to use multiproxy via GUI. But there is an override.ini file, located by default in the folder of the Opera user profile, in which it is configured including. and using multiple proxies in the browser.
')
The location of this configuration file can be found by opening the following address in Opera:
opera: config # Overrides , "Overrides File" specifies the full path to this file.

Before you start changing the settings in this file, be sure to close Opera and wait until it is completely unloaded from the PC's memory!

Consider the structure of the override.ini file:

Opera Preferences version 2.1

[Overrides]
site1
...
siteN

[site1]
....

[siteN]
....


The [Overrides] section lists the domain names of sites for which settings are different from “silently”. Next come the sections with domain names and settings for them.

Example 1. Use a dedicated caching proxy server (IP 192.168.1.1, port 3128) to minimize external traffic to map services.

[Overrides]
maps.yandex.ru

[maps.yandex.ru]
Proxy|Use HTTP=1
Proxy|HTTP server=192.168.1.1:3128
Proxy|HTTPS server=192.168.1.1:3128
Proxy|FTP server=192.168.1.1:3128


It should be noted that the address of the form *. Maps.yandex.ru this rule also applies.

Example 2. Your network is connected to two Internet providers, to access each of them you use a separate proxy server (192.168.1.1 Border 128 and 192.168.1.2 Borl 128), while it is more profitable to open * Site.ru addresses via 1st proxy , and addresses of the form * .site.com through the 2nd.

[Overrides]
site.ru
site.com

[site.ru]
Proxy|Use HTTP=1
Proxy|HTTP server=192.168.1.1:3128
Proxy|HTTPS server=192.168.1.1:3128
Proxy|FTP server=192.168.1.1:3128

[site.com]
Proxy|Use HTTP=1
Proxy|HTTP server=192.168.1.2:3128
Proxy|HTTPS server=192.168.1.2:3128
Proxy|FTP server=192.168.1.2:3128


Example 3. There is only one proxy server in your network (192.168.1.1²128), however there is an account on a proxy with unlimited traffic, but for a limited list of sites of business need (company.ru), and there is also a personal traffic quota for search engines and the rest of the internet. Of course, you do not want to spend personal limited traffic for business needs. Constantly changing the proxy settings in the browser is also extremely inconvenient.

In this case, for a proxy 192.168.1.1, we will invent a local dns name and write it in the hosts file in the OS.
192.168.1.1 proxy.local

In Opera's default settings, we set up the use of proxy 192.168.1.1ل128.
Next, edit the file override.ini

[Overrides]
company.ru

[company.ru]
Proxy|Use HTTP=1
Proxy|HTTP server=proxy.local:3128
Proxy|HTTPS server=proxy.local:3128
Proxy|FTP server=proxy.local:3128


The trick is that Opera stores the login and password settings for each proxy used, i.e. for a proxy 192.168.1.1:37128 you will enter your personal login / password, and when you try to open the * .company.ru addresses you will specify the login / password of the unlimited account like for proxy.local: 3128.

Finally, I will list again, for which you may need to use several proxy servers:

Source: https://habr.com/ru/post/111079/


All Articles