<?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; mise a jour</title> <atom:link href="http://www.crashdump.fr/tag/mise-a-jour/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>Installer Spamassasin pour exim4 sous debian</title><link>http://www.crashdump.fr/debian/installer-spamassasin-pour-exim4-sous-debian-58/</link> <comments>http://www.crashdump.fr/debian/installer-spamassasin-pour-exim4-sous-debian-58/#comments</comments> <pubDate>Sat, 09 Feb 2008 14:13:22 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Change]]></category> <category><![CDATA[exim4]]></category> <category><![CDATA[mise a jour]]></category> <category><![CDATA[spamassasin]]></category> <category><![CDATA[spamd]]></category><guid isPermaLink="false">http://www.crashdump.fr/blog/?p=58</guid> <description><![CDATA[Installer spamassasin On commence par telecharger et installer l&#8217;appli: 1# aptitude install spamassassin Configurer Exim4 Ouvrir le fichier de configuration exim4 concernant la configuration des options (attention, suivant le type d&#8217;installation d&#8217;exim le fichier de configuration peut ne pas se trouver au même endroit, en effet il existe une installation avec un fichier de configuration [...]]]></description> <content:encoded><![CDATA[<h2><li>Installer spamassasin</li></h2><p>On commence par telecharger et installer l&#8217;appli:</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"># aptitude install spamassassin</div></td></tr></tbody></table></div><h2><li>Configurer Exim4</li></h2><p>Ouvrir le fichier de configuration exim4 concernant la configuration des options (attention, suivant le type d&#8217;installation d&#8217;exim le fichier de configuration peut ne pas se trouver au même endroit, en effet il existe une installation avec un fichier de configuration unique et un type d&#8217;installation avec un fichier .conf unique) donc:</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"># vim /etc/exim4/conf.d/main/02_exim4-config_options</div></td></tr></tbody></table></div><p>Et décommenter la ligne suivante:</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">spamd_address = 127.0.0.1 783</div></td></tr></tbody></table></div><p><span id="more-58"></span></p><h2><li>Configurer spamd</li></h2><p>Editer le fichier config:<br /> <strong># vim /etc/default/spamassassin</strong></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">// Change to one to enable spamd<br /> ENABLED=1</div></td></tr></tbody></table></div><h2><li>Demmarer SpamAssassin</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"># /etc/init.d/spamassassin start</div></td></tr></tbody></table></div><h2><li>Mise a jour automatique</li></h2><p>Et pour finir, on va mettre en place une mise à jour (via cron) de spamd&#8230; Pour cela:</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 /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cat &gt; /root/ majspamassasin.sh <br /> #!/bin/sh<br /> # Update SpamAssassin Rules<br /> /usr/bin/sa-update -D channel,dns<br /> /etc/init.d/spamassassin restart</div></td></tr></tbody></table></div><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"># crontab -e</div></td></tr></tbody></table></div><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">55 &nbsp; 5 &nbsp;* &nbsp; * &nbsp; * &nbsp;/root/majspamassasin.sh 2&amp;1&gt;/dev/null</div></td></tr></tbody></table></div> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/debian/installer-spamassasin-pour-exim4-sous-debian-58/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: www.crashdump.fr @ 2012-02-09 05:28:33 by W3 Total Cache -->
