Skip to content

Latest commit

 

History

History
97 lines (88 loc) · 2.27 KB

Proxy_configuration.md

File metadata and controls

97 lines (88 loc) · 2.27 KB

Proxy configuration guide

1. Google Chrome configuration

1.1 Install browser extension

Install Proxy Switcher and Manager in Google Chrome.

1.2 Configure proxy connection

Switch PAC Script tab and paste the next code in Inline section:

var proxy = "IP:PORT";
//proxy = "";

var proxy_all = false;
//proxy_all = true;

var hosts = [
    'userapi.com',
    'vk.cc',
    'vk.com',
    'vk.me',
    'vk.link',
    'vk-cdn.net',
    'vkuservideo.net',
    'vkuserlive.com',
    'vkuseraudio.net',
    'vkforms.ru',
    'vkuserdocs.net',
    'vk-apps.com',
    'vkpay.io',
    'vk-portal.net',
    'vkontakte.ru',
    'vkuser.net',
    'mycdn.me',
    'ok.ru',
    'mail.ru',
    'attachmail.ru',
    'datacloudmail.ru',
    'imgsmail.ru',
    'ya.ru',
    'yadi.sk',
    'yandex.ru',
    'yandex.com',
    'yandex.ua',
    'yastatic.net',
    'yandex.net',
    'clstorage.net',
    'narod.ru',
    'dzen.ru',
    'webmoney.ru',
    'wmtransfer.com',
    'kinopoisk.ru',
    'mradx.net',
    'tns-counter.ru',
    'cdnland.in',
    'svetacdn.in',
    'yoomoney.ru',
    'beget.com',
    'beget.ru',
    'beget.email',
    'reg.ru',
    'habr.com',
    'more.tv'
];

var domains = [
    'ru',
    'su'
];

function FindProxyForURL(url, host) {
    let uri = host.split('.').reverse();
    let domain = uri[1] + '.' + uri[0];
    if (proxy_all || hosts.includes(domain) || domains.includes(uri[0])) {
        return "PROXY " + proxy;
    }

    return "DIRECT";
}
  • var proxy – proxy IP and port;
  • var proxy_all – pass all traffic via proxy;
  • var hosts – pass websites from this list via proxy;
  • var domains – pass all the websites with domains from this list via proxy.

2. Android configuration

2.1 Wi-Fi via proxy

  1. Open Wi-Fi settings.
  2. Select the necessary Wi-Fi network and click to modify it.
  3. Fill the Proxy section with proxy IP and port.
  4. Save the changes.

2.2 Mobile network via proxy

  1. Open Mobile Networks settings.
  2. Open Access Point Name or APN settings.
  3. Select the necessary APN and click to modify it.
  4. Fill the Proxy section with proxy IP and Port section with proxy port.
  5. Save the changes.