Projet

Général

Profil

Openwrt » Historique » Version 88

Fabien Dupont, 18/01/2013 20:46

1 37 Laurent GUERBY
{{>toc}}
2 37 Laurent GUERBY
3 1 Laurent GUERBY
h1. Openwrt
4 1 Laurent GUERBY
5 67 Laurent GUERBY
h2. Build
6 67 Laurent GUERBY
7 67 Laurent GUERBY
http://wiki.openwrt.org/doc/howto/obtain.firmware.generate
8 67 Laurent GUERBY
9 13 Laurent GUERBY
h2. Gestion multi internet
10 13 Laurent GUERBY
11 13 Laurent GUERBY
Trouver comment gérer son reseau local et sa connexion quand on a plusieurs acces
12 14 Laurent GUERBY
- TSF tetaneutral.net
13 14 Laurent GUERBY
- ADSL tetaneutral.net
14 14 Laurent GUERBY
- ADSL ou fibre ou cable autre opérateur
15 13 Laurent GUERBY
- wifi ouverts des voisins
16 13 Laurent GUERBY
17 15 Laurent GUERBY
Quels sont les objectifs ?
18 15 Laurent GUERBY
- simple redondance avec bascule manuelle ou automatique
19 15 Laurent GUERBY
- agrégation des débits
20 15 Laurent GUERBY
- sélection de l'acces selon le traffic
21 15 Laurent GUERBY
- portail captif / acces des autres membres ?
22 15 Laurent GUERBY
- autres objectifs ?
23 13 Laurent GUERBY
24 16 Mehdi Abaakouk
Pour faire du failover ou du load balancing de lien internet facilement avec openwrt:
25 16 Mehdi Abaakouk
* http://wiki.openwrt.org/doc/uci/multiwan
26 16 Mehdi Abaakouk
* screenshot interface luci: https://forum.openwrt.org/viewtopic.php?pid=106310#p106310
27 63 Laurent GUERBY
* http://mpath-tools.optilian.org/
28 16 Mehdi Abaakouk
29 17 Laurent GUERBY
Références
30 17 Laurent GUERBY
- [[Test_OpenWRT_sur_TP-LINK_WR-1043ND]]
31 17 Laurent GUERBY
32 86 Laurent GUERBY
h2. IPv6
33 86 Laurent GUERBY
34 86 Laurent GUERBY
* [[IPv6]]
35 86 Laurent GUERBY
* http://doc.rhizome-fai.net/doku.php?id=technique:materiel:ap_interieurs:openwrt_ipv6 
36 86 Laurent GUERBY
37 26 Laurent GUERBY
h2. Exemples concrets
38 25 Laurent GUERBY
39 26 Laurent GUERBY
h3. Chez Laurent GUERBY
40 1 Laurent GUERBY
41 26 Laurent GUERBY
La situation est la suivante :
42 26 Laurent GUERBY
43 25 Laurent GUERBY
- je capte un signal Free Wifi d'un voisin (2.4 GHz)
44 1 Laurent GUERBY
- je capte un signal SFR Public Wifi d'un voisin (2.4 GHz)
45 25 Laurent GUERBY
- je capte un signal TSF (5 GHz)
46 26 Laurent GUERBY
- je n'ai pas d'ADSL ou RTC (pas de ligne cuivre activée)
47 25 Laurent GUERBY
- j'ai un code d'acces Free Wifi (via famille)
48 25 Laurent GUERBY
- j'ai un code d'acces SFR Public Wifi (via famille)
49 25 Laurent GUERBY
- j'ai un abonnement tetaneutral.net sur le signal TSF
50 25 Laurent GUERBY
51 25 Laurent GUERBY
Bref si je mets deux clients 2.4 GHz en plus de ma Nanostation LocoM5 TSF j'ai 3 WAN possibles chez moi.
52 25 Laurent GUERBY
53 18 Laurent GUERBY
h2. Alix
54 18 Laurent GUERBY
55 21 Laurent GUERBY
Via Cédric qui en a un.
56 18 Laurent GUERBY
57 18 Laurent GUERBY
* http://pcengines.ch/alix.htm
58 30 Cédric Le Goater
* http://www.pcengines.ch/alix2d13.htm
59 18 Laurent GUERBY
60 18 Laurent GUERBY
Elles sont intéressantes pour leur faible consommation (alimentable 
61 18 Laurent GUERBY
en POE) et leur large support d'OS. Elles sont aussi un peu plus 
62 18 Laurent GUERBY
chères (>100 euros) que les petits routeurs grand public et peut-être 
63 18 Laurent GUERBY
de conception vieillissante.
64 1 Laurent GUERBY
65 30 Cédric Le Goater
Les perfs sont correctes. Un lien a 45Mb/s consomme ~30% CPU mais on 
66 30 Cédric Le Goater
plafonne à ~17Mb/s avec OpenVPN, ~21Mb/s sans encryption. Il serait
67 30 Cédric Le Goater
intéressant de mesurer les perfs avec un kernel supportant le geode AES.
68 30 Cédric Le Goater
Ce n'est pas possible sans un kernel custom sur debian. Affaire à suivre. 
69 30 Cédric Le Goater
70 30 Cédric Le Goater
References :
71 30 Cédric Le Goater
72 30 Cédric Le Goater
* http://www.i4wifi.eu/alix-2d13-lx800-500mhz-256mb-1x-minipci-3x-lan-usb-i2c-com2_d2191.html
73 30 Cédric Le Goater
* http://www.gooze.eu/alix-2d13-pc-engines-kit
74 30 Cédric Le Goater
75 30 Cédric Le Goater
Utilisation de la crypto API :
76 30 Cédric Le Goater
77 30 Cédric Le Goater
* http://carnivore.it/2011/04/23/openssl_-_af_alg
78 1 Laurent GUERBY
79 32 Laurent GUERBY
h2. TP-Link
80 32 Laurent GUERBY
81 33 Laurent GUERBY
* Note: desactiver la reception de DNS par DHCP et les mettre en dur pour eviter les plantages (astuce Cyril GOUSSE Saint-Gaudens)
82 21 Laurent GUERBY
83 1 Laurent GUERBY
h2. Comtrend
84 19 Laurent GUERBY
85 21 Laurent GUERBY
Via Cyril qui en a un a Saint-Gaudens. Autour de 50 euros si commande en nombre.
86 1 Laurent GUERBY
87 20 Laurent GUERBY
* Connexion ADSL,
88 20 Laurent GUERBY
* 4 ports LAN que l'on peux convertir à la volée en WAN,
89 20 Laurent GUERBY
* 2 ports FXO pour brancher des téléphones VoIP (SIP) / Prise en charge du routage des appels sur la ligne RTC FT (dialplan personnalisable),
90 20 Laurent GUERBY
* Support clés 3G ou imprimante USB.
91 20 Laurent GUERBY
92 20 Laurent GUERBY
Specifications :
93 20 Laurent GUERBY
94 22 Laurent GUERBY
* attachment:Configuration_du_Port_LAN_en_Port_WAN.pdf
95 22 Laurent GUERBY
* attachment:Datasheet.pdf
96 22 Laurent GUERBY
* attachment:Documentation_lignes_de_commandes.pdf
97 22 Laurent GUERBY
* attachment:Documentation_generale.pdf
98 18 Laurent GUERBY
99 27 Matthieu Herrb
h2. OpenBSD
100 27 Matthieu Herrb
101 27 Matthieu Herrb
Pour ceux qui veulent gérer le multi-homing avec un autre système, OpenBSD a une FAQ sur le multipath avec PF: 
102 27 Matthieu Herrb
103 27 Matthieu Herrb
* http://www.openbsd.org/faq/faq6.html#Multipath
104 27 Matthieu Herrb
* http://www.openbsd.org/faq/pf/pools.html#outgoing
105 27 Matthieu Herrb
106 27 Matthieu Herrb
Matthieu compte expérimenter avec cela sur son routeur Soekris (http://soekris.com) bientot. 
107 27 Matthieu Herrb
108 29 Laurent GUERBY
h2. DSL
109 29 Laurent GUERBY
110 60 Laurent GUERBY
ADSL
111 60 Laurent GUERBY
wiki openwrt: http://wiki.openwrt.org/tag/adsl2plus?do=showtag&tag=tag%3Aadsl2plus
112 60 Laurent GUERBY
113 29 Laurent GUERBY
<obinou> hello guerby ! On a une page pour le matériel potentiellement intéressant à acheter pour ttn ?
114 29 Laurent GUERBY
<obinou> j'ai découvert que le Buffalo WBMR-HP-G300H est un routeur supporté par openwrt avec un chipset ADSL dont les sources sont libre
115 29 Laurent GUERBY
<obinou> http://www.amazon.fr/Buffalo-AirStation-Nfiniti-HighPower-Broadband/dp/B005584W2E/ref=sr_1_1?ie=UTF8&qid=1327222358&sr=8-1
116 29 Laurent GUERBY
<mherrb> j'ai un WZR-HP-G300NH2 achete 90 EUR chez materiel.net qui devrait être supporté aussi (son fw d'origine c'est DD-WRT).
117 29 Laurent GUERBY
<mherrb> http://www.materiel.net/routeur-adsl/buffalo-technology-wzr-hp-g300nh2-55100.html
118 29 Laurent GUERBY
<obinou> mherrb, ok - par contre il fait pas ADSL, si ?
119 29 Laurent GUERBY
<obinou> Moi je suis sur ces putains de pb d'adsl , là
120 29 Laurent GUERBY
<obinou> sur les machin broadcom en l'occurence
121 29 Laurent GUERBY
<obinou> La difficulté c'est de trouver un modem ADSL wrt qui ne soit pas du broadcom. Ou alors faut faire comme je fait ici: Prendre un modem ADSL séparé (Vigor 120 à 30€) et l'utiliser en modem PPPoE pur
122 29 Laurent GUERBY
<obinou> mherrb, concernant l'ADSL (mail de laurent), j'ai ce DSLAM à dispo : http://landashop.com/catalog/ports-adsl2-dslam-switch-10100mbps-uplink-port-p-1747.html
123 29 Laurent GUERBY
<mherrb> ok. je ne sais pas ce qu'on mes collegues, et je n'en sais toujours pas plus sur leur projet.
124 29 Laurent GUERBY
<obinou> mherrb, Je n'ai jamais trouvé le temps d'y travailler de manière vraiment importante , mais j'admets que j'aimerais beaucoup m'y pencher plus, tant au niveau perso que pro.
125 29 Laurent GUERBY
<obinou> (Même si j'admets que l'avantage de l'ADSL, c'est que quand tu sais comment ça marche dedans, tu deviens un inconditionel de la fibre...)
126 29 Laurent GUERBY
<obinou> mherrb, Bref, si tu pense qu'il y a une opportunité , hésite pas a passer mon contact, mais bon, sinon, c'est pas grave. De toute façon l'ADSL j'espère que c'est quelque chose qu'on finira par voir mourir de notre vivant :-)
127 29 Laurent GUERBY
<mherrb> oui j'y penserai.
128 29 Laurent GUERBY
<mherrb> en materiel adsl intéressant il y a aussi les cartes Traverse: https://kd85.com/traverse.html
129 29 Laurent GUERBY
<obinou> mherrb, ah ! oui, elles sont sympa, mais chères par contre
130 29 Laurent GUERBY
131 34 Laurent Lau
h2. Shorewall
132 34 Laurent Lau
133 35 Laurent Lau
Via Laurent B. http://www.shorewall.net/MultiISP.html
134 34 Laurent Lau
La répartition de charge se fait dans un fichier de conf "tcrules". On peut dédier des protocoles par FAI (http descendant Tetaneutral, ssh Free, dns SFR) si un lien tombe le trafic est redirigé sur un FAI toujours UP.
135 35 Laurent Lau
Le backup est transparent les liens ISP sont monitorés si un tombe tout le trafic est redirigé vers les liens ISP up restant via Link Status Monitor http://lsm.foobar.fi/. Le principe est de pinguer des ip définies dans un fichier de configuration (exemple le premier ou second hop de chaque FAI) via l'interface réseau qui route vers ce FAI. A détection de changement d'état du lien un script est exécuté. (dans notre cas le script exécute une reconf shorewall)
136 34 Laurent Lau
137 74 Laurent GUERBY
h2. DD-WRT
138 74 Laurent GUERBY
139 74 Laurent GUERBY
hardware list
140 74 Laurent GUERBY
http://www.dd-wrt.com/wiki/index.php/Supported_Devices
141 74 Laurent GUERBY
142 78 Laurent GUERBY
VLAN support
143 78 Laurent GUERBY
http://www.dd-wrt.com/wiki/index.php/VLAN_Detached_Networks_(Separate_Networks_With_Internet)
144 78 Laurent GUERBY
145 78 Laurent GUERBY
146 39 Laurent GUERBY
h2. Netgear WNDR3700 v2
147 13 Laurent GUERBY
148 39 Laurent GUERBY
Article LWN sur openwrt http://lwn.net/Articles/451837/
149 31 Laurent GUERBY
150 39 Laurent GUERBY
Modele recommandé par l'article Wifi 2.4 et 5, attention prendre la v2 http://wiki.openwrt.org/toh/netgear/wndr3700
151 1 Laurent GUERBY
152 39 Laurent GUERBY
A noter les efforts de bufferbloat sur cerowrt, pas mal de boulot bas niveau :
153 1 Laurent GUERBY
154 39 Laurent GUERBY
https://www.bufferbloat.net/projects/bloat
155 39 Laurent GUERBY
http://www.bufferbloat.net/projects/cerowrt/wiki/Building_Cerowrt_on_your_own_machine
156 39 Laurent GUERBY
http://www.bufferbloat.net/projects/uberwrt/wiki/Hardware_evaluation
157 39 Laurent GUERBY
http://www.bufferbloat.net/projects/bismark/wiki/Wndr3700v2
158 1 Laurent GUERBY
159 39 Laurent GUERBY
80-100 euros
160 1 Laurent GUERBY
161 39 Laurent GUERBY
h2. TP-Link TL-WR1043ND
162 1 Laurent GUERBY
163 1 Laurent GUERBY
http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd
164 1 Laurent GUERBY
Simulateur en ligne de l'interface du TL-WR1043ND ici : http://www.tp-link.com/simulator/tl-wr1043nd/index.htm
165 1 Laurent GUERBY
166 39 Laurent GUERBY
Tests de Cazères éthique de OpenWRT sur TP-LINK WR-1043ND
167 39 Laurent GUERBY
[[Test OpenWRT sur TP-LINK WR-1043ND]]
168 1 Laurent GUERBY
169 39 Laurent GUERBY
45 euros
170 1 Laurent GUERBY
171 68 Laurent GUERBY
h2. TP-LINK TL-WR2543ND
172 68 Laurent GUERBY
173 68 Laurent GUERBY
* dual band 2.4 et 5 3x RP-SMA
174 68 Laurent GUERBY
* SOC AR7242@400MHz	 flash=8MB RAM=64MB Gbit=4x1 USB=Yes
175 68 Laurent GUERBY
* ethernet RTL8367R
176 68 Laurent GUERBY
* wifi AR9380 3x3 MIMO 450 Mbps 
177 68 Laurent GUERBY
* http://wiki.openwrt.org/toh/tp-link/tl-wr2543nd
178 68 Laurent GUERBY
* 60-80 euros http://www.redcoon.fr/B339082-TP-LINK-TL-WR2543ND_Routeur
179 68 Laurent GUERBY
180 75 Laurent GUERBY
h2. TP-LINK TL-WDR4300
181 75 Laurent GUERBY
182 75 Laurent GUERBY
http://wiki.openwrt.org/toh/tp-link/tl-wdr4300
183 75 Laurent GUERBY
https://forum.openwrt.org/viewtopic.php?id=36534
184 68 Laurent GUERBY
185 39 Laurent GUERBY
h2. ASUS RT-N66U
186 1 Laurent GUERBY
187 39 Laurent GUERBY
TODO
188 1 Laurent GUERBY
189 39 Laurent GUERBY
h2. Ubiquiti
190 39 Laurent GUERBY
191 39 Laurent GUERBY
Tests de Cazères éthique peu concluants en portée et ad hoc sur LocoM2 ?
192 39 Laurent GUERBY
[[Essai d'intégration des NS Loco M2 dans le réseau de Ricoré de Cazères Éthique]]
193 1 Laurent GUERBY
194 40 Laurent GUERBY
h2. TP-Link TL-WR340G 
195 39 Laurent GUERBY
196 39 Laurent GUERBY
14.08 euros livré chez interprojekt.com.pl, pas facile pour openwrt (2MB flash)
197 39 Laurent GUERBY
Liste de matériel
198 12 Laurent GUERBY
http://wiki.funkfeuer.at/index.php/Hardware
199 12 Laurent GUERBY
200 73 Laurent GUERBY
h2. Netgear WNDR3800
201 73 Laurent GUERBY
202 73 Laurent GUERBY
Testé sous openwrt par Olivier Le Brouster de grenode, VLAN support ok
203 73 Laurent GUERBY
http://wiki.openwrt.org/toh/netgear/wndr3800
204 74 Laurent GUERBY
http://www.smallnetbuilder.com/wireless/wireless-reviews/31593-new-to-the-charts-netgear-wndr3800-n600-wireless-dual-band-gigabit-router-premium-edition
205 73 Laurent GUERBY
206 40 Laurent GUERBY
h2. Buffalo WBMR-HP-G300H
207 23 Laurent GUERBY
208 39 Laurent GUERBY
Routeur ADSL + Wifi 802.11n + 4 ports giga, supporté par OpenWRT.
209 39 Laurent GUERBY
Chipset wifi "Lantiq" , supporté en open-source par OpenWRT
210 1 Laurent GUERBY
http://www.amazon.fr/Buffalo-AirStation-Nfiniti-HighPower-Broadband/dp/B005584W2E/ref=sr_1_1?ie=UTF8&qid=1327222358&sr=8-1
211 39 Laurent GUERBY
212 64 Laurent GUERBY
Test et tutorial aquilenet : https://atelier.aquilenet.fr/projects/adsl/wiki/Buffalo_WBMR-HP-G300H_+_OpenWRT_%28modem-routeur_ADSl_%C3%A0_80%E2%82%AC%29
213 64 Laurent GUERBY
214 84 Julien Aubé
-h2. D-Link HorstBox
215 65 Laurent GUERBY
216 65 Laurent GUERBY
http://www.conrad-uk.com/ce/en/product/923438/D-Link-HorstBox
217 1 Laurent GUERBY
218 84 Julien Aubé
Via obinou, chipset ADSL libre  Lantiq comme le buffalo-
219 84 Julien Aubé
220 84 Julien Aubé
Erreur: Le HorstBox a un chipset Lantiq trop vieux et non supporté par OpenWRT (pas nativement du moins).
221 84 Julien Aubé
222 84 Julien Aubé
h2. British Telecom Home Hub v3a
223 84 Julien Aubé
224 84 Julien Aubé
http://wiki.openwrt.org/toh/bt/homehub.3.0
225 84 Julien Aubé
http://www.psidoc.com/index.php
226 84 Julien Aubé
http://wiki.openwrt.org/toh/bt/start
227 84 Julien Aubé
228 84 Julien Aubé
Trouvable pour pas cher sur ebay.co.uk , ex:
229 84 Julien Aubé
http://www.ebay.co.uk/itm/BT-HOME-HUB-3-WIRELESS-ROUTER-Excellent-Condition-/181044850411?pt=UK_Computing_Wireless_Routers&hash=item2a271d2eeb
230 84 Julien Aubé
(recherche HOME HUB 3)
231 84 Julien Aubé
232 84 Julien Aubé
Basé sur un chipset Lantiq, boote Openwrt (presque) jusqu'au bout. 
233 84 Julien Aubé
Attention, très difficile à souder le port série et la pin de contrôle de boot processeur (Il faut avoir l'habitude)
234 84 Julien Aubé
235 65 Laurent GUERBY
236 65 Laurent GUERBY
237 48 Laurent GUERBY
h2. TP-Link TL-WR740N
238 48 Laurent GUERBY
239 49 Laurent GUERBY
* http://wiki.openwrt.org/toh/tp-link/tl-wr740n
240 49 Laurent GUERBY
* https://dev.openwrt.org/ticket/10492
241 49 Laurent GUERBY
* http://www.magicpc.fr/Routeur/Tp-link_TL-WR740N/p-22121/
242 49 Laurent GUERBY
* http://doc.rhizome-fai.net/doku.php?id=howto:deploiement:point_relais_switch
243 49 Laurent GUERBY
* http://doc.rhizome-fai.net/doku.php?id=technique:materiel:ap_interieurs:tp-link_wr740n
244 48 Laurent GUERBY
245 48 Laurent GUERBY
20 euros
246 48 Laurent GUERBY
247 28 Julien Aubé
h2. TP-Link TL-WR703N
248 39 Laurent GUERBY
249 28 Julien Aubé
17 euros TTC livré, commande en asie uniquement
250 54 Laurent GUERBY
* http://www.volumerates.com/product/genuine-tp-link-tl-wr703n-150m-11n-mini-wifi-wireless-router-for-instant-wifi-connection-99273
251 54 Laurent GUERBY
* http://www.volumerates.com/product/tp-link-tl-wr703n-openwrt-compatible-pocket-11n-150m-3g-mobile-wireless-broadband-router--blue-ship-with-openwrt-pre-installed-upon-customers-request-103048
252 61 Laurent GUERBY
* ebay http://myworld.ebay.fr/hediko98/?_trksid=p4340.l2559
253 79 Laurent GUERBY
* mod 64 MB RAM 8 MB flash : http://cgi.ebay.fr/TP-Link-TL-WR703N-Mod-64M-RAM-8M-Flash-/181029894943?pt=COMP_EN_Routers&hash=item2a2638fb1f
254 80 Laurent GUERBY
** https://github.com/grugq/portal (aussi TP-LINK MR11U   MR3040  MR3020 )
255 81 Alexandre Girard
** http://see.sl088.com/wiki/Laohliang163com%E7%9A%84WR703%E5%8D%87%E7%BA%A7 article original du modchip 64M
256 81 Alexandre Girard
** http://see.sl088.com/wiki/WR703_%E6%9B%B4%E6%8D%A264M_RAM quelques photos et instructions pour soudure du chip 64M
257 82 Alexandre Girard
** http://see.sl088.com/wiki/WR703_PCB PCB WR703N
258 83 Laurent GUERBY
** solaire MR3020 https://apollo.open-resource.org/lab:argus
259 42 Mehdi Abaakouk
* http://embeddedtimes.blogspot.com/2011/09/tp-link-tl-wr703n-tiny-linux-capable.html
260 39 Laurent GUERBY
* OpenWRT Installation https://groups.google.com/forum/#!msg/village-telco-dev/UlGxUTlj9mM/nOMZKmoJmNUJ 
261 39 Laurent GUERBY
* http://wiki.openwrt.org/toh/tp-link/tl-wr703n
262 1 Laurent GUERBY
* https://forum.openwrt.org/viewtopic.php?id=31729
263 1 Laurent GUERBY
* http://www.instructables.com/id/How-to-set-up-OpenWRT-on-a-pocket-router-WR703N/
264 66 bikepunk bikepunk
* mettre un port série : http://wiki.villagetelco.org/index.php?title=Building_a_Serial_Port_for_TL-WR703N
265 66 bikepunk bikepunk
* Pirate box dédiée au 703n et MR 3020 http://www.jasongriffey.net/librarybox/index.html
266 39 Laurent GUERBY
* ajout USB et condensateur : https://forum.openwrt.org/viewtopic.php?id=34188
267 62 Laurent GUERBY
* http://www.techbrunch.fr/tutoriels/prise-en-main-du-routeur-tp-link-tl-wr703n/
268 69 Thierry Boudet
* Arduino - Cheap wifi connectivity http://www.thebmwz3.co.uk/article.php?story=20120611144749730
269 71 Laurent GUERBY
* tuto install http://www.bluemarmot.net63.net/drupal/fr/node/30
270 71 Laurent GUERBY
** luci http://www.bluemarmot.net63.net/drupal/fr/node/31
271 71 Laurent GUERBY
** 3g http://www.bluemarmot.net63.net/drupal/fr/node/29
272 1 Laurent GUERBY
* boitier 3D printer http://www.thingiverse.com/thing:25257
273 76 Fabien Dupont
* OSHW I/O expansion board http://www.kean.com.au/oshw/WR703N/
274 77 Laurent GUERBY
* Reverse-Engineering work on the TL-WR703N 150M 802.11n Wi-Fi Router. http://squonk42.github.com/TL-WR703N/
275 85 Laurent GUERBY
* LCD USB screen http://hackaday.com/2013/01/07/adding-an-lcd-screen-terminal-for-tp-link-routers/
276 87 Laurent GUERBY
* radio http://piie.net/index.php?section=tplink-radio
277 88 Fabien Dupont
* minikrebs is an low-interaction special-purpose firmware generator for the TP-Link WR703N. http://shackspace.de/wiki/doku.php?id=project:minikrebs
278 70 Laurent GUERBY
279 56 Laurent GUERBY
h2. OpenWRT Tools
280 1 Laurent GUERBY
281 52 Mehdi Abaakouk
h3. Ajouter une jolie interface WEB à OpenWRT
282 52 Mehdi Abaakouk
283 44 Mehdi Abaakouk
<pre>opkg update
284 50 Laurent GUERBY
opkg install luci luci-mod-admin-full uhttpd
285 1 Laurent GUERBY
opkg list | grep luci-app # affiche la kliste des greffons pour luci
286 1 Laurent GUERBY
</pre>
287 1 Laurent GUERBY
288 52 Mehdi Abaakouk
h3. Déport du bus usb sur une autre machine à l'aide de usbip
289 1 Laurent GUERBY
290 52 Mehdi Abaakouk
h4. Installation
291 1 Laurent GUERBY
292 52 Mehdi Abaakouk
* Prérequis: les 2 machines doivent avoir a peu prêt le même kernel (ie: >= 3.1)
293 52 Mehdi Abaakouk
294 52 Mehdi Abaakouk
* Sur le WRT:
295 72 Mehdi Abaakouk
-Il faut compile la partie userland de usbip pour cela il faut utilisé le patch:
296 1 Laurent GUERBY
https://lists.openwrt.org/pipermail/openwrt-devel/2012-April/014889.html
297 72 Mehdi Abaakouk
Le package (prévu la version trunk (r31216) pour le matériel ar71xx) déjà prêt peux être télécharger ici : (A venir)-
298 72 Mehdi Abaakouk
299 72 Mehdi Abaakouk
C'est upstream maintenant https://dev.openwrt.org/changeset/32887/ !
300 51 Mehdi Abaakouk
301 52 Mehdi Abaakouk
* Sur l'autre machine:
302 52 Mehdi Abaakouk
Il faudra sûrement compilé soit même la partie userland aussi, par exemple ubuntu 12.04 et debian wheezy non pas une version assez récent du soft
303 51 Mehdi Abaakouk
La partie userland de usbip se trouve dans les sources du kernel linux dans:
304 51 Mehdi Abaakouk
kernel/drivers/staging/usbip/userland
305 1 Laurent GUERBY
Les dépendances sont automake, autoconf, libglib2.0-dev et libsysfs-dev
306 51 Mehdi Abaakouk
Pour le compiler: 
307 51 Mehdi Abaakouk
<pre>
308 51 Mehdi Abaakouk
./autogen.sh && ./configure && make && make install
309 51 Mehdi Abaakouk
</pre>
310 51 Mehdi Abaakouk
311 52 Mehdi Abaakouk
h4. Utilisation:
312 51 Mehdi Abaakouk
313 52 Mehdi Abaakouk
* sur le WRT: 
314 1 Laurent GUERBY
<pre>
315 51 Mehdi Abaakouk
usbipd &
316 1 Laurent GUERBY
usbip list -l # pour voir la liste des périphériques disponible
317 1 Laurent GUERBY
usbip bind -b 1-1 # pour rendre disponible sur le réseau le périphérique 1-1 
318 1 Laurent GUERBY
</pre>
319 1 Laurent GUERBY
320 52 Mehdi Abaakouk
* sur l'autre machine:
321 1 Laurent GUERBY
<pre>
322 1 Laurent GUERBY
modprobe usbip-core
323 1 Laurent GUERBY
modprobe usbip-host
324 1 Laurent GUERBY
modprobe vhci-hcd
325 1 Laurent GUERBY
usbip list -r 192.168.1.2 # pour voir la liste des périphériques disponible sur 192.168.1.2
326 51 Mehdi Abaakouk
usbip attach -h 192.168.1.2 -b 1-1 # pour attacher le périph 1-1 sur notre machine
327 51 Mehdi Abaakouk
lsusb # on voit le nouveau périphérique usb
328 51 Mehdi Abaakouk
usbip detach -p 0 # pour le détacher
329 51 Mehdi Abaakouk
</pre>
330 51 Mehdi Abaakouk
331 52 Mehdi Abaakouk
h3. booter OpenWRT en failsafe
332 51 Mehdi Abaakouk
333 52 Mehdi Abaakouk
http://wiki.openwrt.org/doc/howto/generic.failsafe
334 51 Mehdi Abaakouk
335 52 Mehdi Abaakouk
En gros appuyer plusieurs fois sur reset pendant l'allumage de l'appareil
336 52 Mehdi Abaakouk
Il bootera en mode failsafe, prise ethernet en 192.168.1.1
337 52 Mehdi Abaakouk
Une fois connecté en ssh ou telnet faire: mount_root pour monter la flash
338 51 Mehdi Abaakouk
339 52 Mehdi Abaakouk
340 52 Mehdi Abaakouk
h3. Pirate box
341 52 Mehdi Abaakouk
342 1 Laurent GUERBY
http://www.lemonde.fr/technologies/article/2012/01/07/surfer-sans-entraves_1627059_651865.html
343 1 Laurent GUERBY
http://wiki.daviddarts.com/PirateBox
344 1 Laurent GUERBY
345 1 Laurent GUERBY
h3. Load balancing
346 1 Laurent GUERBY
347 52 Mehdi Abaakouk
par flux iproute2: http://www.inetdoc.net/guides/lartc/lartc.rpdb.multiple-links.html
348 56 Laurent GUERBY
349 56 Laurent GUERBY
h3. OpenWRT and Network UPS Tools
350 56 Laurent GUERBY
351 56 Laurent GUERBY
backfire https://forum.openwrt.org/viewtopic.php?id=26269
352 56 Laurent GUERBY
older https://forum.openwrt.org/viewtopic.php?id=13614
353 57 Laurent GUERBY
354 57 Laurent GUERBY
<guerby> hi, did anyone package NUT (Network UPS Tools) for openwrt official repo? I find them over the net: https://forum.openwrt.org/viewtopic.php?id=26269   and upstream developpers seem reactive, thx
355 57 Laurent GUERBY
<jow_laptop> no
356 57 Laurent GUERBY
<guerby> jow_laptop, ok, do you know what's needed for such contrib to be included?
357 57 Laurent GUERBY
<jow_laptop> an OpenWrt Makefile
358 58 Laurent GUERBY
359 58 Laurent GUERBY
<sileht> http://wiki.openwrt.org/doc/howto/build
360 58 Laurent GUERBY
361 58 Laurent GUERBY
<guerby> jow_laptop, ok will try tonight with a friend. NUT has one driver per family of UPS, on amd64 each driver is about 60 kB total 2.4 MB. since we're trying to put it on a 703N with 4 MB flash (1.5 MB usable) I think it will be better to split binaries, is there a prefered way to do that?
362 58 Laurent GUERBY
<jow_laptop> make a package nut providing the base and then several nut-mod-xyz covering the different drivers
363 59 Laurent GUERBY
<jow_laptop> with some clever templating you can reduce the effort for the -mod- packages to a simple list of driver names
364 59 Laurent GUERBY
<jow_laptop> see for example the collectd or znc packages
365 59 Laurent GUERBY
<jow_laptop> or coreutils