├── .circleci
└── config.yml
├── .gitignore
├── .gitmodules
├── CHANGELOG.md
├── CHANGELOG_fr.md
├── LICENSE
├── README.md
├── build.sh
├── config
├── arch_x86_64
├── image_busybox
├── image_common
├── image_i18n
├── kmod_common
├── kmod_network
├── kmod_usb
├── package_include
├── package_optionnal
└── package_overthebox
├── root
├── etc
│ ├── banner
│ ├── board.d
│ │ ├── 01_leds
│ │ └── 02_network
│ ├── i18n
│ │ └── fr-pc.kmap
│ ├── rc.button
│ │ └── power
│ ├── uci-defaults
│ │ └── uuid.defaults
│ └── udhcpc.user
└── lib
│ └── preinit
│ ├── 00_recovery
│ └── 90_inittab
└── sign.sh
/.circleci/config.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | jobs:
3 | build:
4 | machine: true
5 |
6 | environment:
7 | OTB_TARGET: x86_64
8 |
9 | working_directory: ~/build
10 |
11 | steps:
12 | - checkout
13 |
14 | - run:
15 | name: Prepare
16 | command: |
17 | sudo apt-get update
18 | sudo apt-get install -yq build-essential git unzip ncurses-dev libz-dev libssl-dev python subversion gettext gawk wget curl rsync perl
19 | echo "cache 2 $OTB_TARGET" > /tmp/cache-target
20 |
21 | - restore_cache:
22 | keys:
23 | - cache-{{ checksum "/tmp/cache-target" }}
24 |
25 | - run:
26 | name: Build
27 | no_output_timeout: 30m
28 | command: |
29 | export OTB_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
30 | sh build.sh -j2
31 |
32 | - run:
33 | name: Deploy
34 | command: |
35 | OTB_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
36 | ssh -p ${OTB_RSYNC_PORT:-22} deploy@$OTB_HOST mkdir -p deploy/$OTB_PATH || true
37 | rsync -av --delete-after -e "ssh -q -p ${OTB_RSYNC_PORT:-22}" source/bin/ deploy@$OTB_HOST:deploy/$OTB_PATH/ || true
38 | rm -rf source/bin
39 |
40 | - save_cache:
41 | key: cache-{{ checksum "/tmp/cache-target" }}
42 | paths:
43 | - "source"
44 | - "feeds"
45 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | sdk
2 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "openwrt"]
2 | path = openwrt
3 | url = https://github.com/ovh/overthebox-lede
4 | branch = otb-mptcp-21.02.5
5 | [submodule "feeds/packages"]
6 | path = feeds/packages
7 | url = https://github.com/openwrt/packages
8 | branch = openwrt-21.02
9 | [submodule "feeds/routing"]
10 | path = feeds/routing
11 | url = https://github.com/openwrt-routing/packages
12 | branch = openwrt-21.02
13 | [submodule "feeds/luci"]
14 | path = feeds/luci
15 | url = https://github.com/openwrt/luci
16 | branch = openwrt-21.02
17 | [submodule "feeds/overthebox"]
18 | path = feeds/overthebox
19 | url = ../overthebox-feeds
20 | branch = .
21 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to this project will be documented in this file.
4 |
5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7 |
8 | # v1.0
9 | ## [v1.0.4] - 2024-12-20
10 | ### Changed
11 | - openwrt: Add optional packages luci-proto-wireguard, wireguard-tools, luci-app-pbr, pbr.
12 | - luci: Speedtest can be execute from web interface.
13 | - luci: SQM values are displayed in network map.
14 | - luci: Parameter "physicallayer" is displayed and editable in section "network > interfaces".
15 | - luci: Parameter "MPTCP" is displayed in overview of section "network > interfaces".
16 | - luci: Service list shown in register page is ordered alphabetically
17 | - overthebox: Add tools otb-action-speedtest-udp to measure UDP bandwidth.
18 | - overthebox: Add support for interface parameter "physicallayer", which can be used to define link technology (4g, 5g, adsl, vdsl, ethernet, satelitte). This allows improvement in configuration tunning for auto-sqm and glorytun.
19 | - auto-sqm: Auto-detect physical layer.
20 | - auto-sqm: Automatically set SQM "link layer adaptation" on interface with "physicallayer" parameter set to ADSL/VDSL.
21 |
22 | ### Fixed
23 | - glorytun: Disable auto rate on interface with "physicallayer" set to 4G/5G. This option introduced some instability on this kind of links.
24 | - glorytun: Reduce max rate on interface with "physicallayer" set to ADSL/VDSL. The new rate accurately reflects bandwith limitation of this technologies.
25 | - overthebox: Suppress mmcli error output in scripts to avoid unnecessary logs.
26 | - luci: Fix an issue on multipath graph when a label with first character was a number.
27 | - otb-action-speedtest: Speedtest does not run on down interface and on UDP links as it was inaccurate.
28 | - auto-sqm: Fix behaviour on OTB v2b.
29 |
30 | ## [v1.0.3] - 2024-10-21
31 | ### Changed
32 | - system: Upgrade to [openWRT 23.05.5](https://openwrt.org/releases/23.05/notes-23.05.5)
33 | - system: Update luci feeds to [c344ad02a06a92fb9d8fab237cfc878a06b71ffd](https://github.com/openwrt/luci/tree/c344ad02a06a92fb9d8fab237cfc878a06b71ffd)
34 | - system: Update package feeds to [df37b4e764207e82347c38f1efa4f0fd2c87d4ab](https://github.com/openwrt/packages/tree/df37b4e764207e82347c38f1efa4f0fd2c87d4ab)
35 | - system: Update routing feeds to [e351d1e623e9ef2ab78f28cb1ce8d271d28c902d](https://github.com/openwrt/routing/tree/e351d1e623e9ef2ab78f28cb1ce8d271d28c902d)
36 | - mptcpd: Upgrade to [v0.12](https://github.com/multipath-tcp/mptcpd/releases/tag/v0.12)
37 | - otb-action-speedtest: Change default behavior to use interactive formatting, use -j parameter for json output
38 |
39 | ### Fixed
40 | - glorytun: Take in account link set in backup
41 | - glorytun: Use auto rate which improve behaviour
42 | - overthebox: Suppress mmcli error output in scripts to avoid unnecessary logs
43 | - luci: Fix an issue on multipath graph when a label with space was set
44 | - otb-action-speedtest: Script output a compliant json when used with -j parameter
45 | ### Removed
46 | - luci: Removed deprecated traffic control options from interface configuration pages.
47 |
48 | ## [v1.0.2] - 2024-10-02
49 | ### Added
50 | - luci: add help section, with links to ovhcloud & openwrt documentation
51 | - luci: MPTCP status is visible in overview
52 | - openwrt: Add utility package qmi-utils, luci-proto-qmi, hwinfo, lscpu, pciutils and usbutils
53 | - openwrt: Add kernel module kmod-usb-storage-uas
54 | - openwrt: Add optionnal package minicom, speedtest-nperf
55 |
56 | ### Changed
57 | - luci: Improve random color generation in graph
58 | - luci: Graph in overview section include all available interfaces
59 | - otb-lte-watchdog: Program is properly daemonize
60 |
61 | ### Fixed
62 | - otb-tracker: LTE module is discovered automatically and no more hardcoded
63 | - luci: Overview don't crash if an interface do not have an associated device
64 | - luci: Remove service preload limit
65 | - overthebox: xtun is removed from configuration on upgrade from v0.9
66 | - lte: Interface is correctly configure on first boot
67 | - lte: Interface metrics are set higher than ethernet interface
68 |
69 | ### Removed
70 | - luci: Remove realtime graph section in overthebox
71 |
72 | ## [v1.0.1] - 2024-08-08
73 | ### Added
74 | - luci: serviceID can now be copy/paste on register page
75 | - luci: add luci-app-nlbwmon
76 | - speedtest: reimplement otb-action-speedtest with librespeed
77 |
78 | ### Changed
79 | - autoqos: Various improvement on autoqos, to set automatically SQM on low bandwidth links
80 | - speedtest: update otb-test-download-shadowsocks to use librespeed
81 |
82 | ### Fixed
83 | - luci: Replace deprecated ovh theme by bootstrap on upgrade
84 | - system: File rc.local.user is no more override on upgrade
85 | - glorytun: small fix on a specific case on 4G without internet connectivity
86 |
87 | ### Removed
88 | - Removed package bandwidth replaced by luci-app-nlbwmon
89 |
90 | ## [v1.0.0] - 2024-06-05
91 | ### Changed
92 | - openwrt: Upgrade to 23.05.2
93 | - openwrt: Upgrade linux kernel to 5.15.137 with MPTCPv1 upstream
94 | - openwrt: Update packages to support [nftables](https://openwrt.org/docs/guide-user/firewall/misc/nftables)
95 | - mptcp: Migration to MPTCPv1, official linux kernel implementation of [MPTCP](https://www.mptcp.dev/)
96 | - glorytun: Upgrade to v0.3.4 a version planned for never released v0.7, this remove glorytun TCP tunnel all traffic is now transmit through a unique UDP tunnel
97 | - shadowsocks-libev: Upgrade to support MPTCPv1
98 | - qos: Migration to cake, which allow a better QoS configuration out-of-the-box, without user intervention
99 | - uqmi: Improve integration of uqmi to support LTE nvme module
100 |
101 | ### Removed
102 | - Removed glorytun-tcp, replaced by a unique UDP tunnel
103 | - Removed iptables, replaced by netfilter
104 | - Removed MPTCPv0, linux kernel doesn't include patch to support this implementation
105 |
106 | # v0.9
107 |
108 | **Device with a unique ethernet interface are no more supported**
109 |
110 | ## [v0.9.4] - 2024-06-05
111 | ### Fixed
112 | - luci: Registration don't block if a service doesn't have an associated device
113 |
114 | ## [v0.9.3] - 2024-02-22
115 | ### Added
116 | - luci: Add French translation on OverTheBox section
117 | - arp-scan: Add package in available optionnal package
118 |
119 | ### Fixed
120 | - luci: Graph for wwan0 interface are shown correctly
121 | - luci: Registration wait correctly for service activation
122 |
123 | ## [v0.9.2] - 2024-01-16
124 | ### Added
125 | - luci: Enable French translation on openwrt luci pages (translation is not yet available on overthebox section)
126 | - luci: Add a progress bar on registration page which show registration step progression
127 | - luci: Interface can now be labeled in network section
128 | - luci: Add WAN graph in realtime graph section
129 | - luci: Add LAN graph in realtime graph section
130 | - luci: Add a button to reset OTB v2b switch configuration
131 | - openwrt: Add package qmi-utils and luci-proto-qmi to support LTE nvme card
132 |
133 | ### Changed
134 | - luci: Interfaces label are shown instead of interfaces name if it exists in overview section
135 | - luci: Replace service and wan view with a network map in overview section
136 | - luci: Board model is shorten for known hardware (OTB v2c, OTB v2b, Qemu)
137 | - luci: Interface label are preserved while editing switch configuration
138 | - luci: Some rpc call have been factorized in a dedicated tools, browser cache may need to be refreshed
139 |
140 | ### Fixed
141 | - luci: Vlan eth0.3 and eth0.4 are reserved for port 13 and port 14 to avoid issues while editing the switch
142 | - luci: Kernel logs are correctly shown
143 | - luci: Redirection to HTTPS is correclty enforced
144 | - luci: Interface containing a "-" do not break overview
145 | - openwrt: Redirection from overthebox.ovh is now working as intended
146 | - otb-remote: Username/password is correctly configured on LUCI for HTTPS access
147 |
148 | ## [v0.9.1] - 2023-11-14
149 | ### Added
150 | - luci-app-sqm: A new tool to manage QoS, its mostly useful on link which are impacted by high latency variations
151 | - luci-app-statistics: Which allow to collect more details statistics on otb systems
152 | - collectd: Add various optionnal plugin to expand data collection by luci-app-statistics
153 |
154 | ### Changed
155 | - openwrt: Upgrade LUCI web interface to openWRT 21.02 native version
156 | - openwrt: Enable HTTPS redirect for LUCI, modern browser are limiting JS in HTTP.
157 | - luci: Full rewrite of "OverTheBox" section in web interface
158 |
159 | ### Fixed
160 | - In case of Out-Of-Memory, we kernel panic. Before we were randomly killing processes which was silently degrading the system without a clear cut
161 | - Resolve a bug introduce on v0.9.0 on OTBv2c LEDS
162 |
163 | ## [v0.9.0] - 2023-05-17
164 | ### Changed
165 | - openwrt: Upgrade to 21.02.5
166 | - openwrt: Upgrade kernel to 5.4.217 patch with mptcp v0.96
167 | - openwrt: Update packages to support distributed switch architecture [DSA](https://openwrt.org/docs/guide-user/network/dsa/dsa-mini-tutorial)
168 | - dnsmasq: Add ovhcloud isp dns in default dnsmasq configuration
169 | - iperf3: Moved as a dependency of overthebox package
170 | - otb-diagnostics: Backport never released v0.7 improvement
171 | - otb-tracker: Backport never released v0.6.34 improvement
172 | - otb-remote : Migrate from rsa to ed25519 for device key. This as no impact on customer side, ed25519 is not yet supported for customer key, this is only used to setup a ssh tunnel between an overthebox and our remote-access servers.
173 |
174 | ### Removed
175 | - Remove deprecated packages graph, cherrytrail-gpio-powerbutton
176 | - Remove explicit include of libcap package (this was a fix for v0.8 on openwrt 19.07)
177 |
178 | ### Fixed
179 | - Resolve an issue with ip2asn which was not setting correctly wan interface whois information
180 | - Fork iperf3 to keep v3.7.1 version, due to compilation issue with openwrt 21.02 upstream package
181 | - Import udhcpc.user config file directly from overthebox root directory to avoid a conflict with upstream package
182 |
183 | # v0.8
184 | ## [v0.8.1] - 2023-11-21
185 | ### Added
186 | - Add python3 support
187 |
188 | ### Removed
189 | - Deletion of deprecated package graph
190 |
191 | ### Fixed
192 | - Resolve a bug on opkg which was sometime failing due to absence of ipv6
193 |
194 | ## [v0.8.0] - 2023-04-18
195 | ### Added
196 | - Add otb-v2c package which include specific customization for this platform
197 |
198 | ### Changed
199 | - Upgrade openWRT to 19.07.10
200 | - Upgrade linux kernel to 4.14.276 patch with MPTCP v0.94
201 | - Replace OTB v2b package swconfig based on python2 to a C implementation
202 | - Use official openwrt package jq and dnsmasq instead of our own fork
203 | - Various improvement on build script and openWRT configuration generation
204 |
205 | ### Removed
206 | - Deletion of deprecated packages yara, svfs, otb-full and otb in image
207 | - Remove configuration for unsupported targets : mipsel32 and neoplus2
208 |
209 | ### Fixed
210 | - Resolve a bug on OTB v2b where a LTE USB modem was not correctly detected at boot
211 | - Hotspot sharing with an iPhone on iOS 14 and superior is working again
212 |
213 | # v0.6
214 | ## [v0.6.35] - 2023-04-18
215 | ### Added
216 | - Add package otb-graph, this is plan to be a replacement for graph package. This is used to retrieve necessary information to realize bandwidth and system usage graphics on customer panel.
217 | - Add action otb-action-qos, which allow to determine automatically a correct "traffic control" value on each WAN interfaces.
218 | - Add package Nano by default in image.
219 | - Add optional packages : prometheus-node-exporter-lua-x. Those packages are not installed by default, but can be installed using opkg.
220 |
221 | ### Changed
222 | - Update official openwrt 18.06 packages.
223 | - Move functional code of otb-action-speedtest to lib/overthebox. This change has no impact on the behavior of action otb-action-speedtest.
224 | - Use git module to build an image
225 |
226 | ### Fixed
227 | - Resolve an issue with jq parser, which was generating a large amount of logs if wan interfaces where unreachable.
228 | - Resolve a bug on LUCI web interface, which was showing 0.0.0.0 instead of OverTheBox service public IP.
229 | - Resolve a bug with action otb-action-sysupgrade which was not retrieving the correct URL to download an image if an URL was not provide as an argument.
230 |
231 |
232 | ## [v0.6.33] - 2021-09-24
233 |
234 | ### Added
235 | - Use of new OVHcloud provisioning URL
236 |
237 | ### Fixed
238 | - Do not print interface to change DHCP if the device has more than one ethernet port
239 | - Upgrade of the shadowsocks-libev version to solve some memory leak problems
240 | - Fix for otb-action-speedtest that sometimes returns 0
241 | - Minor fixes
242 |
243 | ## [>= v0.6.32] - 2021-02-06
244 |
245 | The version inferior at v0.6.33 are no more supported due to changed in our provisionning infrastructure
246 |
--------------------------------------------------------------------------------
/CHANGELOG_fr.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | Tout les changements notable de ce projet seront documenté dans ce fichier
4 |
5 | Le format est basé sur [Keep a Changelog](https://keepachangelog.com/fr/1.1.0/),
6 | et le projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7 |
8 | # v1.0
9 | ## [v1.0.4] - 2024-12-20
10 | ### Modifications
11 | - openwrt: Ajout des paquets optionnels luci-proto-wireguard, wireguard-tools, luci-app-pbr, pbr.
12 | - luci: L'action otb-action-speedtest peut être éxécutée depuis l'interface web.
13 | - luci: Les valeurs SQM sont affichées sur la carte réseau.
14 | - luci: Le paramètre "physicallayer" est affiché et modifiable dans la section "réseau > interfaces".
15 | - luci: Le paramètre MPTCP est affiché dans l'overview de la section "réseau > interface".
16 | - luci: La liste des services affichés sur la page enregistrement sont ordonné alphabétiquement.
17 | - overthebox: Ajout de l'outil otb-action-speedtest-udp pour mesurer la bande passante UDP.
18 | - overthebox: Ajout du support du paramètre "physicallayer", ce paramètre permet de mieux définir la technologie des liens (4g, 5g, adsl, vdsl, ethernet, satelitte). Cela permet d'optimiser la configuration d'auto-sqm, ainsi que glorytun.
19 | - auto-sqm: Configuration automatique du paramètre "physicallayer".
20 | - auto-sqm: Configuration automatique du paramètre SQM "link layer adaptation" sur les interfaces avec le paramètre "physicallayer" positionné sur ADSL/VDSL.
21 |
22 | ### Corrections
23 | - glorytun: Désactivation de l'option "auto rate" sur les interfaces avec le paramètre "physicallayer" positionné sur 4G / 5G. Ce paramètre introduit des instablilités sur ce type de liens.
24 | - glorytun: Réduction du paramètre "max rate" sur les interfaces avec le paramètres "physicallayer" positionné sur ADSL/VDSL. Le nouveau ratio réflète plus précisément les limitations de bande passante de ces technologies.
25 | - overthebox: Les erreurs de l'outil mmcli ne sont plus prises en compte dans les scripts pour éviter des logs inutiles.
26 | - luci: Résolution d'un problème sur le graph multipath quand l'interface utilise un label avec un chiffre en premier charactère.
27 | - otb-action-speedtest: Le speedtest ne s'exécute plus sur les interfaces sans connectivité, ainsi que sur les liens UDP, les résultats sur ce type de lien étant inexacte.
28 | - auto-sqm: Correction du comportement sur OTB v2b.
29 |
30 | ## [v1.0.3] - 2024-10-21
31 | ### Modifications
32 | - system: Mise à jour vers [openWRT 23.05.5](https://openwrt.org/releases/23.05/notes-23.05.5)
33 | - system: Mise à jour des feeds luci vers [c344ad02a06a92fb9d8fab237cfc878a06b71ffd](https://github.com/openwrt/luci/tree/c344ad02a06a92fb9d8fab237cfc878a06b71ffd)
34 | - system: Mise à jour des feeds package vers [df37b4e764207e82347c38f1efa4f0fd2c87d4ab](https://github.com/openwrt/packages/tree/df37b4e764207e82347c38f1efa4f0fd2c87d4ab)
35 | - system: Mise à jour des feeds routing vers [e351d1e623e9ef2ab78f28cb1ce8d271d28c902d](https://github.com/openwrt/routing/tree/e351d1e623e9ef2ab78f28cb1ce8d271d28c902d)
36 | - mptcpd: Mise à jour vers [v0.12](https://github.com/multipath-tcp/mptcpd/releases/tag/v0.12)
37 | - otb-action-speedtest: Par défaut, le script utilise le format interactif, ajout du paramètre -j pour format json.
38 |
39 | ### Corrections
40 | - glorytun: Prise en compte des liens mis en backup
41 | - glorytun: Passage du rate limit en auto, ce qui améliore le comportement
42 | - overthebox: Les erreurs de l'outil mmcli ne sont plus prises en compte dans les scripts pour éviter des logs inutiles
43 | - luci: Résolution d'un problème sur le graph multipath quand l'interface utilise un label avec un espace
44 | - otb-action-speedtest: Le script renvoie un json au format correct lorsqu'il est utilisé avec le paramètre -j
45 |
46 | ### Suppressions
47 | - luci: Les options de controle de traffic dépréciées ont été supprimé des pages de configurations d'interface
48 |
49 | ## [v1.0.2] - 2024-10-02
50 | ### Ajouts
51 | - luci: Ajout d'une section aide avec les liens vers la documentation ovhcloud et openwrt
52 | - luci: Le status de MPTCP est visible dans l'overview
53 | - openwrt: Ajout des paquets utilitaires qmi-utils, luci-proto-qmi, hwinfo, lscpu, pciutils et usbutils
54 | - openwrt: Ajout du module kernel kmod-usb-storage-uas
55 | - openwrt: Ajout des paquets optionnels minicom, speedtest-nperf
56 |
57 | ### Modifications
58 | - luci: Amélioration de la génération des couleurs des courbes des graphiques
59 | - luci: Les graphiques de la section overview inclus toutes les interfaces disponibles
60 | - otb-lte-watchdog: Le programme est correctement daemonize
61 |
62 | ### Corrections
63 | - otb-tracker: Le module LTE est découvert automatiquement et plus mis en dur dans le script
64 | - luci: La page overview ne tombe plus en erreur si une interface n'a pas de device associée
65 | - luci: Suppression de la limite de préchargement sur la page register
66 | - overthebox: xtun est correctement enlevé de la configuration lors de la mise à jour depuis la version v0.9
67 | - lte: L'interface est correctement configuré lors du premier démarrage
68 | - lte: L'inteface LTE n'est plus prioritaire par rapport aux interfaces Ethernet
69 |
70 | ### Suppressions
71 | - luci: Suppression de la section graphique temps réel
72 |
73 | ## [v1.0.1] - 2024-08-08
74 | ### Ajouts
75 | - luci: Le serviceID peut maintenant être copié/collé sur la page d'enregistrement
76 | - luci: Ajout du paquet luci-app-nlbwmon
77 | - speedtest: Réimplémentation d'otb-action-speedtest avec librespeed
78 |
79 | ### Modifications
80 | - autoqos: Différentes améliorations sur l'autoqos, SQM est automatiquement configurer sur les liens à faible bande passante.
81 | - speedtest: Mise à jour d'otb-test-download-shadowsocks pour utiliser librespeed
82 |
83 | ### Corrections
84 | - luci: Le theme déprécié ovh est remplacé automatiquement par le theme boostrap lors de la mise à jour
85 | - system: Le fichier rc.local.user n'est plus écrasé en cas de mise à jour
86 | - glorytun: Correction mineur sur un cas specifique sur lien 4G sans internet
87 |
88 | ### Suppressions
89 | - Suppression du paquet bandwidth remplacé par luci-app-nlbwmon
90 |
91 | ## [v1.0.0] - 2024-06-05
92 | ### Ajouts
93 | - openwrt: Mise à jour vers la version 23.05.2
94 | - openwrt: Mise à jour du kernel linux en version 5.15.137 avec support de MPTCPv1
95 | - openwrt: Mise à jour des paquets pour supporter [nftables](https://openwrt.org/docs/guide-user/firewall/misc/nftables)
96 | - mptcp: Migration vers MPTCPv1, implementation officielle de [MPTCP](https://www.mptcp.dev/) dans le kernel linux
97 | - glorytun: Mise à jour vers v0.3.4, une version plannifiée pour la version v0.7 qui n'a jamais été déployée, ceci enlève le tunnel glorytun TCP. L'ensemble du traffic transit désormais par un unique tunnel UDP
98 | - shadowsocks-libev: Mise à jour pour supporter MPTCPv1
99 | - qos: Migration vers cake, cela permet une meilleur gestion de la QoS sans intervention utilisateur
100 | - uqmi: Amélioration de l'intégration d'uqmi pour le support des modules LTE en NVME
101 |
102 | ### Suppressions
103 | - Suppression de glorytun-tcp, remplacé par un unique tunnel UDP
104 | - Suppression d'iptables, remplacé par netfilter
105 | - Suppression de MPTCPv0, le kernel linux n'inclus plus de patch pour supporter cette implémentation
106 |
107 | # v0.9
108 |
109 | **Les appareils avec un port ethernet unique ne sont plus supportés**
110 |
111 | ## [v0.9.4] - 2024-06-05
112 | ### Corrections
113 | - luci: La section enregistrement ne se bloque plus si un service n'a pas d'appareil associé
114 |
115 | ## [v0.9.3] - 2024-02-22
116 | ### Ajouts
117 | - luci: Ajout de la traduction française de la section overthebox
118 | - arp-scan: Ajout en temps que paquet optionnel
119 |
120 | ### Corrections
121 | - luci: Les graphiques pour l'interface wwan0 sont affichés correctement
122 | - luci: La section enregistrement attends correctement que le service soit activé
123 |
124 | ## [v0.9.2] - 2024-01-16
125 | ### Ajouts
126 | - luci: Activation de la traduction en Français de l'interface, la traduction n'est pas encore finalisée sur les pages de l'onglet OverTheBox
127 | - luci: Ajout d'une barre qui indique la progression dans les différentes étapes de l'enregistrement
128 | - luci: Un label peut être ajouté à une interface dans la section reséau
129 | - luci: Ajout des graphiques de trafic WAN dans la section graphiques temps réel
130 | - luci: Ajout des graphiques de trafic LAN dans la section graphiques temps réel
131 | - luci: Ajout du bouton pour réinitialiser la configuration du switch
132 | - openwrt: Ajout de qmi-utils et luci-proto-qmi utilisés pour le support des cartes LTE en nvme
133 |
134 | ### Modifications
135 | - luci: Si un label a été configuré sur l'interface c'est ce dernier qui sera montré plutôt que le nom de l'interface sur la page Aperçu
136 | - luci: Les sections Service et WAN ont été remplacées par une carte Réseau similaire à ce qui était présent sur la version v0.8.1
137 | - luci: Le modèle du matériel est raccourci pour les modèles connus : OTB v2c, OTB v2b, Qemu
138 | - luci: Les labels d'interfaces sont préservés lors de l'édition de la configuration du switch de l'OTB v2b
139 | - luci: Certain appels RPC de Luci ont été factorisés dans un fichier dédié, il peut être possible qu'un rafraîchissement du cache du navigateur soit nécessaire
140 |
141 | ### Corrections
142 | - luci: Les VLAN eth0.3 et eth0.4 sont désormais réservés au port 13 et 14, ceci pour éviter des soucis lors de l’édition de la configuration du switch
143 | - luci: Les logs Kernel sont affichés correctement
144 | - luci: La redirection en HTTPS est correctement activée
145 | - luci: Les interfaces contenant un "-" n'impactent plus l'affichage de la page Aperçu
146 | - openwrt: Le site overthebox.ovh redirige correctement vers l'interface de l'otb
147 | - otb-remote: Le nom d'utilisateur et le mot de passe sont correctement configurés sur LUCI pour l'accès à distance en HTTPS
148 |
149 | ## [v0.9.1] - 2023-11-14
150 | ### Ajouts
151 | - luci-app-sqm: Un nouvel outil pour gérer la QoS, surtout utile pour des liens sujets à de fortes variations de latences.
152 | - luci-app-statistics: Permet d'obtenir des statistiques plus détaillées sur le système de l'otb
153 | - collectd: Ajout d'une sélection de packages optionnels pour étendre les statistiques affichées par luci-app-statistics
154 |
155 | ### Modifications
156 | - openwrt: Mise à jour de LUCI vers la version native d'openWRT 21.02
157 | - openwrt: L'interface web redirige automatiquement vers le https, les navigateurs modernes brident fortement JavaScript en http.
158 | - luci: Refonte complète des pages du menu "OverTheBox" de l'interface web
159 |
160 | ### Corrections
161 | - En cas de dépassement mémoire l'overthebox plante. Avant ce fix lors d'un dépassement mémoire les processus étaient arrêtés aléatoirement ce qui ne permettait pas de détecter le souci immédiatement.
162 | - Résolution d'un bug sur les leds de l'OTB v2c introduit en version v0.9.0
163 |
164 | ## [v0.9.0] - 2023-05-17
165 | ### Ajouts
166 | - openwrt: Mise à jour en 21.02.5
167 | - openwrt: Mise à jour du noyau linux en 5.4.217 patché avec mptcp v0.96
168 | - openwrt: Mise à jour des packages pour le support de Distributed Switch Architecture [DSA](https://openwrt.org/docs/guide-user/network/dsa/dsa-mini-tutorial)
169 | - dnsmasq: Utilise désormais par défaut les DNS d'OVHcloud
170 | - iperf3: Est désormais une dépendance du package overthebox
171 | - otb-diagnostics: Mise à jour avec les améliorations développées pour la version v0.7 (jamais mise en production)
172 | - otb-tracker: Mise à jour avec les améliorations développées pour la version v0.6.34 (jamais mise en production)
173 | - otb-remote : Migration des clés SSH utilisées par l'OTB de RSA vers ed25519. Ces clés sont utilisées pour monter un accès à distance entre le serveur d'accès distant et l'OTB. Elles améliorent la sécurité mais n'ont pas d'impact sur votre utilisation de l'outil d'accès à distance. L'outil à distance ne supporte toujours pas pour le moment les clés au format ed25519
174 |
175 | ### Suppressions
176 | - Suppression des packages dépréciés : graph et cherrytrail-gpio-powerbutton
177 | - libcap n'est plus inclus explicitement, ceci était pour résoudre un bug sur la v0.8
178 |
179 | ### Corrections
180 | - Résolution d'un bug sur IP2ASN qui ne remplissait pas correctement le champ WHOIS d'une interface WAN
181 | - Fork d'iperf3 en version v3.7.1, le package officiel présentant des problèmes de compilation
182 | - Le fichier de configuration udhcpc.user est directement importé depuis le dossier /root du repo overthebox pour éviter des conflits avec le package officiel
183 |
184 | # v0.8
185 | ## [v0.8.1] - 2023-11-21
186 | ### Ajouts
187 | - Ajout du support python3
188 |
189 | ### Suppressions
190 | - Suppression du package déprecié graph
191 |
192 | ### Corrections
193 | - Correction d'un soucis sur opkg à cause de l'absence d'IPv6
194 |
195 | ## [v0.8.0] - 2023-04-18
196 | ### Ajouts
197 | - Ajout du package otb-v2c qui contient certaines customisations spécifiques à cette plateforme
198 |
199 | ### Modifications
200 | - Mise à jour du système openWRT vers la version 19.07.10
201 | - Mise à jour du kernel linux vers 4.14.276 patché pour inclure MPTCP v0.94
202 | - Remplacement du package swconfig en python2 de l'OTB v2B par une implémentation en C
203 | - Utilisation des packages jq et dnsmasq officiels à la place de la version présente dans les feeds overthebox
204 | - Diverses améliorations sur le scripts de build et l'organisation des fichiers utilisés pour générer la configuration de l'image openWRT
205 |
206 | ### Suppressions
207 | - Suppression des packages depreciés yara, svfs, otb-full et otb de l'image
208 | - Suppression des configurations pour les architectures non supporté : mipsel32 et neoplus2
209 |
210 | ### Corrections
211 | - Résolution d'un bug sur OTB v2B où une clé USB LTE n'est pas automatiquement détectée au boot
212 | - Le partage de connexion avec un iPhone sous iOS14 ou supérieur est de nouveau fonctionnel
213 |
214 | # v0.6
215 | ## [v0.6.35] - 2023-04-18
216 | ### Ajouts
217 | - Ajout du package otb-graph, à terme ce package va remplacer le package graph. Il est utilisé pour remonter les informations nécessaires à la réalisation des graphiques des débits et d'utilisation des ressources systèmes présents sur l'espace client
218 | - Ajout de l'action otb-action-qos qui permet de déterminer et d'activer automatiquement le "traffic control" sur les interfaces WAN
219 | - Ajout du package Nano, installé par défaut dans l'image en plus de vim
220 | - Ajout des packages optionnels : prometheus-node-exporter-lua-x, ces packages ne sont pas disponibles directement dans l'image mais peuvent être installés grâce à l'utilitaire opkg
221 |
222 | ### Modifications
223 | - Mise à jour des packages officiels d'openwrt 18.06
224 | - Déplacement du code fonctionnel otb-action-speedtest vers lib/overthebox. Ce changement n'a pas d'incidence sur le fonctionnement de l'action otb-action-speedtest
225 | - Utilisation des modules git pour générer le build de l'image
226 |
227 | ### Corrections
228 | - Résolution d'un bug où le parser json jq génère beaucoup de log lorsque les interfaces réseaux ne sont pas disponibles
229 | - Résolution d'un bug sur l'interface luci qui affichait 0.0.0.0 au lieu de l'adresse IP publique du service OverTheBox
230 | - Résolution d'un bug de l'action otb-action-sysupgrade qui ne récupère pas la bonne URL d'image lorsque aucune URL n'est fournie en argument
231 |
232 | ## [v0.6.33] - 2021-09-24
233 | ### Modifications
234 | - Mise à jour de l'URL du provisionning OVHcloud
235 |
236 | ### Corrections
237 | - Pas d'affichage de l'interface pour changer le DHCP si l'appareil a plus d'un port ethernet
238 | - Mise à jour de la version de shadowsocks-libev pour résoudre un soucis de fuite mémoire
239 | - Correction d'otb-action-speedtes qui affiché parfois 0
240 | - Autres corrections mineures
241 |
242 | ## [>= v0.6.32] - 2021-02-06
243 | Les versions inférieures à v0.6.33 ne sont plus supporté suite à un changement sur notre infrastructure de provisioning
244 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | {one line to give the program's name and a brief idea of what it does.}
635 | Copyright (C) {year} {name of author}
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | {project} Copyright (C) {year} {fullname}
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # OverTheBox
2 |
3 | Version: v1.0.4
4 |
5 | OverTheBox is an open source solution developed by OVHcloud to aggregate and encrypt multiple internet connections and terminates it over OVHcloud infrastructure which make clients benefit security, reliability, net neutrality, as well as dedicated public IPv4.
6 |
7 | The aggregation is based on MPTCP, which is ISP, WAN type, and latency independent "whether it was Fiber, VDSL, SHDSL, ADSL or even 4G", different scenarios can be configured to have either aggregation or failover based on MPTCP.
8 |
9 | The solution takes advantage of the OpenWRT system, which is user friendly and also adds the possibility of installing other packages like VPN, QoS, routing protocols, monitoring, etc. through web-interface or terminal.
10 |
11 | More informations on our commercial offer is available here:
12 | [https://www.ovhtelecom.fr/overthebox/](https://www.ovhtelecom.fr/overthebox/)
13 |
14 | ## Changelog
15 |
16 | * [English](CHANGELOG.md)
17 | * [Français](CHANGELOG_fr.md)
18 |
19 | ## Install from pre-compiled images
20 |
21 | Guide to install the image is available in french [here](https://docs.ovh.com/fr/overthebox/).
22 | You can download all supported images [here](http://downloads.overthebox.net/).
23 |
24 | ### On Linux
25 |
26 | Plug a USB drive, find the device you want to flash the image on using `dmesg`, `lsblk`,`fdisk -l` or the tool your most comfortable with.
27 |
28 | **This example will use `/dev/sdX` as the targeted block device, you have to change the following commands with your own device name**
29 |
30 | ```sh
31 | # Download the lastest master's image
32 | wget http://downloads.overthebox.net/develop/targets/x86/64/latest.img.gz
33 | # Extract and flash the image on your device
34 | gunzip -c latest.img.gz | sudo dd of=/dev/sdX bs=512
35 | sync
36 | ```
37 |
38 | Once you boot on your USB key, the image will be flashed by default on `mmcblk0`, see [the recovery section](#create-a-recovery-key) for more information.
39 |
40 | ## Install from source
41 |
42 | ### Dependencies
43 |
44 | You need a classical build environment like `build-essential` on Debian and `git`.
45 | Some feeds might not available over `git` but only via `subversion` or `mercurial`.
46 |
47 | On Debian you'll need to install the following:
48 |
49 | ```sh
50 | sudo apt install build-essential git unzip ncurses-dev libz-dev libssl-dev
51 | python subversion gettext gawk wget curl rsync perl
52 | ```
53 |
54 | ### Prepare and build
55 |
56 | ```sh
57 | git clone https://github.com/ovh/overthebox.git
58 | cd overthebox
59 | ./build.sh
60 | ```
61 |
62 | The script `build.sh` accepts all `make` arguments (like `-j`).
63 | When finished, files are located in the directory `openwrt/bin`.
64 |
65 | ### Custom arch build
66 |
67 | By default the build script will create the packages for the `x86_64` architecture.
68 | You can specify a custom build target by adding a `OTB_ARCH` environment variable to the build and the corresponding `config/$OTB_ARCH` file.
69 |
70 | To build the project for the raspberry pi 3:
71 |
72 | ```sh
73 | OTB_ARCH="rpi3" ./build.sh
74 | ```
75 |
76 | ## Create a recovery key
77 |
78 | By default the image will try to flash itself on a device called `mmcblk0`, this is the default block device on our hardwares.
79 |
80 | If you wish to target another block device you can add `recovery=sda` to the kernel command line to flash the image on `/dev/sda`.
81 | If the device doesn't exists, the recovery process is skipped.
82 | This [file](https://github.com/ovh/overthebox/blob/master/root/lib/preinit/00_recovery) is responsible for flashing the image before the system starts.
83 |
84 | ## Credits
85 |
86 | Our solution is mainly based on:
87 |
88 | * [OpenWRT](https://openwrt.org)
89 | * [MultiPath TCP (MPTCP)](https://www.mptcp.dev/)
90 | * [Shadowsocks](https://shadowsocks.org)
91 |
--------------------------------------------------------------------------------
/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | umask 0022
6 | unset GREP_OPTIONS SED
7 |
8 | OTB_ARCH=${OTB_ARCH:-x86_64}
9 |
10 | OTB_CONFIG_FILES=${OTB_CONFIG_FILES:-image_common image_busybox image_i18n kmod_common kmod_network kmod_usb "arch_${OTB_ARCH}"}
11 | OTB_PKGS_INCLUDE=$(cat "config/package_include")
12 | OTB_PKGS_OVERTHEBOX=$(cat "config/package_overthebox")
13 | OTB_PKGS_OPTIONNAL=$(cat "config/package_optionnal")
14 |
15 | for i in $OTB_CONFIG_FILES; do
16 | if [ ! -f "config/$i" ]; then
17 | echo "Config $i not found !"
18 | exit 1
19 | fi
20 | done
21 |
22 | # Fetch last overthebox-feeds
23 | git submodule sync
24 | git submodule update --init --recursive --remote feeds/overthebox
25 |
26 | printf "submodule status :\n%s\n" "$(git submodule status)"
27 |
28 | # CONFIG_VERSION parameters
29 | OTB_VERSION_SYSTEM=${OTB_VERSION_SYSTEM:=$(git describe --tag --always)}
30 | OTB_VERSION_FEEDS=${OTB_VERSION_FEEDS:=$(git -C feeds/overthebox describe --tag --always)}
31 | OTB_VERSION_OPENWRT=${OTB_VERSION_OPENWRT:=$(git -C openwrt describe --tag --always)}
32 | OTB_VERSION_REPO=${OTB_REPO:-http://downloads.overthebox.net/}
33 | OTB_VERSION_DIST=${OTB_VERSION_DIST:-OverTheBox}
34 | OTB_VERSION_HOME_URL=${OTB_VERSION_HOME_URL:-https://github.com/ovh/overthebox}
35 | OTB_VERSION_BUG_URL=${OTB_VERSION_BUG_URL:-https://github.com/ovh/overthebox/issue}
36 | OTB_VERSION_SUPPORT_URL=${OTB_VERSION_SUPPORT_URL:-https://community.ovh.com/c/telecom/overthebox}
37 | OTB_VERSION_MANUFACTURER=${OTB_VERSION_MANUFACTURER:-OVHcloud}
38 | OTB_VERSION_MANUFACTURER_URL=${OTB_VERSION_MANUFACTURER_URL:-https://ovhcloud.com/}
39 |
40 | # KERNEL_BUILD parameters
41 | OTB_KERNEL_BUILD_DOMAIN=${OTB_KERNEL_BUILD_DOMAIN:-https://ovh.github.io/cds/}
42 | OTB_KERNEL_BUILD_USER=${OTB_KERNEL_BUILD_USER:-cds}
43 |
44 | rm -rf openwrt/bin openwrt/files openwrt/tmp
45 | cp -rf root openwrt/files
46 |
47 | cat >> openwrt/files/etc/banner < openwrt/files/etc/otb-version
59 |
60 | cat > openwrt/feeds.conf < openwrt/.config <&1 | tee error.log
105 | exit 1
106 | fi
107 |
--------------------------------------------------------------------------------
/config/arch_x86_64:
--------------------------------------------------------------------------------
1 | CONFIG_TARGET_x86=y
2 | CONFIG_TARGET_x86_64=y
3 | CONFIG_TARGET_x86_64_Generic=y
4 | # CONFIG_TARGET_ROOTFS_EXT4FS is not set
5 | # CONFIG_TARGET_ROOTFS_TARGZ is not set
6 |
--------------------------------------------------------------------------------
/config/image_busybox:
--------------------------------------------------------------------------------
1 | CONFIG_BUSYBOX_CONFIG_ADDUSER=y
2 | CONFIG_BUSYBOX_CONFIG_ARPING=y
3 | CONFIG_BUSYBOX_CONFIG_ARP=y
4 | CONFIG_BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT=y
5 | CONFIG_BUSYBOX_CONFIG_BASE64=y
6 | CONFIG_BUSYBOX_CONFIG_BZIP2_SMALL=0
7 | CONFIG_BUSYBOX_CONFIG_BZIP2=y
8 | CONFIG_BUSYBOX_CONFIG_CHPASSWD=y
9 | CONFIG_BUSYBOX_CONFIG_DELUSER=y
10 | CONFIG_BUSYBOX_CONFIG_DIFF=y
11 | # CONFIG_BUSYBOX_CONFIG_DMESG is not set
12 | CONFIG_BUSYBOX_CONFIG_FEATURE_DATE_NANO=y
13 | CONFIG_BUSYBOX_CONFIG_FEATURE_DIFF_DIR=y
14 | CONFIG_BUSYBOX_CONFIG_FEATURE_PS_LONG=y
15 | CONFIG_BUSYBOX_CONFIG_FEATURE_REVERSE_SEARCH=y
16 | CONFIG_BUSYBOX_CONFIG_FEATURE_SEAMLESS_BZ2=y
17 | CONFIG_BUSYBOX_CONFIG_FEATURE_SEAMLESS_Z=y
18 | CONFIG_BUSYBOX_CONFIG_FEATURE_SHOW_THREADS=y
19 | CONFIG_BUSYBOX_CONFIG_FEATURE_STAT_FILESYSTEM=y
20 | CONFIG_BUSYBOX_CONFIG_FEATURE_STAT_FORMAT=y
21 | CONFIG_BUSYBOX_CONFIG_FEATURE_SYSLOG_INFO=y
22 | CONFIG_BUSYBOX_CONFIG_FEATURE_TAR_AUTODETECT=y
23 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_DECIMALS=y
24 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_SMP_CPU=y
25 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_SMP_PROCESS=y
26 | CONFIG_BUSYBOX_CONFIG_FEATURE_USE_TERMIOS=y
27 | CONFIG_BUSYBOX_CONFIG_HOSTNAME=y
28 | CONFIG_BUSYBOX_CONFIG_IOSTAT=y
29 | CONFIG_BUSYBOX_CONFIG_LOADKMAP=y
30 | CONFIG_BUSYBOX_CONFIG_NOHUP=y
31 | CONFIG_BUSYBOX_CONFIG_NPROC=y
32 | CONFIG_BUSYBOX_CONFIG_PKILL=y
33 | CONFIG_BUSYBOX_CONFIG_REALPATH=y
34 | CONFIG_BUSYBOX_CONFIG_SHA3SUM=y
35 | CONFIG_BUSYBOX_CONFIG_SHA512SUM=y
36 | CONFIG_BUSYBOX_CONFIG_STAT=y
37 | CONFIG_BUSYBOX_CONFIG_STTY=y
38 | CONFIG_BUSYBOX_CONFIG_TELNET=y
39 | CONFIG_BUSYBOX_CONFIG_TIMEOUT=y
40 | CONFIG_BUSYBOX_CONFIG_UNZIP=y
41 | # CONFIG_BUSYBOX_CONFIG_VI is not set
42 | CONFIG_BUSYBOX_CONFIG_WATCH=y
43 | CONFIG_BUSYBOX_CUSTOM=y
44 |
--------------------------------------------------------------------------------
/config/image_common:
--------------------------------------------------------------------------------
1 | CONFIG_DEVEL=y
2 | CONFIG_TOOLCHAINOPTS=y
3 | CONFIG_IMAGEOPT=y
4 | CONFIG_VERSIONOPT=y
5 | CONFIG_MUSL_DISABLE_CRYPT_SIZE_HACK=y
6 | CONFIG_RSYNC_zstd=y
7 | # CONFIG_GDB is not set
8 |
9 | CONFIG_GRUB_TITLE="OverTheBox"
10 | CONFIG_GRUB_SERIAL=""
11 | CONFIG_GRUB_TIMEOUT="0"
12 |
13 | # CONFIG_KERNEL_DEBUG_INFO is not set
14 | CONFIG_KERNEL_AIO=y
15 | CONFIG_KERNEL_DEVTMPFS=y
16 | CONFIG_KERNEL_DEVTMPFS_MOUNT=y
17 | CONFIG_KERNEL_FANOTIFY=y
18 | CONFIG_KERNEL_FHANDLE=y
19 | CONFIG_KERNEL_IPC_NS=y
20 | CONFIG_KERNEL_NAMESPACES=y
21 | CONFIG_KERNEL_NET_NS=y
22 | CONFIG_KERNEL_PID_NS=y
23 | CONFIG_KERNEL_USER_NS=y
24 | CONFIG_KERNEL_UTS_NS=y
25 |
26 | # CONFIG_KERNEL_SWAP is not set
27 |
28 | CONFIG_TARGET_IMAGES_PAD=y
29 | CONFIG_TARGET_ROOTFS_PARTSIZE=512
30 |
--------------------------------------------------------------------------------
/config/image_i18n:
--------------------------------------------------------------------------------
1 | CONFIG_LUCI_LANG_en=y
2 | CONFIG_LUCI_LANG_fr=y
3 |
--------------------------------------------------------------------------------
/config/kmod_common:
--------------------------------------------------------------------------------
1 | CONFIG_PACKAGE_ebtables-nft=y
2 | CONFIG_PACKAGE_kmod-8021q=y
3 | CONFIG_PACKAGE_kmod-arptables=y
4 | CONFIG_PACKAGE_kmod-ata-ahci=y
5 | CONFIG_PACKAGE_kmod-ata-core=y
6 | CONFIG_PACKAGE_kmod-block2mtd=y
7 | CONFIG_PACKAGE_kmod-bridge=y
8 | CONFIG_PACKAGE_kmod-br-netfilter=y
9 | CONFIG_PACKAGE_kmod-crypto-blake2b=y
10 | CONFIG_PACKAGE_kmod-crypto-cbc=y
11 | CONFIG_PACKAGE_kmod-crypto-ccm=y
12 | CONFIG_PACKAGE_kmod-crypto-chacha20poly1305=y
13 | CONFIG_PACKAGE_kmod-crypto-ctr=y
14 | CONFIG_PACKAGE_kmod-cryptodev=y
15 | CONFIG_PACKAGE_kmod-crypto-ecdh=y
16 | CONFIG_PACKAGE_kmod-crypto-gcm=y
17 | CONFIG_PACKAGE_kmod-crypto-gf128=y
18 | CONFIG_PACKAGE_kmod-crypto-ghash=y
19 | CONFIG_PACKAGE_kmod-crypto-rng=y
20 | CONFIG_PACKAGE_kmod-crypto-rsa=y
21 | CONFIG_PACKAGE_kmod-crypto-seqiv=y
22 | CONFIG_PACKAGE_kmod-crypto-sha1=y
23 | CONFIG_PACKAGE_kmod-crypto-sha512=y
24 | CONFIG_PACKAGE_kmod-crypto-user=y
25 | CONFIG_PACKAGE_kmod-ebtables-ipv4=y
26 | CONFIG_PACKAGE_kmod-ebtables-ipv6=y
27 | CONFIG_PACKAGE_kmod-ebtables=y
28 | CONFIG_PACKAGE_kmod-gpio-button-hotplug=y
29 | CONFIG_PACKAGE_kmod-gpio-cascade=y
30 | CONFIG_PACKAGE_kmod-hid-generic=y
31 | CONFIG_PACKAGE_kmod-hid=y
32 | CONFIG_PACKAGE_kmod-hwmon-gpiofan=y
33 | CONFIG_PACKAGE_kmod-hwmon-pwmfan=y
34 | CONFIG_PACKAGE_kmod-i2c-gpio-custom=y
35 | CONFIG_PACKAGE_kmod-i2c-gpio=y
36 | CONFIG_PACKAGE_kmod-i2c-i801=y
37 | CONFIG_PACKAGE_kmod-i2c-mux-gpio=y
38 | CONFIG_PACKAGE_kmod-i2c-mux=y
39 | CONFIG_PACKAGE_kmod-i2c-smbus=y
40 | CONFIG_PACKAGE_kmod-ifb=y
41 | CONFIG_PACKAGE_kmod-ikconfig=y
42 | CONFIG_PACKAGE_kmod-input-evdev=y
43 | CONFIG_PACKAGE_kmod-lib-zstd=y
44 | CONFIG_PACKAGE_kmod-loop=y
45 | CONFIG_PACKAGE_kmod-macsec=y
46 | CONFIG_PACKAGE_kmod-mhi-bus=y
47 | CONFIG_PACKAGE_kmod-mhi-pci-generic=y
48 | CONFIG_PACKAGE_kmod-mmc-spi=y
49 | CONFIG_PACKAGE_kmod-mmc=y
50 | CONFIG_PACKAGE_kmod-mux-core=y
51 | CONFIG_PACKAGE_kmod-mux-gpio=y
52 | CONFIG_PACKAGE_kmod-nf-ipt6=y
53 | CONFIG_PACKAGE_kmod-nf-nat6=y
54 | CONFIG_PACKAGE_kmod-nf-nathelper-extra=y
55 | CONFIG_PACKAGE_kmod-nf-nathelper=y
56 | CONFIG_PACKAGE_kmod-nfnetlink-log=y
57 | CONFIG_PACKAGE_kmod-nfnetlink-queue=y
58 | CONFIG_PACKAGE_kmod-nf-socket=y
59 | CONFIG_PACKAGE_kmod-nft-arp=y
60 | CONFIG_PACKAGE_kmod-nft-bridge=y
61 | CONFIG_PACKAGE_kmod-nft-connlimit=y
62 | CONFIG_PACKAGE_kmod-nft-dup-inet=y
63 | CONFIG_PACKAGE_kmod-nft-netdev=y
64 | CONFIG_PACKAGE_kmod-nft-queue=y
65 | CONFIG_PACKAGE_kmod-nft-socket=y
66 | CONFIG_PACKAGE_kmod-nft-tproxy=y
67 | CONFIG_PACKAGE_kmod-nft-xfrm=y
68 | CONFIG_PACKAGE_kmod-nvme=y
69 | CONFIG_PACKAGE_kmod-random-core=y
70 | CONFIG_PACKAGE_kmod-sched-connmark=y
71 | CONFIG_PACKAGE_kmod-scsi-core=y
72 | CONFIG_PACKAGE_kmod-sctp=y
73 | CONFIG_PACKAGE_kmod-sdhci=y
74 | CONFIG_PACKAGE_kmod-serial-8250=y
75 | CONFIG_PACKAGE_kmod-stp=y
76 | CONFIG_PACKAGE_kmod-tcp-bbr=y
77 |
--------------------------------------------------------------------------------
/config/kmod_network:
--------------------------------------------------------------------------------
1 | CONFIG_PACKAGE_kmod-3c59x=y
2 | CONFIG_PACKAGE_kmod-8139cp=y
3 | CONFIG_PACKAGE_kmod-8139too=y
4 | CONFIG_PACKAGE_kmod-alx=y
5 | CONFIG_PACKAGE_kmod-atl1c=y
6 | CONFIG_PACKAGE_kmod-atl1e=y
7 | CONFIG_PACKAGE_kmod-atl1=y
8 | CONFIG_PACKAGE_kmod-atl2=y
9 | CONFIG_PACKAGE_kmod-atlantic=y
10 | CONFIG_PACKAGE_kmod-b44=y
11 | CONFIG_PACKAGE_kmod-be2net=y
12 | CONFIG_PACKAGE_kmod-bnx2=y
13 | CONFIG_PACKAGE_kmod-bonding=y
14 | CONFIG_PACKAGE_kmod-dm9000=y
15 | CONFIG_PACKAGE_kmod-dummy=y
16 | CONFIG_PACKAGE_kmod-e1000e=y
17 | CONFIG_PACKAGE_kmod-e1000=y
18 | CONFIG_PACKAGE_kmod-e100=y
19 | CONFIG_PACKAGE_kmod-et131x=y
20 | CONFIG_PACKAGE_kmod-ethoc=y
21 | CONFIG_PACKAGE_kmod-fixed-phy=y
22 | CONFIG_PACKAGE_kmod-forcedeth=y
23 | CONFIG_PACKAGE_kmod-gigaset=y
24 | CONFIG_PACKAGE_kmod-hfcmulti=y
25 | CONFIG_PACKAGE_kmod-hfcpci=y
26 | CONFIG_PACKAGE_kmod-i40e=y
27 | CONFIG_PACKAGE_kmod-iavf=y
28 | CONFIG_PACKAGE_kmod-igbvf=y
29 | CONFIG_PACKAGE_kmod-igc=y
30 | CONFIG_PACKAGE_kmod-ipvlan=y
31 | CONFIG_PACKAGE_kmod-ixgbevf=y
32 | CONFIG_PACKAGE_kmod-ixgbe=y
33 | CONFIG_PACKAGE_kmod-lan743x=y
34 | CONFIG_PACKAGE_kmod-macvlan=y
35 | CONFIG_PACKAGE_kmod-natsemi=y
36 | CONFIG_PACKAGE_kmod-ne2k-pci=y
37 | CONFIG_PACKAGE_kmod-niu=y
38 | CONFIG_PACKAGE_kmod-of-mdio=y
39 | CONFIG_PACKAGE_kmod-pcnet32=y
40 | CONFIG_PACKAGE_kmod-phy-aquantia=y
41 | CONFIG_PACKAGE_kmod-phy-bcm84881=y
42 | CONFIG_PACKAGE_kmod-phy-broadcom=y
43 | CONFIG_PACKAGE_kmod-phylink=y
44 | CONFIG_PACKAGE_kmod-phy-marvell-10g=y
45 | CONFIG_PACKAGE_kmod-phy-marvell=y
46 | CONFIG_PACKAGE_kmod-phy-microchip=y
47 | CONFIG_PACKAGE_kmod-ppfe=y
48 | CONFIG_PACKAGE_kmod-qlcnic=y
49 | CONFIG_PACKAGE_kmod-r6040=y
50 | CONFIG_PACKAGE_kmod-r8101=y
51 | CONFIG_PACKAGE_kmod-r8125=y
52 | CONFIG_PACKAGE_kmod-r8126=y
53 | CONFIG_PACKAGE_kmod-r8168=y
54 | CONFIG_PACKAGE_kmod-r8169=y
55 | CONFIG_PACKAGE_kmod-sfc-falcon=y
56 | CONFIG_PACKAGE_kmod-sfc=y
57 | CONFIG_PACKAGE_kmod-sfp=y
58 | CONFIG_PACKAGE_kmod-sis190=y
59 | CONFIG_PACKAGE_kmod-sis900=y
60 | CONFIG_PACKAGE_kmod-skge=y
61 | CONFIG_PACKAGE_kmod-sky2=y
62 | CONFIG_PACKAGE_kmod-solos-pci=y
63 | CONFIG_PACKAGE_kmod-spi-ks8995=y
64 | CONFIG_PACKAGE_kmod-swconfig=y
65 | CONFIG_PACKAGE_kmod-switch-ar8xxx=y
66 | CONFIG_PACKAGE_kmod-switch-bcm53xx=y
67 | CONFIG_PACKAGE_kmod-switch-ip17xx=y
68 | CONFIG_PACKAGE_kmod-switch-rtl8306=y
69 | CONFIG_PACKAGE_kmod-switch-rtl8366rb=y
70 | CONFIG_PACKAGE_kmod-switch-rtl8366s=y
71 | CONFIG_PACKAGE_kmod-switch-rtl8367b=y
72 | CONFIG_PACKAGE_kmod-switch-rtl8367=y
73 | CONFIG_PACKAGE_kmod-tg3=y
74 | CONFIG_PACKAGE_kmod-tulip=y
75 | CONFIG_PACKAGE_kmod-veth=y
76 | CONFIG_PACKAGE_kmod-via-rhine=y
77 | CONFIG_PACKAGE_kmod-via-velocity=y
78 | CONFIG_PACKAGE_kmod-vmxnet3=y
79 | CONFIG_PACKAGE_kmod-wwan=y
80 |
--------------------------------------------------------------------------------
/config/kmod_usb:
--------------------------------------------------------------------------------
1 | CONFIG_PACKAGE_kmod-usb2-pci=y
2 | CONFIG_PACKAGE_kmod-usb2=y
3 | CONFIG_PACKAGE_kmod-usb3=y
4 | CONFIG_PACKAGE_kmod-usb-acm=y
5 | CONFIG_PACKAGE_kmod-usb-core=y
6 | CONFIG_PACKAGE_kmod-usb-dwc2-pci=y
7 | CONFIG_PACKAGE_kmod-usb-dwc2=y
8 | CONFIG_PACKAGE_kmod-usb-dwc3=y
9 | CONFIG_PACKAGE_kmod-usb-ehci=y
10 | CONFIG_PACKAGE_kmod-usb-hid=y
11 | CONFIG_PACKAGE_kmod-usb-net-aqc111=y
12 | CONFIG_PACKAGE_kmod-usb-net-asix-ax88179=y
13 | CONFIG_PACKAGE_kmod-usb-net-asix=y
14 | CONFIG_PACKAGE_kmod-usb-net-cdc-eem=y
15 | CONFIG_PACKAGE_kmod-usb-net-cdc-ether=y
16 | CONFIG_PACKAGE_kmod-usb-net-cdc-mbim=y
17 | CONFIG_PACKAGE_kmod-usb-net-cdc-ncm=y
18 | CONFIG_PACKAGE_kmod-usb-net-cdc-subset=y
19 | CONFIG_PACKAGE_kmod-usb-net-dm9601-ether=y
20 | CONFIG_PACKAGE_kmod-usb-net-hso=y
21 | CONFIG_PACKAGE_kmod-usb-net-huawei-cdc-ncm=y
22 | CONFIG_PACKAGE_kmod-usb-net-ipheth=y
23 | CONFIG_PACKAGE_kmod-usb-net-kalmia=y
24 | CONFIG_PACKAGE_kmod-usb-net-kaweth=y
25 | CONFIG_PACKAGE_kmod-usb-net-lan78xx=y
26 | CONFIG_PACKAGE_kmod-usb-net-mcs7830=y
27 | CONFIG_PACKAGE_kmod-usb-net-pegasus=y
28 | CONFIG_PACKAGE_kmod-usb-net-qmi-wwan=y
29 | CONFIG_PACKAGE_kmod-usb-net-rndis=y
30 | CONFIG_PACKAGE_kmod-usb-net-rtl8150=y
31 | CONFIG_PACKAGE_kmod-usb-net-rtl8152=y
32 | CONFIG_PACKAGE_kmod-usb-net-sierrawireless=y
33 | CONFIG_PACKAGE_kmod-usb-net-smsc75xx=y
34 | CONFIG_PACKAGE_kmod-usb-net-smsc95xx=y
35 | CONFIG_PACKAGE_kmod-usb-net-sr9700=y
36 | CONFIG_PACKAGE_kmod-usb-net=y
37 | CONFIG_PACKAGE_kmod-usb-phy-nop=y
38 | CONFIG_PACKAGE_kmod-usb-roles=y
39 | CONFIG_PACKAGE_kmod-usb-serial-ark3116=y
40 | CONFIG_PACKAGE_kmod-usb-serial-belkin=y
41 | CONFIG_PACKAGE_kmod-usb-serial-ch341=y
42 | CONFIG_PACKAGE_kmod-usb-serial-cp210x=y
43 | CONFIG_PACKAGE_kmod-usb-serial-cypress-m8=y
44 | CONFIG_PACKAGE_kmod-usb-serial-edgeport=y
45 | CONFIG_PACKAGE_kmod-usb-serial-ftdi=y
46 | CONFIG_PACKAGE_kmod-usb-serial-garmin=y
47 | CONFIG_PACKAGE_kmod-usb-serial-ipw=y
48 | CONFIG_PACKAGE_kmod-usb-serial-keyspan=y
49 | CONFIG_PACKAGE_kmod-usb-serial-mct=y
50 | CONFIG_PACKAGE_kmod-usb-serial-mos7720=y
51 | CONFIG_PACKAGE_kmod-usb-serial-mos7840=y
52 | CONFIG_PACKAGE_kmod-usb-serial-option=y
53 | CONFIG_PACKAGE_kmod-usb-serial-oti6858=y
54 | CONFIG_PACKAGE_kmod-usb-serial-pl2303=y
55 | CONFIG_PACKAGE_kmod-usb-serial-qualcomm=y
56 | CONFIG_PACKAGE_kmod-usb-serial-sierrawireless=y
57 | CONFIG_PACKAGE_kmod-usb-serial-simple=y
58 | CONFIG_PACKAGE_kmod-usb-serial-ti-usb=y
59 | CONFIG_PACKAGE_kmod-usb-serial-visor=y
60 | CONFIG_PACKAGE_kmod-usb-serial-wwan=y
61 | CONFIG_PACKAGE_kmod-usb-serial=y
62 | CONFIG_PACKAGE_kmod-usb-storage-uas=y
63 | CONFIG_PACKAGE_kmod-usb-storage=y
64 | CONFIG_PACKAGE_kmod-usb-wdm=y
65 |
--------------------------------------------------------------------------------
/config/package_include:
--------------------------------------------------------------------------------
1 | bmon
2 | bwm-ng
3 | comgt
4 | conntrack
5 | conntrackd
6 | dmesg
7 | dnsmasq
8 | ethtool-full
9 | fuse-utils
10 | gdb
11 | htop
12 | hwinfo
13 | iputils-ping
14 | libimobiledevice
15 | libustream-mbedtls
16 | libzstd
17 | lsblk
18 | lscpu
19 | luci-proto-modemmanager
20 | luci-proto-qmi
21 | mini_snmpd
22 | modemmanager
23 | mtr
24 | nano
25 | netcat
26 | nstat
27 | openssh-sftp-server
28 | pciutils
29 | px5g-mbedtls
30 | python3-light
31 | qmi-utils
32 | rng-tools
33 | rpcd-mod-rpcsys
34 | rsync
35 | screen
36 | setterm
37 | ss
38 | strace
39 | sysstat
40 | tc
41 | tcpdump
42 | usb-modeswitch
43 | usbmuxd
44 | usbutils
45 | vim-fuller
46 |
--------------------------------------------------------------------------------
/config/package_optionnal:
--------------------------------------------------------------------------------
1 | arp-scan
2 | arp-scan-database
3 | collectd-mod-conntrack
4 | collectd-mod-cpufreq
5 | collectd-mod-df
6 | collectd-mod-dhcpleases
7 | collectd-mod-disk
8 | collectd-mod-dns
9 | collectd-mod-ethstat
10 | collectd-mod-exec
11 | collectd-mod-ipstatistics
12 | collectd-mod-iptables
13 | collectd-mod-irq
14 | collectd-mod-logfile
15 | collectd-mod-lua
16 | collectd-mod-match-empty-counter
17 | collectd-mod-match-hashed
18 | collectd-mod-match-regex
19 | collectd-mod-match-timediff
20 | collectd-mod-match-value
21 | collectd-mod-mqtt
22 | collectd-mod-netlink
23 | collectd-mod-ntpd
24 | collectd-mod-ping
25 | collectd-mod-processes
26 | collectd-mod-protocols
27 | collectd-mod-sensors
28 | collectd-mod-smart
29 | collectd-mod-snmp
30 | collectd-mod-snmp6
31 | collectd-mod-sqm
32 | collectd-mod-swap
33 | collectd-mod-syslog
34 | collectd-mod-tcpconns
35 | collectd-mod-thermal
36 | collectd-mod-uptime
37 | collectd-mod-write-graphite
38 | collectd-mod-write-http
39 | kmod-pcengines-apuv2
40 | luci-app-pbr
41 | luci-proto-wireguard
42 | minicom
43 | pbr
44 | prometheus-node-exporter-lua
45 | prometheus-node-exporter-lua-hwmon
46 | prometheus-node-exporter-lua-nat_traffic
47 | prometheus-node-exporter-lua-netstat
48 | prometheus-node-exporter-lua-openwrt
49 | prometheus-node-exporter-lua-snmp6
50 | prometheus-node-exporter-lua-textfile
51 | prometheus-node-exporter-lua-thermal
52 | prometheus-node-exporter-lua-uci_dhcp_host
53 | prometheus-node-exporter-lua-wifi
54 | prometheus-node-exporter-lua-wifi_stations
55 | python3
56 | snmpd
57 | snmptrapd
58 | snmp-utils
59 | speedtest-netperf
60 | swconfig
61 | wireguard-tools
62 |
--------------------------------------------------------------------------------
/config/package_overthebox:
--------------------------------------------------------------------------------
1 | luci-mod-overthebox
2 | otb-autoroute
3 | otb-backup
4 | otb-diagnostics
5 | otb-leds
6 | otb-remote
7 | otb-tracker
8 | otb-auto-sqm
9 |
--------------------------------------------------------------------------------
/root/etc/banner:
--------------------------------------------------------------------------------
1 | ___ _____ _ ___
2 | / _ \__ _____ _ |_ _| |_ ___| _ ) _____ __
3 | ( (_) \ V / -_) '_|| | | ' \/ -_) _ \/ _ \ ' /
4 | \___/ \_/\___|_| |_| |_|\_\___|___/\___/_,_\
5 |
--------------------------------------------------------------------------------
/root/etc/board.d/01_leds:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # shellcheck disable=1091
3 | # vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
4 |
5 | . /lib/functions/uci-defaults.sh
6 |
7 | board_config_update
8 |
9 | case "$(board_name)" in
10 | pc-engines-pc-engines-apu*)
11 | ucidef_set_led_default "power" "power" "apu2:green:power" "1"
12 | ucidef_set_led_default "connectivity" "connectivity" "apu2:green:led2" "0"
13 | ucidef_set_led_default "service" "service" "apu2:green:led3" "0"
14 | ;;
15 | esac
16 | board_config_flush
17 |
18 | exit 0
19 |
--------------------------------------------------------------------------------
/root/etc/board.d/02_network:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # shellcheck disable=1091
3 | # vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
4 |
5 | . /lib/functions/system.sh
6 | . /lib/functions/uci-defaults.sh
7 |
8 | board_config_update
9 |
10 | board="$(cat /tmp/sysinfo/board_name)" 2>/dev/null
11 |
12 | case "$board" in
13 | *overthebox-v2b)
14 | # vlan 1 doesn't work and port 16 is not used so use it for a null role
15 | ucidef_add_switch "otbv2sw" "15t@eth0" "16:none" \
16 | "1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "6:lan" \
17 | "7:lan" "8:lan" "9:lan" "10:lan" "11:lan" "12:lan" \
18 | "17:lan" "18:lan" "13:wan13" "14:wan14"
19 | ;;
20 | *)
21 | ucidef_set_interface_lan "eth0"
22 | num=0
23 | for i in /sys/class/net/eth[!0]*; do
24 | [ -e "$i" ] || continue
25 | num=${i##*/eth}
26 | ucidef_set_interface "wan$num" ifname "eth$num" protocol "dhcp"
27 | done
28 | if [ "$num" = 0 ]; then
29 | ucidef_set_interface_macaddr "lan" "auto"
30 | fi
31 | ;;
32 | esac
33 |
34 | board_config_flush
35 |
36 | exit 0
37 |
--------------------------------------------------------------------------------
/root/etc/i18n/fr-pc.kmap:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ovh/overthebox/a96f5105e28a007a68c739302ab566a77e06c601/root/etc/i18n/fr-pc.kmap
--------------------------------------------------------------------------------
/root/etc/rc.button/power:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
3 |
4 | [ "$ACTION" = released ] || exit 0
5 |
6 | DELAY=5
7 | COUNT=5
8 |
9 | FILE="/tmp/otb-power-button"
10 | DATE=$(date +%s%3N)
11 | LIMIT=$((DATE-DELAY*1000))
12 |
13 | logger -t power.button "Power button pressed at $DATE"
14 |
15 | ( tail $FILE; echo "$DATE" ) > $FILE.tmp && mv $FILE.tmp $FILE
16 |
17 | awk "BEGIN{C=0} {if (\$1>=$LIMIT) C=C+1} END{exit C!=$COUNT}" $FILE || exit 0
18 |
19 | logger -t power.button "RESET !!"
20 |
21 | firstboot -y
22 | reboot
23 |
--------------------------------------------------------------------------------
/root/etc/uci-defaults/uuid.defaults:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # shellcheck disable=SC1090
3 | # vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
4 |
5 | count=0
6 |
7 | _get_uuid() {
8 | dd if="$1" bs=1 skip=440 count=4 2>/dev/null | hexdump -v -e '4/1 "%02x "'
9 | }
10 |
11 | read -r cmdline < /proc/cmdline || exit
12 |
13 | case "$cmdline" in
14 | *block2mtd=*)
15 | disk="${cmdline##*block2mtd=}"
16 | disk="${disk%%,*}"
17 | ;;
18 | *root=*)
19 | disk="${cmdline##*root=}"
20 | disk="${disk%% *}"
21 | ;;
22 | *)
23 | exit 0
24 | ;;
25 | esac
26 |
27 | case "$disk" in
28 | PARTUUID=[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]-02)
29 | uuid="${disk#PARTUUID=}"
30 | uuid="${uuid%-02}"
31 | for block in /sys/class/block/*; do
32 | [ -f "$block"/uevent ] || continue
33 | . "$block"/uevent
34 | [ "$DEVTYPE" = disk ] || continue
35 | # shellcheck disable=SC2046
36 | set -- $(_get_uuid /dev/"$DEVNAME")
37 | [ "$4$3$2$1" = "$uuid" ] || continue
38 | dev=/dev/"$DEVNAME"
39 | count=$((count+1))
40 | done
41 | ;;
42 | esac
43 |
44 | [ "$count" = 1 ] || exit
45 |
46 | umount_retry=60
47 |
48 | while grep -sq /boot /proc/mounts; do
49 | logger -t "$0" "Unmount /boot..."
50 | output=$(umount /boot 2>&1) && continue
51 | logger -t "$0" "Umount failed: $output"
52 | if [ "$umount_retry" = 0 ]; then
53 | logger -t "$0" "Force unmount..."
54 | umount -f /boot 1>/dev/null 2>/dev/null
55 | break
56 | fi
57 | umount_retry=$((umount_retry - 1))
58 | sleep 1
59 | done
60 |
61 | _mount() {
62 | mount -t vfat "$1" /mnt
63 | }
64 |
65 | _mount "$dev"p1 || _mount "$dev"1 || exit
66 |
67 | logger -t "$0" "Update MBR"
68 | dd if=/dev/urandom of="$dev" bs=1 count=4 seek=440 conv=notrunc || exit
69 | sync
70 |
71 | # shellcheck disable=SC2046
72 | set -- $(_get_uuid "$dev")
73 |
74 | logger -t "$0" "Update files ($uuid -> $4$3$2$1)"
75 | sed -i "s/$uuid/$4$3$2$1/" /mnt/efi/boot/boot.nsh /mnt/boot/grub/grub.cfg
76 |
77 | umount /mnt
78 | logger -t "$0" "Done"
79 |
--------------------------------------------------------------------------------
/root/etc/udhcpc.user:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # shellcheck disable=SC2154,SC1091,SC2039
3 | # vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
4 |
5 | _log() {
6 | logger -p daemon.info -t "udhcpc.user" "$@"
7 | }
8 |
9 | fix_ip() {
10 | original_ip="$ip"
11 |
12 | # Naively increment the last part of the IP to find an unused one
13 | while ip -4 -o addr | grep -s -v "$DEVICE" | grep -s -q "inet $ip/"; do
14 | ip="${ip%.*}.$((${ip##*.}+1))"
15 | done
16 |
17 | [ "$original_ip" = "$ip" ] && return 0
18 | ipcalc.sh "$ip" | grep -s -q "IP=$ip" || return 1
19 |
20 | deconfig_interface
21 | setup_interface
22 | }
23 |
24 | DEVICE="$interface"
25 |
26 | case "$1" in
27 | bound|renew) ;;
28 | *) exit 0 ;;
29 | esac
30 |
31 | [ "$INTERFACE" ] || exit 0
32 | [ "$DEVICE" ] || exit 0
33 | [ "$ip" ] || exit 0
34 | [ "$router" ] || exit 0
35 |
36 | _log "got udhcpc $1 on $INTERFACE"
37 |
38 | case "$INTERFACE" in
39 | *) fix_ip ;;
40 | esac
41 |
42 | [ -d /var/run/config.check ] || reload_config
--------------------------------------------------------------------------------
/root/lib/preinit/00_recovery:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # shellcheck disable=SC1090,SC1091
3 |
4 | TARGET=mmcblk0
5 |
6 | if read -r CMD < /proc/cmdline; then
7 | case "$CMD" in
8 | *rootfstype=ubifs*)
9 | return
10 | ;;
11 | *recovery=*)
12 | TARGET="${CMD##*recovery=}"
13 | TARGET="${TARGET%% *}"
14 | ;;
15 | esac
16 | fi
17 |
18 | [ -b /dev/"$TARGET" ] || return
19 |
20 | # get DEVNAME
21 | . /lib/upgrade/common.sh
22 | export_bootdevice
23 | . /sys/dev/block/"$BOOTDEV_MAJOR:$BOOTDEV_MINOR"/uevent
24 |
25 | [ "$DEVNAME" = "$TARGET" ] && return
26 |
27 | COUNT=0
28 | for part in /sys/dev/block/"$BOOTDEV_MAJOR:$BOOTDEV_MINOR/$DEVNAME"*; do
29 | START=$(cat "$part"/start)
30 | SIZE=$(cat "$part"/size)
31 | NEWCOUNT=$((START+SIZE))
32 | [ "$NEWCOUNT" -gt "$COUNT" ] && COUNT=$NEWCOUNT
33 | done
34 | [ "$COUNT" = 0 ] && return
35 |
36 | echo "RECOVERY: from $DEVNAME to $TARGET ($COUNT blocks)"
37 | dd if=/dev/"$DEVNAME" of=/dev/"$TARGET" bs=512 count="$COUNT" || return
38 | sync
39 |
40 | echo "RECOVERY: done! rebooting..."
41 | sleep 2
42 | reboot -f
43 |
--------------------------------------------------------------------------------
/root/lib/preinit/90_inittab:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # On V2B ttyS0 is used for the switch
4 |
5 | do_inittab() {
6 | grep -sq V2B /sys/devices/virtual/dmi/id/product_version || return
7 | grep -sv ttyS0 /etc/inittab > /inittab || true
8 | cmp -s /etc/inittab /inittab && return
9 | [ -s /inittab ] && mv -f /inittab /etc/inittab
10 | }
11 |
12 | boot_hook_add preinit_main do_inittab
13 |
--------------------------------------------------------------------------------
/sign.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | key=${1:-key-build}
4 |
5 | [ -d openwrt/bin ] && [ -f "$key" ] && \
6 | find openwrt/bin \
7 | \( -name '*.img.gz' -or -name 'Packages' \) \
8 | -exec openwrt/staging_dir/host/bin/usign -S -m {} -s "$key" \;
9 |
--------------------------------------------------------------------------------