<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Debian or not to be ? 2.0 &#187; http</title> <atom:link href="http://www.crashdump.fr/tag/http/feed/" rel="self" type="application/rss+xml" /><link>http://www.crashdump.fr</link> <description>that is the question</description> <lastBuildDate>Mon, 23 Jan 2012 13:14:39 +0000</lastBuildDate> <language>fr</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>Serveur HTTP Python en une ligne..</title><link>http://www.crashdump.fr/reseaux/serveur-http-python-en-une-ligne-649/</link> <comments>http://www.crashdump.fr/reseaux/serveur-http-python-en-une-ligne-649/#comments</comments> <pubDate>Fri, 24 Apr 2009 22:21:29 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Code]]></category> <category><![CDATA[Réseaux]]></category> <category><![CDATA[http]]></category> <category><![CDATA[python]]></category> <category><![CDATA[serveur]]></category> <category><![CDATA[serveur web]]></category> <category><![CDATA[SimpleHTTPServer]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=649</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/python_at_http.jpg" class="attachment-featured-image wp-post-image" alt="python_at_http" title="python_at_http" /></p><br />Un &#171;&#160;irc friend&#160;&#187; &#8211; fo0 en l&#8217;occurrence &#8211; m&#8217;as demandé récemment comment comment créer un petit serveur web en python, rapidement pour pouvoir partager ponctuellement des fichiers &#038; tester du dev. Et bien c&#8217;est faisable en une courte ligne: 1python -c 'import SimpleHTTPServer;SimpleHTTPServer.test()' Ca lance un petit serveur http sur le port 8000, partageant les [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/python_at_http.jpg" class="attachment-featured-image wp-post-image" alt="python_at_http" title="python_at_http" /></p><br /><p><em>Un &laquo;&nbsp;irc friend&nbsp;&raquo; &#8211; <a rel="nofollow" href="irc://irc.europnet.org/informatique">fo0</a> en l&#8217;occurrence &#8211; m&#8217;as demandé récemment comment comment créer un petit serveur web en python, rapidement pour pouvoir partager ponctuellement des fichiers &#038; tester du dev. Et bien c&#8217;est  faisable en une courte ligne:</em></p><div class="codecolorer-container python default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">python -c <span style="color: #483d8b;">'import SimpleHTTPServer;SimpleHTTPServer.test()'</span></div></td></tr></tbody></table></div><p>Ca lance un petit serveur http sur le port 8000, partageant les fichiers du répertoire courant. Pointez vôtre navigateur sur http://127.0.0.1:8000/ et vous servira le fichier index.html si il existe, sinon il listera le répertoire courant. Et il bavera toutes les infos sur le stdout, exemple:</p><div class="codecolorer-container python default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ python -c <span style="color: #483d8b;">'import SimpleHTTPServer;SimpleHTTPServer.test()'</span><br /> Serving HTTP on 0.0.0.0 port <span style="color: #ff4500;">8000</span> ...<br /> <span style="color: black;">localhost</span> - - <span style="color: black;">&#91;</span><span style="color: #ff4500;">25</span>/Apr/<span style="color: #ff4500;">2009</span> <span style="color: #ff4500;">00</span>:<span style="color: #ff4500;">01</span>:<span style="color: #ff4500;">27</span><span style="color: black;">&#93;</span> <span style="color: #483d8b;">&quot;GET / HTTP/1.1&quot;</span> <span style="color: #ff4500;">200</span> -<br /> localhost - - <span style="color: black;">&#91;</span><span style="color: #ff4500;">25</span>/Apr/<span style="color: #ff4500;">2009</span> <span style="color: #ff4500;">00</span>:<span style="color: #ff4500;">01</span>:<span style="color: #ff4500;">38</span><span style="color: black;">&#93;</span> <span style="color: #483d8b;">&quot;GET /Documents/ HTTP/1.1&quot;</span> <span style="color: #ff4500;">200</span> -<br /> localhost - - <span style="color: black;">&#91;</span><span style="color: #ff4500;">25</span>/Apr/<span style="color: #ff4500;">2009</span> <span style="color: #ff4500;">00</span>:<span style="color: #ff4500;">01</span>:<span style="color: #ff4500;">44</span><span style="color: black;">&#93;</span> <span style="color: #483d8b;">&quot;GET /Documents/test.txt HTTP/1.1&quot;</span> <span style="color: #ff4500;">200</span> -</div></td></tr></tbody></table></div><p>De plus il est &laquo;&nbsp;chrooté&nbsp;&raquo; au répertoire dans lequel vous l&#8217;aurez lancé &#8211; essayer d&#8217;accéder a http://127.0.0.1:8000/../ vous laissera dans le répertoire courant.</p><p>Voilà pour la petite astuce du soir..</p><p><strong>Maj du 29 Avril 2009</strong>: Vu sur <a rel="nofollow" href="http://www.tux-planet.fr" rel="nofollow">http://www.tux-planet.fr</a>, une version encore plus simple:</p><div class="codecolorer-container python default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">python -m <span style="color: #dc143c;">SimpleHTTPServer</span></div></td></tr></tbody></table></div><p><strong>Maj du 04 Mai 2009</strong>: Voici une version multithreadé et pas beaucoup plus compliquée:</p><div class="codecolorer-container python default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span><br /> <span style="color: #808080; font-style: italic;"># -*- coding: utf-8 -*-</span><br /> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">SocketServer</span><br /> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">BaseHTTPServer</span><br /> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span><span style="color: #66cc66;">,</span> <span style="color: #dc143c;">os</span><br /> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">CGIHTTPServer</span><br /> port <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">8000</span><br /> <span style="color: #ff7700;font-weight:bold;">class</span> ThreadingCGIServer<span style="color: black;">&#40;</span><span style="color: #dc143c;">SocketServer</span>.<span style="color: black;">ThreadingMixIn</span><span style="color: #66cc66;">,</span> <span style="color: #dc143c;">BaseHTTPServer</span>.<span style="color: black;">HTTPServer</span><span style="color: black;">&#41;</span>:<br /> &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">pass</span><br /> server <span style="color: #66cc66;">=</span> ThreadingCGIServer<span style="color: black;">&#40;</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">''</span><span style="color: #66cc66;">,</span> port<span style="color: black;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #dc143c;">CGIHTTPServer</span>.<span style="color: black;">CGIHTTPRequestHandler</span><span style="color: black;">&#41;</span><br /> <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Serveur demarre sur le port %s.&quot;</span> % port<br /> <span style="color: #ff7700;font-weight:bold;">try</span>:<br /> &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">while</span> <span style="color: #ff4500;">1</span>:<br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #dc143c;">sys</span>.<span style="color: black;">stdout</span>.<span style="color: black;">flush</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; server.<span style="color: black;">handle_request</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><br /> <span style="color: #ff7700;font-weight:bold;">except</span> <span style="color: #008000;">KeyboardInterrupt</span>:<br /> &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Fini !&quot;</span></div></td></tr></tbody></table></div> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/reseaux/serveur-http-python-en-une-ligne-649/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Remplacer le firmware de la fonera avec dd-wrt (sous Mac)</title><link>http://www.crashdump.fr/reseaux/flasher-sa-fonera-en-dd-wrt-sous-os-x-357/</link> <comments>http://www.crashdump.fr/reseaux/flasher-sa-fonera-en-dd-wrt-sous-os-x-357/#comments</comments> <pubDate>Mon, 08 Sep 2008 14:28:05 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Réseaux]]></category> <category><![CDATA[0.7.1r2]]></category> <category><![CDATA[0.7.1r3]]></category> <category><![CDATA[0.7.1r4]]></category> <category><![CDATA[dd-wrt]]></category> <category><![CDATA[Firmware]]></category> <category><![CDATA[flasher]]></category> <category><![CDATA[fonera]]></category> <category><![CDATA[Gateway]]></category> <category><![CDATA[http]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[radius]]></category> <category><![CDATA[réseau]]></category> <category><![CDATA[tftp]]></category> <category><![CDATA[Tuto]]></category> <category><![CDATA[tutoriel]]></category> <category><![CDATA[wifi]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=357</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2008/09/fonera-wrt.jpg" class="attachment-featured-image wp-post-image" alt="fonera-wrt" title="fonera-wrt" /></p><br />Attention, ce tutoriel ne concerne que les versions de firmware 0.7.1r2 ou plus récent. Dans ce tutoriel je vais essayer vous expliquer comment flasher sa Fonera avec le firmware DD-WRT avec votre Mac préféré. DD-WRT, C&#8217;est quoi ? Tout simplement firmware alternatif qui vous apporte pleins de fonctions: un mode client en wifi, système de [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2008/09/fonera-wrt.jpg" class="attachment-featured-image wp-post-image" alt="fonera-wrt" title="fonera-wrt" /></p><br /><p><strong>Attention, ce tutoriel ne concerne que les versions de firmware 0.7.1r2 ou plus récent.</strong></p><p><i>Dans ce tutoriel je vais <del>essayer</del> vous expliquer comment flasher sa Fonera avec le firmware DD-WRT avec votre Mac préféré. DD-WRT, C&#8217;est quoi ? Tout simplement firmware alternatif qui vous apporte pleins de fonctions: un mode client en wifi, système de hotspot (Chilli) et encore pleins d&#8217;autres choses.. en plus il est gratuit. Pourquoi s&#8217;en priver ?</i></p><h3><li>Ce dont vous aurez besoin</li></h3><li><ul>Un câble ethernet (RJ45, Droit): pour connecter la Fonera à votre machine,</ul><ul>Le firmware DD-WRT: Téléchargez le ici (<a rel="nofollow" href="http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fv24%2FAtheros+WiSoc%2FFonera/">Final version</a> ou <a rel="nofollow" href="http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fobsolete%2Frelease+candidates/">Release Candidate</a>)</ul><ul>Ces deux fichiers: <a rel="nofollow" href="http://fonera.info/camicia/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma">openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma</a> et <a rel="nofollow" href="http://fonera.info/camicia/out.hex">out.hex</a></ul><ul><del>Un serveur http</del>: OS X en intègre un,</ul><ul><del>Un serveur tftp</del>: OS X en intègre un aussi,</ul><ul><del>Un client SSH, Telnet</del>: Terminal, aussi intégré à OS X.</ul></li><p><strong>Attention, il est important de télécharger ces fichiers avant de commencer ce tutoriel car vous n&#8217;aurez plus de connexion a internet pendant la procédure&#8230; Sauf si vous avez plusieurs machines.. ;)</strong></p><h3><li>Vérifier la version de la fonera</li></h3><p>1. Procédure de reset:<br /> - Maintenez le bouton reset 30s,<br /> - Débranchez/retranchez l&#8217;alimentation tout en maintenant le reset,<br /> - Continuez a appuyer dessus jusqu&#8217;à ce que la led wifi s&#8217;allume puis s&#8217;éteigne (2-3 minutes),<br /> - Relâchez (enfin) le reset puis attendez (encore) 2-3 minutes que la led wifi s&#8217;allume de nouveau.</ul><p>2. Connecter: Pour cela on va brancher la Fonera directement à l&#8217;ordinateur en RJ45 puis configurer l&#8217;adresse Ip de la carte Ethernet en: 169.254.255.2/255.255.0.0 (la fonera ayant l&#8217;adresse: 169.254.255.1).<br /> 3. Récupérer la version: Ouvrez votre navigateur et tapez dans la barre d&#8217;adresse &laquo;&nbsp;http://169.254.255.1&#8243;<br /> 4. Si un login/mdp vous est demandé entrez:<br /> - login: root<br /> - pass: admin</p><h3><li>Exploiter RADIUS pour obtenir un accès SSH</li></h3><p>A chaque démarrage de la fonera elle se connecte a un serveur RADIUS (/usr/sbin/chilli_radconfig) pour télécharger la configuration la plus récente (/etc/chilli.conf).<br /> FON a pris des précautions pour sécuriser l&#8217;utilisation du serveur SSH mais n&#8217;a pas fait de même pour leur serveur RADIUS, nous allons exploiter cette faille en se connectant à un serveur spoofé qui va nous permettre d&#8217;avoir la main sur cette petite bête..<br /> Pour cela nous allons devoir faire pointer la Fonera sur un serveur DNS qui redirigera l&#8217;adresse &laquo;&nbsp;radius01.fon.com&nbsp;&raquo; vers un serveur RADIUS &laquo;&nbsp;Non-officiel&nbsp;&raquo; sur lequel elle récupérera un fichier config a notre sauce.</p><p>En résumé. Donc tout ce que l&#8217;on a à faire c&#8217;est configurer la Fonera pour qu&#8217;elle pointe sur le DNS: &laquo;&nbsp;88.198.165.155&#8243; ce qui redirigera &laquo;&nbsp;radius01.fon.com&nbsp;&raquo; sur &laquo;&nbsp;kolofonium.datenbruch.de&nbsp;&raquo; (qui est un serveur Radius &laquo;&nbsp;pirate&nbsp;&raquo;).</p><p>1. Ouvrez votre navigateur et tapez dans la barre d&#8217;adresse &laquo;&nbsp;http://169.254.255.1&#8243;<br /> 2. Allez dans &laquo;&nbsp;advanced&nbsp;&raquo; et entrez les paramètres réseau avec:<br /> - Ip: une Ip valide derrière votre Box internet (ex: 192.168.3.20, chez moi)<br /> - Network Mask: 255.255.255.0<br /> - Gateway: L&#8217;Ip de votre Box Internet. (ex: 192.168.3.242, chez moi)<br /> - DNS: 88.198.165.155</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/hacked-dns.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/hacked-dns-430x125.jpg" alt="" title="hacked-dns" width="430" height="125" class="alignnone size-thumbnail wp-image-359" /></a></p><p>3. Connectez la Fonera directement a un des ports ethernet de votre box internet,<br /> 4. Redémarrez enfin la Fonera puis attendez quelques minutes pour la redémarrer à nouveau.</p><p>La modification touche le fichier &laquo;&nbsp;/etc/raddb/users&nbsp;&raquo;, le nouveau contient:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">chillispot Auth-Type = External<br /> &nbsp; &nbsp; &nbsp; &nbsp; Exec-Program-Wait = &quot;/etc/raddb/fonera.sh&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;radiusserver1 radius01.fon.com&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;radiusserver2 radius02.fon.com&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;radiussecret garrafon&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;dhcpif eth1&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamsecret garrafon&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamanydns&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamallowed www.martinvarsavsky.net,www.google.com,www.flickr.com,static.flickr.com,video.google.com,216.239.51.0/24,66.249.81.0/24&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamallowed www.fon.com,www.paypal.com,www.paypalobjects.com,www.skype.com,66.249.93.0/24,72.14.207.0/24,72.14.209.0/24,84.96.67.0/24,213.91.9.0/24,80.118.99.0/24&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamallowed shop.fon.co.kr,secure.nuguya.com,inilite.inicis.com,fon-en.custhelp.com,maps.fon.com,c20.statcounter.com&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamserver https://login.fon.com/cp/index.php&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;# Greetings from Michael and Stefan&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;# http://mrmuh.blogspot.com/ &amp; http://stefans.datenbruch.de/lafonera/&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamallowed stefans.datenbruch.de&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;ipup /etc/init.d/dropbear&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; Fall-Through = 0</div></td></tr></tbody></table></div><p>On notera la ligne &laquo;&nbsp;ipup /etc/init.d/dropbear&nbsp;&raquo;: C&#8217;est elle qui lance le serveur SSH des que l&#8217;interface &laquo;&nbsp;publique&nbsp;&raquo; est démarrée.</p><h3><li>Se connecter a notre joli serveur SSH</li></h3><p>1. Reconnectez la Fonera a votre machine par l&#8217;interface Ethernet (rappel ip: 169.254.255.1)</p><p>2. Ouvrez un Terminal (Applications > Terminal) et tapez:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># ssh root@169.254.255.1</div></td></tr></tbody></table></div><p>3. On accepte la clé et on entre le mot de passe &laquo;&nbsp;admin&nbsp;&raquo;</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/ssh-fon.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/ssh-fon-430x125.jpg" alt="" title="ssh-fon" width="430" height="125" class="alignnone size-thumbnail wp-image-363" /></a></p><p>4. Yeepee, on est dedans :)</p><p>5. Activer le SSH en permanence:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mv /etc/init.d/dropbear /etc/init.d/S50dropbear</div></td></tr></tbody></table></div><h3><li>Configurer notre serveur HTTP</li></h3><p>1. Rendez-vous dans vos &laquo;&nbsp;Préférences systèmes&nbsp;&raquo; puis dans &laquo;&nbsp;Partage&nbsp;&raquo;, Activez le &laquo;&nbsp;Partage web&nbsp;&raquo;. Notez l&#8217;url du bas, (ici: http://mac.local/~rzo ou http://169.254.5.199/~rzo) Vous trouverez votre Ip dans les préférences réseau de OSX, la mienne est &laquo;&nbsp;169.254.5.199&#8243;</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/partage-web.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/partage-web-430x125.jpg" alt="" title="partage-web" width="430" height="125" class="alignnone size-thumbnail wp-image-364" /></a></p><p>2. Puis mettez les 2 fichiers téléchargé plus tôt dans le répertoire de partage web de votre utilisateur (/Users/&#8217;nomUtilisateur&#8217;/Sites/)<br /> - openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma<br /> - out.hex<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2008/09/partage-web2.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/partage-web2-430x125.jpg" alt="" title="partage-web2" width="430" height="125" class="alignnone size-thumbnail wp-image-365" /></a></p><h3><li>Accès à la mtd</li></h3><p>1. On récupère nos fichiers sur la Fonera:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /tmp<br /> # wget http://169.254.5.199/~username/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma</div></td></tr></tbody></table></div><p>2. On flashe avec le firmware modifié, ce qui nous permet un accès à la mtd:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7<br /> # reboot</div></td></tr></tbody></table></div><p>Soyez patients, cela peut prendre du temps&#8230;</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/flash-vmlinux.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/flash-vmlinux-430x125.jpg" alt="" title="flash-vmlinux" width="430" height="125" class="alignnone size-thumbnail wp-image-367" /></a></p><p>3. on se reconnecte en SSH et on lui applique le out.hex (fichier config redboot)</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /tmp<br /> # wget http://169.254.5.199/~username/out.hex<br /> # mtd -e &quot;RedBoot config&quot; write out.hex &quot;RedBoot config&quot;<br /> # reboot</div></td></tr></tbody></table></div><p>Attention, si vous avez l&#8217;erreur: &laquo;&nbsp;Could not open mtd device&nbsp;&raquo; assurez vous d&#8217;avoir tapé la commande en respectant les majuscules, c&#8217;est case sensitive.</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/redboot-configouthex.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/redboot-configouthex-430x125.jpg" alt="" title="redboot-configouthex" width="430" height="125" class="alignnone size-thumbnail wp-image-368" /></a></p><h3><li>Configurer le serveur tftp</li></h3><p>1. Entrez dans un Terminal: (dans mon cas il existait déjà.. vérifiez quand même..)</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo mkdir /private/tftpboot</div></td></tr></tbody></table></div><p>2. Copiez le firmware de dd-wrt à la racine du serveur tftp (linux.bin):<br /> - Déplacez le fichier sur le bureau.<br /> - Tapez:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo cp ~/Desktop/linux.bin /private/tftpboot/</div></td></tr></tbody></table></div><p>3. On démarre le serveur tfp, tapez:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /sbin/service tftp start</div></td></tr></tbody></table></div><h3><li>Quand on touche au but..</li></h3><p>NOTA: A ce stade la Fonera ne peux pas démarrer correctement, c&#8217;est normal &#8211; et indispensable &#8211; le répertoire FIS est complètement effacé. Par contre nous pouvons toujours nous connecter au RedBoot, pour cela:</p><p>1. Configurez votre carte Ethernet pour avoir l&#8217;Ip: 192.168.1.10</p><p>2. Préparez un Terminal avec la ligne suivante: <b>Ne tapez pas entrée tout de suite !</b></p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ telnet 192.168.1.254 9000</div></td></tr></tbody></table></div><p>3. Débranchez et rebranchez l&#8217;alimentation de la Fonera, puis validez la commande ci-dessus dans les 10 secondes qui suivent le branchement.<br /> NOTE: Le pre-boot de la Fonera peut prendre du temps, n&#8217;hésitez pas à retaper la commande plusieurs fois.. (Tips: Flèche haut).</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/telnet-redboot.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/telnet-redboot-430x125.jpg" alt="" title="telnet-redboot" width="430" height="125" class="alignnone size-thumbnail wp-image-371" /></a></p><p>4. On a le shell, on configure le réseau. qui va pointer sur notre serveur tftp:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&gt; ip_address -l 192.168.1.254/24 -h 192.168.1.10</div></td></tr></tbody></table></div><p>5. Puis on flashe ! Répondez &laquo;&nbsp;y&nbsp;&raquo; quand on vous pose des questions.</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&gt; fis init<br /> &gt; load -r -b 0x80041000 linux.bin<br /> &gt; fis create linux</div></td></tr></tbody></table></div><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/telnet-flashing.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/telnet-flashing-430x125.jpg" alt="" title="telnet-flashing" width="430" height="125" class="alignnone size-thumbnail wp-image-369" /></a></p><p>Ces commandes sont très longues a exécuter, ne vous affolez pas ! (&laquo;&nbsp;fis create linux&nbsp;&raquo; a pris 30 minutes chez moi&#8230;).<br /> Ne pas rebooter ensuite, il va falloir modifier le script de démarrage !</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">RedBoot&gt; fconfig<br /> Run script at boot: true<br /> Boot script:<br /> .. fis load -l vmlinux.bin.l7<br /> .. exec<br /> Enter script, terminate with empty line<br /> &gt;&gt; fis load -l linux<br /> &gt;&gt; exec<br /> &gt;&gt;<br /> Boot script timeout (1000ms resolution): 10<br /> Use BOOTP for network configuration: false<br /> Gateway IP address:<br /> Local IP address: 192.168.1.254<br /> Local IP address mask: 255.255.255.0<br /> Default server IP address: &lt;blank&gt;<br /> Console baud rate: 9600<br /> GDB connection port: 9000<br /> Force console for special debug messages: false<br /> Network debug at boot time: false<br /> Update RedBoot non-volatile configuration - continue (y/n)? y<br /> ... Erase from 0xa87e0000-0xa87f0000: .<br /> ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .<br /> RedBoot&gt;reset</div></td></tr></tbody></table></div><p>Voilà, vous y êtes, redémarrez la Fonera, configurez votre réseau ethernet (ou wifi) en DHCP puis lancez un navigateur sur l&#8217;url: http://192.168.1.1. <strong>Félicitation.</strong></p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/final-ddwrt-ok.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/final-ddwrt-ok-430x125.jpg" alt="" title="final-ddwrt-ok" width="430" height="125" class="alignnone size-thumbnail wp-image-370" /></a></p><p><em>NOTE: l&#8217;utilisateur/mot de passe est le même. login: root, mdp: admin</em></p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/reseaux/flasher-sa-fonera-en-dd-wrt-sous-os-x-357/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Installer Fail2Ban 0.8.x sur une Deb&#8217;</title><link>http://www.crashdump.fr/securite/installer-fail2ban-08x-sur-une-deb-14/</link> <comments>http://www.crashdump.fr/securite/installer-fail2ban-08x-sur-une-deb-14/#comments</comments> <pubDate>Sun, 17 Jun 2007 11:23:26 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Sécurité]]></category> <category><![CDATA[Adrien Pujol]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[galéré car tous]]></category> <category><![CDATA[http]]></category> <category><![CDATA[je le rapelle car c'est très]]></category><guid isPermaLink="false">http://blog.aemeth.org/?p=14</guid> <description><![CDATA[Voici un moyen d&#8217;installer fail2ban (0.8.0-2) sur une Debian Etch. Ca intéressera les gens qui comme moi en ont marre des logs auth.log au kilomètre et aussi par souci de sécurité, évidemment. On peux installer fail2ban après avoir maj les listes de packages 12# apt-get update # apt-get install fail2ban Passons à la config fail2ban. [...]]]></description> <content:encoded><![CDATA[<p>Voici un moyen d&#8217;installer fail2ban (0.8.0-2) sur une Debian Etch. Ca intéressera les gens qui comme moi en ont marre des logs auth.log au kilomètre et aussi par souci de sécurité, évidemment.</p><p>On peux installer fail2ban après avoir maj les listes de packages</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># apt-get update<br /> # apt-get install fail2ban</div></td></tr></tbody></table></div><p>Passons à la config fail2ban. Depuis je ne sais plus quelle version elle ne se fait plusdans le fichier jail.conf (j&#8217;ai d&nbsp;&raquo;ailleurs galéré car tous les tutos sur le net parlent de ce fichier). Elle se fera dans un fichier jail.local qui supplante les instructions de jail.conf, Ce dernier pouvant être modifié par une Maj&#8230;<br /> Voici donc mon fichier jail.conf, qui est &#8211; je le rapelle car c&#8217;est très important &#8211; le seul a modifier !<br /> <span id="more-14"></span></p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Fail2Ban conf for aemeth.org<br /> # par Adrien Pujol &lt;thepolux@gmail.com&gt;<br /> #----- CONFIGURATION GENERALE ------------------------------------------#<br /> [DEFAULT]<br /> # Adresse mail ou envoyer les informations<br /> destemail = thepolux@gmail.com<br /> # White list<br /> ignoreip &nbsp;= 127.0.0.1<br /> # Reglages par défaut !<br /> bantime &nbsp; = 3600<br /> maxretry &nbsp;= 3<br /> findtime &nbsp;= 300<br /> # Backend<br /> backend &nbsp; = polling<br /> # Ban action ..<br /> banaction = iptables-multiport<br /> # Action par défaut !<br /> action &nbsp; &nbsp;= %(action_mwl)s<br /> #----- SERVICES A SURVEILLER -----------------------------------#<br /> [ssh]<br /> enabled &nbsp; = true<br /> [apache]<br /> enabled &nbsp; = true<br /> maxretry &nbsp;= 5<br /> [apache-noscript]<br /> enabled &nbsp; = true<br /> port &nbsp; &nbsp; &nbsp;= http<br /> filter &nbsp; &nbsp;= apache-noscript<br /> logpath &nbsp; = /var/log/apache*/*error.log<br /> maxretry &nbsp;= 6<br /> [proftpd]<br /> enabled &nbsp; = true<br /> logpath &nbsp; = /var/log/auth.log<br /> [postfix]<br /> enabled &nbsp; = true<br /> [courierauth]<br /> enabled &nbsp; = true<br /> [sasl]<br /> enabled &nbsp; = true</div></td></tr></tbody></table></div><p>C&#8217;est ici mon fichier de config, ajusté en fonction de mes besoins&#8230; ce n&#8217;est pas forcément ce qu&#8217;il vous faut ! Ajustez en conséquence !<br /> Tout est suffisament commenté pour que je n&#8217;ai pas besoin d&#8217;en dire plus ;)</p><p>On redémarre fail2ban-client :</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># fail2ban-client stop<br /> Shutdown successful<br /> # fail2ban-client start</div></td></tr></tbody></table></div><p>On vérifie comme ceci :</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># fail2ban-client -d<br /> ['set', 'loglevel', 3]<br /> ['set', 'logtarget', '/var/log/fail2ban.log']<br /> ['add', 'apache-noscript', 'polling']<br /> ['set', 'apache-noscript', 'addlogpath', '/var/log/apache2/error.log']<br /> ['set', 'apache-noscript', 'addlogpath', '/var/log/apache2/files_error.log']<br /> ['set', 'apache-noscript', 'maxretry', 6]<br /> ['set', 'apache-noscript', 'addignoreip', '127.0.0.1']<br /> ['set', 'apache-noscript', 'findtime', 300]<br /> ['set', 'apache-noscript', 'bantime', 3600]<br /> ... <br /> [Fail2Ban] &lt;name&gt;: started&quot; &lt;dest&gt;']<br /> ['set', 'courierauth', 'actionunban', 'mail-whois-lines', '']<br /> ['set', 'courierauth', 'actioncheck', 'mail-whois-lines', '']<br /> ['set', 'courierauth', 'setcinfo', 'mail-whois-lines', 'dest', 'thepolux@gmail.com']<br /> ['set', 'courierauth', 'setcinfo', 'mail-whois-lines', 'logpath', '/var/log/mail.log']<br /> ['set', 'courierauth', 'setcinfo', 'mail-whois-lines', 'name', 'courierauth']<br /> ['start', 'apache-noscript']<br /> ['start', 'postfix']<br /> ['start', 'proftpd']<br /> ['start', 'ssh']<br /> ['start', 'sasl']<br /> ['start', 'apache']<br /> ['start', 'courierauth']</div></td></tr></tbody></table></div><p>Et encore comme ça:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -L | grep fail2ban<br /> fail2ban-courierauth &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp,imap2,imap3,imaps,pop3,pop3s<br /> fail2ban-apache &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports www,https<br /> fail2ban-ssh &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ssh,sftp<br /> fail2ban-proftpd &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ftp,ftp-data,ftps,ftps-data<br /> fail2ban-postfix &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp<br /> fail2ban-courierauth &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp,imap2,imap3,imaps,pop3,pop3s<br /> fail2ban-apache &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports www,https<br /> fail2ban-ssh &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ssh,sftp<br /> fail2ban-couriersmtp &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp<br /> fail2ban-ssh-ddos &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ssh,sftp<br /> fail2ban-proftpd &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ftp,ftp-data,ftps,ftps-data<br /> fail2ban-postfix &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp<br /> fail2ban-apache-noscript &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports www,https<br /> Chain fail2ban-apache (2 references)<br /> Chain fail2ban-apache-noscript (1 references)<br /> Chain fail2ban-courierauth (2 references)<br /> Chain fail2ban-couriersmtp (1 references)<br /> Chain fail2ban-postfix (2 references)<br /> Chain fail2ban-proftpd (2 references)<br /> Chain fail2ban-ssh (2 references)<br /> Chain fail2ban-ssh-ddos (1 references)</div></td></tr></tbody></table></div><p>Ok, ça roule ! :]</p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/securite/installer-fail2ban-08x-sur-une-deb-14/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Served from: www.crashdump.fr @ 2012-02-04 20:05:42 by W3 Total Cache -->
