<?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; dedibox</title> <atom:link href="http://www.crashdump.fr/tag/dedibox/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>Mettre a jour une Debian Dedibox: Exploit root vmsplice</title><link>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/</link> <comments>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/#comments</comments> <pubDate>Thu, 14 Feb 2008 08:02:56 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Sécurité]]></category> <category><![CDATA[dedibox]]></category> <category><![CDATA[faille]]></category> <category><![CDATA[ftp://ftp.dedibox.fr/pub/dedibox/fix/fix-grub-root.sh]]></category> <category><![CDATA[ftp://ftp.dedibox.fr/pub/dedibox/kernel/r8-1/C7-X86-32bits/kernel-image-2.6.24.2-c7-r8-1.deb]]></category> <category><![CDATA[kernel]]></category> <category><![CDATA[mise a jour]]></category> <category><![CDATA[noyau]]></category> <category><![CDATA[patch grub]]></category> <category><![CDATA[update]]></category> <category><![CDATA[upgrade]]></category> <category><![CDATA[vmsplice]]></category><guid isPermaLink="false">http://www.crashdump.fr/blog/index.php/2008/02/14/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice/</guid> <description><![CDATA[http://www.securiteam.com/unixfocus/5JP0C0UNFU.html Un tutoriel de mise a jour du kernel par dedibox: http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau La faille a été corrigé par les équipes de sécurité de la plupart des distributions. Aussi peut être pensez vous comme moi qu’un simple (pour debian) 12# apt-get update # apt-get upgrade Pourrais vous mettre à l&#8217;abri… Malheureusement chez dédibox il est optimisé [...]]]></description> <content:encoded><![CDATA[<p><a rel="nofollow" href="http://www.securiteam.com/unixfocus/5JP0C0UNFU.html">http://www.securiteam.com/unixfocus/5JP0C0UNFU.html</a></p><p>Un tutoriel de mise a jour du kernel par dedibox: <a rel="nofollow" href="http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau">http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau</a></p><p>La faille a été corrigé par les équipes de sécurité de la plupart des distributions.<br /> Aussi peut être pensez vous comme moi qu’un simple (pour debian)</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 upgrade</div></td></tr></tbody></table></div><p>Pourrais vous mettre à l&#8217;abri… Malheureusement chez dédibox il est optimisé pour C7, donc spécifique. Pas de panique ça reste assez simple a corriger quand même.</p><ul>La manipulation pour corriger la faille est décrite ici:</ul><p>Je l’ai testé sur une testing:<br /> <span id="more-69"></span><br /> Si vous avez installé votre dédibox avant le 28 Mai 2006 (ou si vous possedez une version raid), cette partie ne vous concerne pas !<br /> Sinon, distributions Ubuntu-Server, Ubuntu Dedibox et Debian Sarge comportent un bug dans le comportement de grub-install. On va donc patcher grub.</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"># wget --passive ftp://ftp.dedibox.fr/pub/dedibox/fix/fix-grub-root.sh &amp;&amp; chmod +x fix-grub-root.sh</div></td></tr></tbody></table></div><p>On cherche sur quelle partition est “/” (pour savoir sur quel disque on boot):</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">mount | grep &quot;/ &quot;</div></td></tr></tbody></table></div><p>Ce qui devrait vous retourner quelque chose du genre:</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">/dev/sda1 on / type ext3 (rw,errors=remount-ro)</div></td></tr></tbody></table></div><p>C’est ce sda1 qui nous intéresse.. c&#8217;est le disque sur lequel boot votre machine !</p><p>On va donc lancer le script téléchargé précédemment, avec comme paramètre sda1 (dans notre cas, sinon remplacez par la bonne valeur):</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"># ./fix-grub-root.sh sda1</div></td></tr></tbody></table></div><p>Le script va modifier le fichier: /boot/grub/menu.lst pour y entrer les bonnes valeurs. Si un problème survient par la suite, le script créé une sauvegarde de ce fichier ici: /boot/grub/menu.lst.bak</p><ul>Mise a jour du Kernel</ul><p>On le télécharge:</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"># wget --passive ftp://ftp.dedibox.fr/pub/dedibox/kernel/r8-1/C7-X86-32bits/kernel-image-2.6.24.2-c7-r8-1.deb</div></td></tr></tbody></table></div><p>Puis on l’installe :</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"># dpkg -i kernel-image-2.6.24.2-c7-r8-1.deb</div></td></tr></tbody></table></div><p>On met a jour grub:</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 /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># update-grub<br /> Searching for GRUB installation directory ... found: /boot/grub<br /> Searching for default file ... found: /boot/grub/default<br /> Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst<br /> Searching for splash image ... none found, skipping ...<br /> &lt;strong&gt;Found kernel: /vmlinuz-2.6.24.2&lt;/strong&gt;<br /> Found kernel: /vmlinuz-2.6.23.13dedibox-r8<br /> Updating /boot/grub/menu.lst ... done</div></td></tr></tbody></table></div><p>Tout va bien il a trouvé notre noyau.. donc on reboot:</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"># reboot</div></td></tr></tbody></table></div><p>Prennez un café&#8230; puis on vérifie:</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"># uname -r<br /> 2.6.24.2dedibox-r8</div></td></tr></tbody></table></div><ul>Ipv6 Activé ?</ul><p>Il faut impérativement penser que l&#8217;IPV6 est activé et qu&#8217;il faut mettre les règles adoc pour filtrer un minimum.<br /> Personnellement, j e n&#8217;utilise pas &laquo;&nbsp;encore&nbsp;&raquo; ipv6 donc j&#8217;ai entré ces règles dans mon script iptables/ip6tables :</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 /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ip6tables -P INPUT DROP<br /> ip6tables -P OUTPUT DROP<br /> ip6tables -P FORWARD DROP<br /> echo &quot; Flushing rules (ip6)&quot;<br /> ip6tables --flush<br /> ip6tables --flush INPUT<br /> ip6tables --flush OUTPUT<br /> ip6tables --flush FORWARD<br /> ip6tables --flush -t mangle<br /> ip6tables --flush -t nat<br /> ip6tables --delete-chain</div></td></tr></tbody></table></div><p>C&#8217;est bon, je peut donc aller me recoucher, en paix. ;)</p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Backup HDD d&#8217;une dedibox en rescue.</title><link>http://www.crashdump.fr/tout-et-rien/backup-sda-dune-dedibox-en-rescue-29/</link> <comments>http://www.crashdump.fr/tout-et-rien/backup-sda-dune-dedibox-en-rescue-29/#comments</comments> <pubDate>Thu, 17 Jan 2008 14:53:47 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Tout-et-Rien]]></category> <category><![CDATA[Backup]]></category> <category><![CDATA[dedibox]]></category> <category><![CDATA[disque dur]]></category> <category><![CDATA[ftp]]></category> <category><![CDATA[nvftp]]></category> <category><![CDATA[rescue]]></category> <category><![CDATA[sauvegarde]]></category><guid isPermaLink="false">http://blog.nexus-6.fr/?p=29</guid> <description><![CDATA[Après une absence plutôt longue sur le blog, je vous propose un bout de shell qui pourrais vous être utile pour sauvegarder votre serveur. Ici l&#8217;exemple porte sur le serveur ftp de Backup dedibox. Mais on peut l&#8217;adapter a volonté.. ;) Explications 1dd if=/dev/[Peripherique] &#124; ncftpput -c [adresseServeurFtp] -u [Login] -p [Password] [NomDelImage].iso Exemple concret [...]]]></description> <content:encoded><![CDATA[<p>Après une absence plutôt longue sur le blog, je vous propose un bout de shell qui pourrais vous être utile pour sauvegarder votre serveur. Ici l&#8217;exemple porte sur le serveur ftp de Backup dedibox. Mais on peut l&#8217;adapter a volonté.. ;)</p><h2><li>Explications</li></h2><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">dd if=/dev/[Peripherique] | ncftpput -c [adresseServeurFtp] -u [Login] -p [Password] [NomDelImage].iso</div></td></tr></tbody></table></div><h2><li>Exemple concret</li></h2><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">dd if=/dev/sda | ncftpput -c backup.dedibox.fr -u sd-9519 -p passw0rd backup-sda_`date +%Y.%m.%d`.iso</div></td></tr></tbody></table></div><p>Rien ne vous empêche, par exemple, de faire un cron qui lancerais la sauvegarde tous les dimanches a 6h du mat&#8217;.</p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/tout-et-rien/backup-sda-dune-dedibox-en-rescue-29/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: www.crashdump.fr @ 2012-02-04 20:20:20 by W3 Total Cache -->
