Лучший VPS сервер, который мне удалось найти: https://justhost.ru

  • Больше 30 стран локаций
  • Возможность 50 раз сменить страну и ip адрес вашего сервера
  • Все тарифы подходят для VPN и Proxy
  • Установка Mikrotik routerOS и linux из коробки
  • Оплата Российскими картами
  • Стоимость от 79 рублей в месяц за промо тариф

Установка доступна по ссылке: https://github.com/immisterio/Lampac

curl -L -k -s https://lampac.sh | bash
  • Порт генерируется случайным образом и выводится в конце выполнения установочного скрипта.
  • Просмотреть или изменить порт можно в файле init.conf: grep "listenport" /home/lampac/init.conf

Скопируйте файл pubtorr.js в каталог /home/lampac/wwwroot/pubtorr.js.

Кастомные настройки lampac:

/home/lampac/plugins/lampainit.my.js

(function() {
  'use strict';

  window.lampa_settings = {
    torrents_use: true,
    demo: false,
    read_only: false,
    socket_use: true,
    account_use: true,
    account_sync: true,
    plugins_store: true,
    feed: true,
    white_use: true,
    push_state: true,
    lang_use: true,
    plugins_use: true
  }

  window.lampa_settings.disable_features = {
    dmca: true,
    reactions: false,
    discuss: false,
    ai: false,
    install_proxy: false,
    subscribe: false,
    blacklist: false,
    persons: false
  }

  var timer = setInterval(function() {
    if (typeof Lampa !== 'undefined') {
      clearInterval(timer);

      if ({btn_priority_forced})
        Lampa.Storage.set('full_btn_priority', '{full_btn_priority_hash}');

      var unic_id = Lampa.Storage.get('lampac_unic_id', '');
      if (!unic_id) {
        unic_id = Lampa.Utils.uid(8).toLowerCase();
        Lampa.Storage.set('lampac_unic_id', unic_id);
      }

      Lampa.Utils.putScriptAsync(["{localhost}/privateinit.js?account_email=" + encodeURIComponent(Lampa.Storage.get('account_email', '')) + "&uid=" + encodeURIComponent(Lampa.Storage.get('lampac_unic_id', ''))], function() {});

      if (!Lampa.Storage.get('lampac_initiale', 'false')) {
        if (window.appready) start()
        else {
          Lampa.Listener.follow('app', function(e) {
            if (e.type == 'ready') start()
          })
        }
      }

      {deny}
          {pirate_store}
    }
  }, 200);

  function start() {
    Lampa.Storage.set('lampac_initiale', 'true');
    Lampa.Storage.set('source', 'cub');
    Lampa.Storage.set('video_quality_default', '2160');
    Lampa.Storage.set('full_btn_priority', '{full_btn_priority_hash}');
    Lampa.Storage.set('proxy_tmdb','true');
    Lampa.Storage.set('poster_size', 'w300');
    Lampa.Storage.set('screensaver','false');

    Lampa.Storage.set('parser_use', 'true');
    Lampa.Storage.set('jackett_url', '{jachost}');
    Lampa.Storage.set('jackett_key', '1');
    Lampa.Storage.set('parser_torrent_type', 'jackett');

    var plugins = Lampa.Plugins.get();

    var plugins_add = [
     {initiale},
     {"url": "{localhost}/pubtorr.js","status": 1, "name": "Выбор парсеров", "author": "Me"},
     {"url": "{localhost}/plugins/rating.js","status": 1, "name": "Рейтинг КиноПоиск и IMDB", "author": "@t_anton"},
     {"url": "https://lampaplugins.github.io/store/p.js","status": 1, "name": "Подборки", "author": "@lampa_land"}
    ];

    var plugins_push = []

    plugins_add.forEach(function(plugin) {
      if (!plugins.find(function(a) {
          return a.url == plugin.url
        })) {
        Lampa.Plugins.add(plugin);
        Lampa.Plugins.save();

        plugins_push.push(plugin.url)
      }
    });

    if (plugins_push.length) Lampa.Utils.putScript(plugins_push, function() {}, function() {}, function() {}, true);
  }
})();

Отключение TorrServer и включение парсера

/home/lampac/module/manifest.json

[{"enable":true,"initspace":"Tracks.ModInit","dll":"Tracks.dll"},{"enable":false,"initspace":"TorrServer.ModInit","dll":"TorrServer.dll"},{"enable": true,"initspace": "Jackett.ModInit","dll": "JacRed.dll"}]

Настройки /home/lampac/init.conf

{
 "listenhost": "lamp.ruii.ru",
 "timeoutSeconds": 10,
 "cachetype": "file",
 "fileCacheInactiveDay": 3,
 "htmlCacheToMinutes": 20,
 "torrentCacheToMinutes": 40,
 "emptycache": true,
 "multiaccess": true,
 "timeoutSeconds": 10,
 "listenip": "any", // any | broadcast | 127.0.0.1
 "listenport": 9118,
 "pirate_store": true,
 "log": false,
 "apikey": "",
 "litejac": true, // Включить Jackett в Lampa Lite
 "anticaptchakey": "", // anti-captcha.com
 "corsehost": "https://cors.bwa.workers.dev",
 "LampaWeb": {
   "autoupdate": true,
     "index": "lampa-main/index.html",
     "basetag": true,
     "initPlugins": {
     "dlna": false,
     "tracks": false,
     "tmdbProxy": true,
     "online": false,
     "timecode": false,
     "torrserver": false,
     "sisi": false
   }
 },
 "fileCacheInactiveDay": {
     "html": 1,
     "img": 1,
     "torrent": 2
 },
 "crontime": {
   "updateLampaWeb": 20,
   "clearCache": 60,
   "updateTrackers": 120
 },
"cub": {
   "enable": true,
   "domain": "cub.red",
   "scheme": "https",
   "useproxy": false,
   "proxy": {
      "list": [
         "socks5://ip:port"
      ]
    }
  }
}

Настройка прокси для cub.red

Устанавливаем SOCKS5-прокси:

apt install dante-server

Редактируем конфигурационный файл:

nano /etc/danted.conf

#logoutput: syslog
user.privileged: root
user.unprivileged: nobody

# The listening network interface or address.
internal: 127.0.0.1 port=1080

# The proxying network interface or address.
external: eth0

# socks-rules determine what is proxied through the external interface.
socksmethod: none

# client-rules determine who can connect to the internal interface.
clientmethod: none

socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}

client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}

Перезапускаем сервис:

systemctl restart danted.service

Проверяем статус сервиса:

systemctl status danted.servic