GithubHelp home page GithubHelp logo

awg-openwrt's Introduction

Автоматическая настройка AmneziaWG для OpenWRT версии 23.05.0 и более новых

Для автоматической настройки рекомендую использовать скрипт от пользователя itdog. Этот скрипт позволяет автоматически скачать нужные пакеты из собранных здесь и настроить точечный обход блокировок по доменам.

Сборка пакетов для всех устройств, поддерживающих OpenWRT

В репозиторий в ветку feat/build-for-all-devices добавлен скрипт, который парсит данные о поддерживаемых платформах со страницы OpenWRT и автоматически запускает сборку пакетов AmneziaWG для всех устройств. На данный момент я собрал пакеты для всех устройств для OpenWRT версий:

  1. 23.05.0
  2. 23.05.1
  3. 23.05.2
  4. 23.05.3
  5. 23.05.4

Также запускал сборку для версии 22.03.7, но там для двух платформ сборка завершилась ошибкой. Так как это достаточно старая версия OpenWRT, я не стал разбираться, в чем проблема.

Выбор пакетов для своего устройства

В соответствии с пунктом Указываем переменные для сборки определить target и subtarget вашего устройства. Далее перейти на страницу релиза, соответствующего вашей версии OpenWRT, затем поиском по странице (Ctrl+F) найти 3 пакета, название которых оканчивается на target_subtarget.ipk, соответствующие вашему устройству.

Как запустить сборку для всех поддерживаемых устройств

  1. Создать форк этого репозитория
  2. Переключиться на вкладку Actions и включить Github actions (по умолчанию для форков они выключены)
  3. Затем перейти на вкладку Code => Releases (в правой части экрана) => Draft a new release
  4. Нажать Choose a tag и создать новый тег формата vX.X.X, где вместо X.X.X нужно подставить требуемую версию OpenWRT, например, v23.05.4
  5. Выбрать в качестве target ветку feat/build-for-all-devices
  6. Ввести Release title
  7. Нажать внизу зеленую кнопку Publish release

Для публичных репозиториев Github предоставляет неограниченное по времени использование раннеров, у меня запускалось до 20 параллельных джоб. Каждая джоба выполняется около 2 часов, общее время на сборку около 10 часов. В случае возникновения ошибок в одной джобе, будут отменены все незавершенные - в этом случае на вкладке Actions можно выбрать неудавшийся запуск и нажать Re-run failed jobs

Сборка пакетов под определенную платформу

Как запустить сборку пакетов для определенной платформы можно посмотреть в инструкции на вики. Сборка под одно устройство займет около 2 часов.

Automatic configuration of AmneziaWG for OpenWRT version 23.05.0 and newer

For automatic configuration, I recommend using the script from the user itdog. This script allows you to automatically download the necessary packages from those collected here and configure point-by-point bypass of blocking by domains (instructions in Russian).

Building packages for all devices that support OpenWRT

A script has been added to the repository in the feat/build-for-all-devices branch that parses data on supported platforms from the OpenWRT page and automatically starts building AmneziaWG packages for all devices. At the moment I have collected packages for all devices for OpenWRT versions:

  1. 23.05.0
  2. 23.05.1
  3. 23.05.2
  4. 23.05.3
  5. 23.05.4

I also ran the build for version 22.03.7, but the build ended with an error for two platforms. Since this is a fairly old version of OpenWRT, I did not bother to figure out what the problem was.

Selecting packages for your device

In accordance with the paragraph Specify variables for builds (instructions in Russian) determine target and subtarget of your device. Then go to the release page corresponding to your OpenWRT version, then search the page (Ctrl+F) to find 3 packages whose names end in target_subtarget.ipk corresponding to your device.

How to run a build for all supported devices

  1. Create a fork of this repository
  2. Switch to the Actions tab and enable Github actions (they are disabled for forks by default)
  3. Then go to the Code tab => Releases (on the right side of the screen) => Draft a new release
  4. Click Choose a tag and create a new tag in the vX.X.X format, where you need to substitute the required OpenWRT version for X.X.X, for example, v23.05.4
  5. Select the feat/build-for-all-devices branch as the target
  6. Enter Release title
  7. Click the green Publish release button at the bottom

For public repositories, Github provides unlimited use of runners, I had up to 20 parallel jobs running. Each job takes about 2 hours, the total build time is about 10 hours. If errors occur in one job, all unfinished ones will be canceled - in this case, you can select the failed launch on the Actions tab and click Re-run failed jobs

Building packages for a specific platform

You can see how to start building packages for a specific platform in the wiki instructions (instructions in Russian). Building for one device will take about 2 hours.

awg-openwrt's People

Contributors

yury-sannikov avatar slava-shchipunov avatar leninalive avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.