Using multiple proxies in Opera
In corporate and home networks containing internal web-resources, sometimes it becomes necessary to have a tool more functional than the well-known option “do not use proxies 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 using several proxy becomes justified.
Next, we will talk about how it is convenient to use several pre-configured proxies in the 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 right up to the current version of the Opera browser at the time of writing, there is no way to use multiproxy via the GUI in its settings. But there is a file override.ini, located by default in the Opera user profile folder, in which it is configured including and the use of multiple proxies in the browser.
The location of this settings file can be found by opening the following address in Opera:
opera: config # Overrides , “Overrides File” indicates the full path to this file.
Before starting to change the settings in this file, be sure to close Opera and wait for it to be completely unloaded from the PC memory!
Consider the structure of the override.ini file:
The [Overrides] section lists the domain names of sites whose settings are different from "default". Next are 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. It should be noted that this rule will also apply to addresses of the form * .maps.yandex.ru. Example 2. Your network is connected to two Internet providers, for access to each of them you use a separate proxy server (192.168.1.1lla128 and 192.168.1.2lla128), while it is more profitable to open * .site.ru addresses through the 1st proxy , and addresses of the form * .site.com through 2nd.
Example 3. Your network has only one proxy server (192.168.1.1lla128), however there is a proxy account with unlimited traffic, but for a limited list of service necessity sites (company.ru), and there is also a personal traffic quota for search engines and the rest of the Internet. Of course, you don’t want to spend your limited personal traffic on an official need. Constantly changing proxy settings in the browser is also extremely inconvenient.
In this case, for proxy 192.168.1.1 we will think up a local dns name and write it in the hosts file in the operating system.
In Opera's default settings, we configure the use of proxy 192.168.1.1lla128.
Next, edit the override.ini file
The trick is that Opera stores login and password settings for each proxy used, i.e. for proxy 192.168.1.1{128 you enter a personal username / password, and when you try to open * .company.ru addresses you specify the username / password for an unlimited account for proxy.local: 3128.
In the end, I’ll list again, which may require the use of several proxy servers:
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 using several proxy becomes justified.
Next, we will talk about how it is convenient to use several pre-configured proxies in the 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 right up to the current version of the Opera browser at the time of writing, there is no way to use multiproxy via the GUI in its settings. But there is a file override.ini, located by default in the Opera user profile folder, in which it is configured including and the use of multiple proxies in the browser.
The location of this settings file can be found by opening the following address in Opera:
opera: config # Overrides , “Overrides File” indicates the full path to this file.
Before starting to change the settings in this file, be sure to close Opera and wait for it to be completely unloaded from the PC 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 whose settings are different from "default". Next are 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. It should be noted that this rule will also apply to addresses of the form * .maps.yandex.ru. Example 2. Your network is connected to two Internet providers, for access to each of them you use a separate proxy server (192.168.1.1lla128 and 192.168.1.2lla128), while it is more profitable to open * .site.ru addresses through the 1st proxy , and addresses of the form * .site.com through 2nd.
[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
[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. Your network has only one proxy server (192.168.1.1lla128), however there is a proxy account with unlimited traffic, but for a limited list of service necessity sites (company.ru), and there is also a personal traffic quota for search engines and the rest of the Internet. Of course, you don’t want to spend your limited personal traffic on an official need. Constantly changing proxy settings in the browser is also extremely inconvenient.
In this case, for proxy 192.168.1.1 we will think up a local dns name and write it in the hosts file in the operating system.
192.168.1.1 proxy.local
In Opera's default settings, we configure the use of proxy 192.168.1.1lla128.
Next, edit the override.ini file
[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 login and password settings for each proxy used, i.e. for proxy 192.168.1.1{128 you enter a personal username / password, and when you try to open * .company.ru addresses you specify the username / password for an unlimited account for proxy.local: 3128.
In the end, I’ll list again, which may require the use of several proxy servers:
- Using multiple Internet providers.
- Active use of map services Google, Yandex and others with a large amount of graphics.
- Using unlimited proxy accounts for selected sites.