Coder Social home page Coder Social logo

bird4static's Introduction

Bird4Static

Здесь выложены файлы для работы bird с сервисами antifilter.download или antifilter.network

Есть 3 режима работы - скачивание файла с нужного сервиса, установка бгп соединения с одним из сервисов, и работа только с пользовательскими файлами

Есть возможность настройки с одним впн, так и с двумя (один основной, второй резервный + пользовательское перенаправление в определенный)

Предназначено для роутеров Keenetic с установленным на них entware, а так же для любой системы с opkg пакетами, и у которых система расположена в каталоге */opt/

Установка

  1. Зайти по ssh в среду entware

  2. Выполнить:

      opkg install git git-http
      git clone https://github.com/DennoN-RUS/Bird4Static.git
      chmod +x ./Bird4Static/*.sh
      ./Bird4Static/install.sh 
    

    Далее выбирать нужные параметры.

Более подробная инструкция установки и описание тут

bird4static's People

Contributors

dennon-rus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bird4static's Issues

Dig возвращает ошибку при установке

Если использовать текущую версию bind-dig из entware, то возвращается ошибка dig: error while loading shared libraries: libisc-9.18.7.so: cannot open shared object file: No such file or directory:

~/Bird4Static # ./install.sh
Begin install? y/n
y
Do you want to use double vpn configuration? 0 - no (default) 1 - yes
0
Starting install for one vpn
Package bird1-ipv4 (1.6.8-2) installed in root is up to date.
Upgrading curl on root from 7.83.1-2 to 7.86.0-1...
Downloading http://bin.entware.net/mipselsf-k3.4/curl_7.86.0-1_mipsel-3.4.ipk
Package cron (4.1-5) installed in root is up to date.
Upgrading bind-dig on root from 9.18.1-2 to 9.18.7-1...
Downloading http://bin.entware.net/mipselsf-k3.4/bind-dig_9.18.7-1_mipsel-3.4.ipk
Package iprange (1.0.4-1) installed in root is up to date.
Installing whois (5.5.10-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/whois_5.5.10-1_mipsel-3.4.ipk
Installing libintl-full (0.21.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libintl-full_0.21.1-1_mipsel-3.4.ipk
Configuring libintl-full.
Configuring whois.
Configuring curl.
Configuring bind-dig.
cp: overwrite '/opt/root/Bird4Static/lists/user-isp.list'? y
cp: overwrite '/opt/root/Bird4Static/lists/user-vpn.list'? y
Witch service do you want to use
 1 - https://antifilter.download/list/allyouneed.lst
 2 - https://antifilter.network/download/ipsmart.lst
 or enter custom url
2

----------------------
br0: 192.168.1.1
eth3: xx.xxx.xx.xxx
eth2.4: xx.xxx.xx.xxx
ezcfg0: xx.xxx.xx.xxx
lo: 127.0.0.1
nwg2: xx.xxx.xx.xxx
nwg3: xx.xxx.xx.xxx
nwg5: xx.xxx.xx.xxx
ovpn_br3: xx.xxx.xx.xxx
Enter the name of the provider interface from the list above (for exaple ppp0 or eth3)
eth2.4
Enter the VPN interface name from the list above (for exaple ovpn_br0 or nwg0)
nwg5
dig: error while loading shared libraries: libisc-9.18.7.so: cannot open shared object file: No such file or directory

Если в скрипте install.sh жестко прописать версию bind-dig 9.18.1-2, то ошибки нет:
opkg install bird1-ipv4 curl cron http://bin.entware.net/mipselsf-k3.4/archive/bind-dig_9.18.1-2_mipsel-3.4.ipk iprange whois

Модель устройства: Ultra (KN-1810)
Версия ОС: 3.9.2

Захватывать поддомены

В user-vpn2.list добавляю домены, владельцы которых запрещают доступ из РФ. Сервер VPN2, само собой, расположен за пределами РФ.

Столкнулся с тем, что если добавить домен верхнего уровня, то через VPN проксируется именно он, но не его поддомены.

Например, если добавить vaio.com, то невозможно, скачать файл https://csdlcdn.vaio.com/supportfiles/update/SP000623.exe, т.к. трафик не направляется в VPN, ресурс видит, что я захожу через своего провайдера из России, и блокирует доступ. Только если явно добавить csdlcdn.vaio.com в user-vpn2.list, файл удаётся скачать.

Есть ли возможность при указании домена автоматически захватывать и все его поддомены?

AX3000v2

Добрый. Данный скрипт будет работать на ASUS AX3000v2? Можно адаптировать?

Не работает маршрутизация при включенной Политике доступа в Интернет.

На Keenetic скрипт работает прекрасно, ровно до того момента когда включаешь клиента в политику доступа в Интернет отличную от дефолтной. Можно ли сделать, чтобы маршрутизация работала и с политикой? Очень хочется чтоб QoS тоже функционировал одновременно с обходом блокировок. Политику для QoS настраиваю по вот этой инструкции https://forum.keenetic.com/topic/13540-the-bufferbloat-problem/

Segmentation Fault

Здравствуйте.
Подскажите, чем победить эту ошибку?

~/Bird4Static # ./scripts/add-bird4_routes.sh 
patching file /opt/etc/bird4-force-isp.list
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Restarting bird

Роутер Xiaomi Mi R3G, прошивка Keenetic

Игнорируется user-isp.list

Здравствуйте!
Потерялся доступ к сайту lknpd.nalog.ru, похоже, прокидывается через VPN, и блокируется хостом.
Добавил в user-isp.list строки:

lknpd.nalog.ru
213.24.64.181
213.24.64.0/24

пропатчил списки:

~/Bird4Static # ./scripts/add-bird4_routes.sh 
patching file /opt/etc/bird4-force-isp.list
Restarting bird

tracert:

tracert lknpd.nalog.ru

Tracing route to lknpd.gi.nalog.ru [213.24.64.181]
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  direct.router.home [10.0.0.1]
  2  10.4.0.74  reports: Destination host unreachable.

Trace complete.

Вообще, 10.4.0.74 — IP провайдера.

~/Bird4Static # ./uninstall.sh 
Begin uninstall? y/n
y
<...>

tracert после удаления B4S:

tracert lknpd.nalog.ru

Tracing route to lknpd.gi.nalog.ru [213.24.64.181]
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  direct.router.home [10.0.0.1]
  2     3 ms     3 ms     3 ms  ... [...]
  3     7 ms     4 ms     4 ms  ... [...]
  4    12 ms    11 ms    11 ms  46.61....
  5    12 ms    21 ms    12 ms  46.61....
<...>

ну, и после удаления, доступ появляется :)

Подскажите, что делаю не так?

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.