Projet

Général

Profil

Openwrt » Historique » Version 100

Laurent GUERBY, 02/06/2013 18:08

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 96 Laurent GUERBY
<pre>
246 96 Laurent GUERBY
Firmware Version:	
247 96 Laurent GUERBY
3.12.11 Build 120320 Rel.51047n
248 96 Laurent GUERBY
Hardware Version:	
249 96 Laurent GUERBY
WR740N v4 00000000
250 97 Laurent GUERBY
DEfault IP 192.168.0.1
251 97 Laurent GUERBY
login: admin
252 97 Laurent GUERBY
pass: admin or empty
253 96 Laurent GUERBY
</pre>
254 96 Laurent GUERBY
255 1 Laurent GUERBY
* Firmware:
256 100 Laurent GUERBY
** a flasher via l'upgrade tplink : http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin
257 97 Laurent GUERBY
** ensuite IP 192.168.1.1 login root password vide
258 98 Laurent GUERBY
** filesystem
259 98 Laurent GUERBY
<pre>
260 98 Laurent GUERBY
root@OpenWrt:~# df -h
261 98 Laurent GUERBY
Filesystem                Size      Used Available Use% Mounted on
262 98 Laurent GUERBY
rootfs                    1.1M    212.0K    876.0K  19% /
263 98 Laurent GUERBY
/dev/root                 2.0M      2.0M         0 100% /rom
264 98 Laurent GUERBY
tmpfs                    14.3M    132.0K     14.1M   1% /tmp
265 98 Laurent GUERBY
tmpfs                   512.0K         0    512.0K   0% /dev
266 98 Laurent GUERBY
root                     14.3M     40.0K     14.2M   0% /tmp/root
267 98 Laurent GUERBY
overlayfs:/tmp/root      14.3M     40.0K     14.2M   0% /tmp/root
268 98 Laurent GUERBY
/dev/mtdblock3            1.1M    212.0K    876.0K  19% /overlay
269 98 Laurent GUERBY
overlayfs:/overlay        1.1M    212.0K    876.0K  19% /
270 1 Laurent GUERBY
</pre>
271 96 Laurent GUERBY
272 100 Laurent GUERBY
273 1 Laurent GUERBY
* Upgrade firmware:
274 100 Laurent GUERBY
wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin -O /tmp/upgrade.bin
275 91 Mehdi Abaakouk
sysupgrade -v /tmp/upgrade.bin 
276 90 Mehdi Abaakouk
* ipv6:
277 90 Mehdi Abaakouk
http://wiki.openwrt.org/doc/howto/ipv6.essentials
278 100 Laurent GUERBY
$ opkg install ip kmod-ipv6 radvd kmod-ip6tables ip6tables
279 100 Laurent GUERBY
280 100 Laurent GUERBY
reboot
281 90 Mehdi Abaakouk
282 90 Mehdi Abaakouk
/etc/init.d/radvd enable
283 90 Mehdi Abaakouk
/etc/init.d/radvd start
284 92 Mehdi Abaakouk
285 95 Mehdi Abaakouk
Dans luci:
286 92 Mehdi Abaakouk
Network > Edit WAN, mettre l'ipv6 fe80::81:XX/64 et la gw6 en fe80::31 > Save
287 92 Mehdi Abaakouk
Network > Add New Interface, remplir avec:
288 92 Mehdi Abaakouk
Name: WAN6
289 92 Mehdi Abaakouk
Protocol: static
290 92 Mehdi Abaakouk
Interface: eth1
291 92 Mehdi Abaakouk
> Submit et remplir:
292 92 Mehdi Abaakouk
ipv6: 2a01:6600:8081:XX00::1/64
293 92 Mehdi Abaakouk
unckeck "Send router solicitations"
294 92 Mehdi Abaakouk
> clicuqer sur Firewall Setting 
295 92 Mehdi Abaakouk
Assign firewall-zone to "WAN"
296 92 Mehdi Abaakouk
> Save & Apply
297 93 Mehdi Abaakouk
298 93 Mehdi Abaakouk
* Ajout route pour tsf:
299 93 Mehdi Abaakouk
Network > Static Routes > Dans "static ipv4 routes", cliquer sur add et remplir:
300 93 Mehdi Abaakouk
WAN - 172.31.31.0 - 255.255.255.0 - - -
301 92 Mehdi Abaakouk
> Save & Apply
302 94 Mehdi Abaakouk
303 94 Mehdi Abaakouk
* Ajout ssh via le link local ipv6
304 94 Mehdi Abaakouk
Network > Firewall > Traffic Rules
305 94 Mehdi Abaakouk
Dans "Open ports on router:" remplir:
306 94 Mehdi Abaakouk
SSH - TCP - 22 
307 94 Mehdi Abaakouk
> Add
308 94 Mehdi Abaakouk
Remplir:
309 94 Mehdi Abaakouk
Destination address: fe80::81:XX
310 94 Mehdi Abaakouk
> Save & Apply
311 48 Laurent GUERBY
312 48 Laurent GUERBY
20 euros
313 28 Julien Aubé
314 39 Laurent GUERBY
h2. TP-Link TL-WR703N
315 28 Julien Aubé
316 54 Laurent GUERBY
17 euros TTC livré, commande en asie uniquement
317 54 Laurent GUERBY
* http://www.volumerates.com/product/genuine-tp-link-tl-wr703n-150m-11n-mini-wifi-wireless-router-for-instant-wifi-connection-99273
318 61 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
319 79 Laurent GUERBY
* ebay http://myworld.ebay.fr/hediko98/?_trksid=p4340.l2559
320 80 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
321 81 Alexandre Girard
** https://github.com/grugq/portal (aussi TP-LINK MR11U   MR3040  MR3020 )
322 81 Alexandre Girard
** http://see.sl088.com/wiki/Laohliang163com%E7%9A%84WR703%E5%8D%87%E7%BA%A7 article original du modchip 64M
323 82 Alexandre Girard
** http://see.sl088.com/wiki/WR703_%E6%9B%B4%E6%8D%A264M_RAM quelques photos et instructions pour soudure du chip 64M
324 83 Laurent GUERBY
** http://see.sl088.com/wiki/WR703_PCB PCB WR703N
325 42 Mehdi Abaakouk
** solaire MR3020 https://apollo.open-resource.org/lab:argus
326 39 Laurent GUERBY
* http://embeddedtimes.blogspot.com/2011/09/tp-link-tl-wr703n-tiny-linux-capable.html
327 39 Laurent GUERBY
* OpenWRT Installation https://groups.google.com/forum/#!msg/village-telco-dev/UlGxUTlj9mM/nOMZKmoJmNUJ 
328 1 Laurent GUERBY
* http://wiki.openwrt.org/toh/tp-link/tl-wr703n
329 1 Laurent GUERBY
* https://forum.openwrt.org/viewtopic.php?id=31729
330 66 bikepunk bikepunk
* http://www.instructables.com/id/How-to-set-up-OpenWRT-on-a-pocket-router-WR703N/
331 66 bikepunk bikepunk
* mettre un port série : http://wiki.villagetelco.org/index.php?title=Building_a_Serial_Port_for_TL-WR703N
332 39 Laurent GUERBY
* Pirate box dédiée au 703n et MR 3020 http://www.jasongriffey.net/librarybox/index.html
333 62 Laurent GUERBY
* ajout USB et condensateur : https://forum.openwrt.org/viewtopic.php?id=34188
334 69 Thierry Boudet
* http://www.techbrunch.fr/tutoriels/prise-en-main-du-routeur-tp-link-tl-wr703n/
335 71 Laurent GUERBY
* Arduino - Cheap wifi connectivity http://www.thebmwz3.co.uk/article.php?story=20120611144749730
336 71 Laurent GUERBY
* tuto install http://www.bluemarmot.net63.net/drupal/fr/node/30
337 71 Laurent GUERBY
** luci http://www.bluemarmot.net63.net/drupal/fr/node/31
338 1 Laurent GUERBY
** 3g http://www.bluemarmot.net63.net/drupal/fr/node/29
339 76 Fabien Dupont
* boitier 3D printer http://www.thingiverse.com/thing:25257
340 77 Laurent GUERBY
* OSHW I/O expansion board http://www.kean.com.au/oshw/WR703N/
341 85 Laurent GUERBY
* Reverse-Engineering work on the TL-WR703N 150M 802.11n Wi-Fi Router. http://squonk42.github.com/TL-WR703N/
342 87 Laurent GUERBY
* LCD USB screen http://hackaday.com/2013/01/07/adding-an-lcd-screen-terminal-for-tp-link-routers/
343 88 Fabien Dupont
* radio http://piie.net/index.php?section=tplink-radio
344 89 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
345 70 Laurent GUERBY
* LibraryBox, un fork de PirateBox pour partager ses eBooks : http://jasongriffey.net/librarybox/
346 99 Laurent GUERBY
* http://penturalabs.wordpress.com/2013/04/25/blue-for-the-pineapple/
347 56 Laurent GUERBY
348 1 Laurent GUERBY
h2. OpenWRT Tools
349 52 Mehdi Abaakouk
350 52 Mehdi Abaakouk
h3. Ajouter une jolie interface WEB à OpenWRT
351 44 Mehdi Abaakouk
352 50 Laurent GUERBY
<pre>opkg update
353 1 Laurent GUERBY
opkg install luci luci-mod-admin-full uhttpd
354 1 Laurent GUERBY
opkg list | grep luci-app # affiche la kliste des greffons pour luci
355 1 Laurent GUERBY
</pre>
356 52 Mehdi Abaakouk
357 1 Laurent GUERBY
h3. Déport du bus usb sur une autre machine à l'aide de usbip
358 52 Mehdi Abaakouk
359 1 Laurent GUERBY
h4. Installation
360 52 Mehdi Abaakouk
361 52 Mehdi Abaakouk
* Prérequis: les 2 machines doivent avoir a peu prêt le même kernel (ie: >= 3.1)
362 52 Mehdi Abaakouk
363 72 Mehdi Abaakouk
* Sur le WRT:
364 1 Laurent GUERBY
-Il faut compile la partie userland de usbip pour cela il faut utilisé le patch:
365 72 Mehdi Abaakouk
https://lists.openwrt.org/pipermail/openwrt-devel/2012-April/014889.html
366 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)-
367 72 Mehdi Abaakouk
368 51 Mehdi Abaakouk
C'est upstream maintenant https://dev.openwrt.org/changeset/32887/ !
369 52 Mehdi Abaakouk
370 52 Mehdi Abaakouk
* Sur l'autre machine:
371 51 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
372 51 Mehdi Abaakouk
La partie userland de usbip se trouve dans les sources du kernel linux dans:
373 1 Laurent GUERBY
kernel/drivers/staging/usbip/userland
374 51 Mehdi Abaakouk
Les dépendances sont automake, autoconf, libglib2.0-dev et libsysfs-dev
375 51 Mehdi Abaakouk
Pour le compiler: 
376 51 Mehdi Abaakouk
<pre>
377 51 Mehdi Abaakouk
./autogen.sh && ./configure && make && make install
378 51 Mehdi Abaakouk
</pre>
379 52 Mehdi Abaakouk
380 51 Mehdi Abaakouk
h4. Utilisation:
381 52 Mehdi Abaakouk
382 1 Laurent GUERBY
* sur le WRT: 
383 51 Mehdi Abaakouk
<pre>
384 1 Laurent GUERBY
usbipd &
385 1 Laurent GUERBY
usbip list -l # pour voir la liste des périphériques disponible
386 1 Laurent GUERBY
usbip bind -b 1-1 # pour rendre disponible sur le réseau le périphérique 1-1 
387 1 Laurent GUERBY
</pre>
388 52 Mehdi Abaakouk
389 1 Laurent GUERBY
* sur l'autre machine:
390 1 Laurent GUERBY
<pre>
391 1 Laurent GUERBY
modprobe usbip-core
392 1 Laurent GUERBY
modprobe usbip-host
393 1 Laurent GUERBY
modprobe vhci-hcd
394 51 Mehdi Abaakouk
usbip list -r 192.168.1.2 # pour voir la liste des périphériques disponible sur 192.168.1.2
395 51 Mehdi Abaakouk
usbip attach -h 192.168.1.2 -b 1-1 # pour attacher le périph 1-1 sur notre machine
396 51 Mehdi Abaakouk
lsusb # on voit le nouveau périphérique usb
397 51 Mehdi Abaakouk
usbip detach -p 0 # pour le détacher
398 51 Mehdi Abaakouk
</pre>
399 52 Mehdi Abaakouk
400 51 Mehdi Abaakouk
h3. booter OpenWRT en failsafe
401 52 Mehdi Abaakouk
402 51 Mehdi Abaakouk
http://wiki.openwrt.org/doc/howto/generic.failsafe
403 52 Mehdi Abaakouk
404 52 Mehdi Abaakouk
En gros appuyer plusieurs fois sur reset pendant l'allumage de l'appareil
405 52 Mehdi Abaakouk
Il bootera en mode failsafe, prise ethernet en 192.168.1.1
406 51 Mehdi Abaakouk
Une fois connecté en ssh ou telnet faire: mount_root pour monter la flash
407 52 Mehdi Abaakouk
408 52 Mehdi Abaakouk
409 52 Mehdi Abaakouk
h3. Pirate box
410 1 Laurent GUERBY
411 1 Laurent GUERBY
http://www.lemonde.fr/technologies/article/2012/01/07/surfer-sans-entraves_1627059_651865.html
412 1 Laurent GUERBY
http://wiki.daviddarts.com/PirateBox
413 1 Laurent GUERBY
414 1 Laurent GUERBY
h3. Load balancing
415 52 Mehdi Abaakouk
416 56 Laurent GUERBY
par flux iproute2: http://www.inetdoc.net/guides/lartc/lartc.rpdb.multiple-links.html
417 56 Laurent GUERBY
418 56 Laurent GUERBY
h3. OpenWRT and Network UPS Tools
419 56 Laurent GUERBY
420 56 Laurent GUERBY
backfire https://forum.openwrt.org/viewtopic.php?id=26269
421 57 Laurent GUERBY
older https://forum.openwrt.org/viewtopic.php?id=13614
422 57 Laurent GUERBY
423 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
424 57 Laurent GUERBY
<jow_laptop> no
425 57 Laurent GUERBY
<guerby> jow_laptop, ok, do you know what's needed for such contrib to be included?
426 58 Laurent GUERBY
<jow_laptop> an OpenWrt Makefile
427 58 Laurent GUERBY
428 58 Laurent GUERBY
<sileht> http://wiki.openwrt.org/doc/howto/build
429 58 Laurent GUERBY
430 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?
431 59 Laurent GUERBY
<jow_laptop> make a package nut providing the base and then several nut-mod-xyz covering the different drivers
432 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
433 59 Laurent GUERBY
<jow_laptop> see for example the collectd or znc packages
434 1 Laurent GUERBY
<jow_laptop> or coreutils