<?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>Croc-Informatique.fr</title>
	<atom:link href="http://www.croc-informatique.fr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.croc-informatique.fr</link>
	<description>Le Blog Note d'Olivier Legras</description>
	<lastBuildDate>Wed, 24 Feb 2010 08:03:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Queue Postfix</title>
		<link>http://www.croc-informatique.fr/2010/02/queue-postfix/</link>
		<comments>http://www.croc-informatique.fr/2010/02/queue-postfix/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 08:01:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2010/02/queue-postfix/</guid>
		<description><![CDATA[Quelques commandes pour gérer vos mails en queue (mailq).
Traitement de Queue Postfix :

Schéma des mouvements d&#8217;un message dans la Queue de Postfix :

La première commande a utiliser est mailq pour voir l&#8217;état des mails (erreurs, blocage etc&#8230;).
Lister les messages en Queue :
postqueue -p
Résultats :
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
DBB3F1A7       [...]]]></description>
			<content:encoded><![CDATA[<p>Quelques commandes pour gérer vos mails en queue (mailq).</p>
<p><strong>Traitement de Queue Postfix :</strong></p>
<p><span id="more-478"></span></p>
<p>Schéma des mouvements d&#8217;un message dans la Queue de Postfix :</p>
<p><img alt="" src="http://wiki.ouitech.fr/lib/exe/fetch.php/tutoriels/gnu_linux/applications/queue_postfix.gif?w=&amp;h=&amp;cache=cache" /></p>
<p>La première commande a utiliser est <strong>mailq</strong> pour voir l&#8217;état des mails (erreurs, blocage etc&#8230;).</p>
<p><strong>Lister les messages en Queue :</strong></p>
<pre>postqueue -p</pre>
<p><strong>Résultats :</strong></p>
<pre>-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
DBB3F1A7        553 Mon May  5 14:42:15  titi@example.com
        (connect to mail.pouet.com[195.58.15.78]: Connection refused)
                                         titi@pouet.com</pre>
<p><strong>Supprimer un message en Queue :</strong></p>
<pre>postsuper -d DBB3F1A7</pre>
<p><strong>Supprimer tous les messages en Queue :</strong></p>
<pre>postsuper -d ALL</pre>
<p>Pour supprimer des messages en masse en fonction de l&#8217;adresse source ou destination, utilisez le script PFDEL Scripts pour supprimer des emails de la queue postfix.</p>
<p><strong>Mettre un messages en attente (hold) :</strong></p>
<pre>postsuper -h DBA3F1A7</pre>
<p><strong>Remettre un messages en mode normale (actif) :</strong></p>
<pre>postsuper -H DBA3F1A7</pre>
<p><strong>Remettre en Queue un message :</strong></p>
<pre>postsuper -r DBA3F1A7</pre>
<p><strong>Pour tous les messages :</strong></p>
<pre>postsuper -r ALL</pre>
<p><strong>Afficher le contenu d&#8217;un message :</strong></p>
<pre>postcat -q DBA3F1A9</pre>
<p><strong>Forcer l&#8217;envoie des messages en Queue (flush) :</strong></p>
<pre>postqueue -f</pre>
<p><strong>Pour forcer l&#8217;envoie de messages spécifique à un domaine non présent dans les paramètres relay_domains de la configuration Postfix :</strong></p>
<p>Ajouter cette ligne dans le fichier main.cf :</p>
<pre>fast_flush_domains = $relay_domains ledomaine.fr</pre>
<p><strong>Ensuite taper cette commande :</strong></p>
<pre>postqueue -s example.com</pre>
<p>&#160;</p>
<p>Cette article est une copie de l’article <a title="http://www.system-linux.eu/index.php?post/2009/01/27/Traitement-de-Queue-mail-Postfix#dotpoll8" href="http://www.system-linux.eu/index.php?post/2009/01/27/Traitement-de-Queue-mail-Postfix#dotpoll8">http://www.system-linux.eu/index.php?post/2009/01/27/Traitement-de-Queue-mail-Postfix#dotpoll8</a> que je trouve très bien.</p>
<p>Merci à l’auteur.</p>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F&amp;title=Queue%20Postfix&amp;bodytext=Quelques%20commandes%20pour%20g%C3%A9rer%20vos%20mails%20en%20queue%20%28mailq%29.%20%20Traitement%20de%20Queue%20Postfix%20%3A%0A%0A%20%20Sch%C3%A9ma%20des%20mouvements%20d%27un%20message%20dans%20la%20Queue%20de%20Postfix%20%3A%20%20%20%20La%20premi%C3%A8re%20commande%20a%20utiliser%20est%20mailq%20pour%20voir%20l%27%C3%A9tat%20des%20mails%20%28erreurs%2C%20blocage%20et" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F&amp;t=Queue%20Postfix" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F&amp;title=Queue%20Postfix&amp;annotation=Quelques%20commandes%20pour%20g%C3%A9rer%20vos%20mails%20en%20queue%20%28mailq%29.%20%20Traitement%20de%20Queue%20Postfix%20%3A%0A%0A%20%20Sch%C3%A9ma%20des%20mouvements%20d%27un%20message%20dans%20la%20Queue%20de%20Postfix%20%3A%20%20%20%20La%20premi%C3%A8re%20commande%20a%20utiliser%20est%20mailq%20pour%20voir%20l%27%C3%A9tat%20des%20mails%20%28erreurs%2C%20blocage%20et" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Queue%20Postfix%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F&amp;Title=Queue%20Postfix" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F&amp;title=Queue%20Postfix" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fqueue-postfix%2F&amp;title=Queue%20Postfix" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2010/02/queue-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer ffmpeg et ffmpeg-php sur Centos</title>
		<link>http://www.croc-informatique.fr/2010/02/installer-ffmpeg-et-ffmpeg-php-sur-centos/</link>
		<comments>http://www.croc-informatique.fr/2010/02/installer-ffmpeg-et-ffmpeg-php-sur-centos/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:40:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2010/02/installer-ffmpeg-et-ffmpeg-php-sur-centos/</guid>
		<description><![CDATA[vi /etc/yum.repos.d/dag.repo 

Coller :
[dag]      name=Dag RPM Repository for Red Hat Enterprise Linux       baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag       gpgcheck=0       enabled=1


&#160;
Faire :
yum install ffmpeg ffmpeg-devel

&#160;
Une fois tout installé, téléchargez ffmpeg-php : 
http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/
Placer le fichier télécharger sur le serveur [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>vi /etc/yum.repos.d/dag.repo </p>
</blockquote>
<p>Coller :</p>
<blockquote><p>[dag]      <br />name=Dag RPM Repository for Red Hat Enterprise Linux       <br />baseurl=<a href="http://apt.sw.be/redhat/el">http://apt.sw.be/redhat/el</a>$releasever/en/$basearch/dag       <br />gpgcheck=0       <br />enabled=1</p>
<p><span id="more-474"></span></p>
</blockquote>
<p>&#160;</p>
<p>Faire :</p>
<blockquote><p>yum install ffmpeg ffmpeg-devel</p>
</blockquote>
<p>&#160;</p>
<p>Une fois tout installé, téléchargez ffmpeg-php : </p>
<p><a title="http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/" href="http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/">http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/</a></p>
<p>Placer le fichier télécharger sur le serveur puis tapez les commandes suivantes :</p>
<blockquote><p>tar -xjf ffmpeg-php-0.6.0.tbz2</p>
<p>cd ffmpeg-php-0.6.0</p>
<p>phpize</p>
<p>./configure &amp;&amp; make</p>
<p>make install</p>
</blockquote>
<p>Editez le fichier /etc/php.ini et ajouter ces lignes :</p>
<blockquote><p>[ffmpeg]     <br />extension=ffmpeg.so</p>
</blockquote>
<p>Sur la page phpinfo, vous verrez apparaître :</p>
<p><a href="http://www.croc-informatique.fr/wp-content/uploads/2010/02/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.croc-informatique.fr/wp-content/uploads/2010/02/image_thumb.png" width="446" height="177" /></a> </p>
<p>Si vous n’avez pas phpize, installez php-devel :</p>
<blockquote><p>yum install php-devel</p>
</blockquote>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F&amp;title=Installer%20ffmpeg%20et%20ffmpeg-php%20sur%20Centos&amp;bodytext=%20%20%20vi%20%2Fetc%2Fyum.repos.d%2Fdag.repo%20%20%20%20Coller%20%3A%20%20%20%20%20%5Bdag%5D%20%20%20%20%20%20name%3DDag%20RPM%20Repository%20for%20Red%20Hat%20Enterprise%20Linux%20%20%20%20%20%20%20baseurl%3Dhttp%3A%2F%2Fapt.sw.be%2Fredhat%2Fel%24releasever%2Fen%2F%24basearch%2Fdag%20%20%20%20%20%20%20gpgcheck%3D0%20%20%20%20%20%20%20enabled%3D1%0A%0A%20%20%20%26%23160%3B%20%20Faire%20%3A%20%20%20%20%20yum%20install%20" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F&amp;t=Installer%20ffmpeg%20et%20ffmpeg-php%20sur%20Centos" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F&amp;title=Installer%20ffmpeg%20et%20ffmpeg-php%20sur%20Centos&amp;annotation=%20%20%20vi%20%2Fetc%2Fyum.repos.d%2Fdag.repo%20%20%20%20Coller%20%3A%20%20%20%20%20%5Bdag%5D%20%20%20%20%20%20name%3DDag%20RPM%20Repository%20for%20Red%20Hat%20Enterprise%20Linux%20%20%20%20%20%20%20baseurl%3Dhttp%3A%2F%2Fapt.sw.be%2Fredhat%2Fel%24releasever%2Fen%2F%24basearch%2Fdag%20%20%20%20%20%20%20gpgcheck%3D0%20%20%20%20%20%20%20enabled%3D1%0A%0A%20%20%20%26%23160%3B%20%20Faire%20%3A%20%20%20%20%20yum%20install%20" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Installer%20ffmpeg%20et%20ffmpeg-php%20sur%20Centos%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F&amp;Title=Installer%20ffmpeg%20et%20ffmpeg-php%20sur%20Centos" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F&amp;title=Installer%20ffmpeg%20et%20ffmpeg-php%20sur%20Centos" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Finstaller-ffmpeg-et-ffmpeg-php-sur-centos%2F&amp;title=Installer%20ffmpeg%20et%20ffmpeg-php%20sur%20Centos" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2010/02/installer-ffmpeg-et-ffmpeg-php-sur-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[NFS]&quot;possibly unsupported filesystem or fsid= required&quot;</title>
		<link>http://www.croc-informatique.fr/2010/02/nfspossibly-unsupported-filesystem-or-fsid-required/</link>
		<comments>http://www.croc-informatique.fr/2010/02/nfspossibly-unsupported-filesystem-or-fsid-required/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 15:01:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Astuces]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[erreur]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2010/02/nfspossibly-unsupported-filesystem-or-fsid-required/</guid>
		<description><![CDATA[Bon je mets cet article car j’en ai marre d’oublier à quoi correspond cette erreur et je ne trouve jamais la réponse sur le net.

&#160;
Cette erreur : &#34;possibly unsupported filesystem or fsid= required&#34; arrive quand on partage un répertoire qui est déjà pris sur un autre serveur.
NFS Client –&#62; Serveur NFS &#124; NFS Client –&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Bon je mets cet article car j’en ai marre d’oublier à quoi correspond cette erreur et je ne trouve jamais la réponse sur le net.</p>
<p><span id="more-472"></span></p>
<p>&#160;</p>
<p>Cette erreur : &quot;possibly unsupported filesystem or fsid= required&quot; arrive quand on partage un répertoire qui est déjà pris sur un autre serveur.</p>
<p>NFS Client –&gt; Serveur NFS | NFS Client –&gt; Serveur NFS</p>
<p>&#160;</p>
<p>Bon de toute façon ça ne marche pas…. Grrr</p>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F&amp;title=%5BNFS%5D%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B&amp;bodytext=Bon%20je%20mets%20cet%20article%20car%20j%E2%80%99en%20ai%20marre%20d%E2%80%99oublier%20%C3%A0%20quoi%20correspond%20cette%20erreur%20et%20je%20ne%20trouve%20jamais%20la%20r%C3%A9ponse%20sur%20le%20net.%0A%0A%20%20%26%23160%3B%20%20Cette%20erreur%20%3A%20%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B%20arrive%20quand%20on%20partage%20un%20" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F&amp;t=%5BNFS%5D%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F&amp;title=%5BNFS%5D%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B&amp;annotation=Bon%20je%20mets%20cet%20article%20car%20j%E2%80%99en%20ai%20marre%20d%E2%80%99oublier%20%C3%A0%20quoi%20correspond%20cette%20erreur%20et%20je%20ne%20trouve%20jamais%20la%20r%C3%A9ponse%20sur%20le%20net.%0A%0A%20%20%26%23160%3B%20%20Cette%20erreur%20%3A%20%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B%20arrive%20quand%20on%20partage%20un%20" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=%5BNFS%5D%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F&amp;Title=%5BNFS%5D%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F&amp;title=%5BNFS%5D%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F02%2Fnfspossibly-unsupported-filesystem-or-fsid-required%2F&amp;title=%5BNFS%5D%26quot%3Bpossibly%20unsupported%20filesystem%20or%20fsid%3D%20required%26quot%3B" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2010/02/nfspossibly-unsupported-filesystem-or-fsid-required/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Afficher un fichier de configuration sans les commentaires</title>
		<link>http://www.croc-informatique.fr/2009/12/afficher-un-fichier-de-configuration-sans-les-commentaires/</link>
		<comments>http://www.croc-informatique.fr/2009/12/afficher-un-fichier-de-configuration-sans-les-commentaires/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 13:15:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Astuces]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[conf]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[fichier]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/12/afficher-un-fichier-de-configuration-sans-les-commentaires/</guid>
		<description><![CDATA[Pour y voir plus claire, il est parfois nécessaire de voir seulement ce qui est activé dans les fichiers de configuration. Pour cela, je vous propose plusieurs commandes :

Grep :
grep -E -v &#8216;^(#&#124;$)&#8217; /etc/httpd/conf/httpd.conf
egrep -v &#8216;^(#&#124;$)&#8217;&#160; /etc/httpd/conf/httpd.conf

&#160;
On peut ajouter des délimiteurs de cette manière :
grep -E -v '^(#&#124;;&#124;$&#124;[ ]*#)' /etc/httpd/conf/httpd.conf

&#160;
Sed :

sed -e '/^[ ]*#/d' -e [...]]]></description>
			<content:encoded><![CDATA[<p>Pour y voir plus claire, il est parfois nécessaire de voir seulement ce qui est activé dans les fichiers de configuration. Pour cela, je vous propose plusieurs commandes :</p>
<p><span id="more-469"></span></p>
<p>Grep :</p>
<blockquote><p>grep -E -v &#8216;^(#|$)&#8217; /etc/httpd/conf/httpd.conf</p>
<p>egrep -v &#8216;^(#|$)&#8217;&#160; /etc/httpd/conf/httpd.conf</p>
</blockquote>
<p>&#160;</p>
<p>On peut ajouter des délimiteurs de cette manière :</p>
<blockquote><pre>grep -E -v '^(#|;|$|[ ]*#)' /etc/httpd/conf/httpd.conf</pre>
</blockquote>
<p>&#160;</p>
<p>Sed :</p>
<blockquote>
<pre>sed -e '/^[ ]*#/d' -e '/^$/d' /etc/httpd/conf/httpd.conf</pre>
</blockquote>
<p>On peut ajouter des délimiteurs :</p>
<blockquote>
<pre>sed -e '/^[ ]*#/d' -e '/^[ ]*;/d' -e '/^$/d' /etc/httpd/conf/httpd.conf</pre>
</blockquote>
<p>Perl :</p>
<blockquote>
<pre>perl -ne 'print unless /^\s*[;\$#]|^$/' /etc/httpd/conf/httpd.conf</pre>
</blockquote>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F&amp;title=Afficher%20un%20fichier%20de%20configuration%20sans%20les%20commentaires&amp;bodytext=Pour%20y%20voir%20plus%20claire%2C%20il%20est%20parfois%20n%C3%A9cessaire%20de%20voir%20seulement%20ce%20qui%20est%20activ%C3%A9%20dans%20les%20fichiers%20de%20configuration.%20Pour%20cela%2C%20je%20vous%20propose%20plusieurs%20commandes%20%3A%0A%0A%20%20Grep%20%3A%20%20%20%20%20grep%20-E%20-v%20%27%5E%28%23%7C%24%29%27%20%2Fetc%2Fhttpd%2Fconf%2Fhttpd.conf%20%20%20%20egrep%20-v%20%27%5E%28" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F&amp;t=Afficher%20un%20fichier%20de%20configuration%20sans%20les%20commentaires" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F&amp;title=Afficher%20un%20fichier%20de%20configuration%20sans%20les%20commentaires&amp;annotation=Pour%20y%20voir%20plus%20claire%2C%20il%20est%20parfois%20n%C3%A9cessaire%20de%20voir%20seulement%20ce%20qui%20est%20activ%C3%A9%20dans%20les%20fichiers%20de%20configuration.%20Pour%20cela%2C%20je%20vous%20propose%20plusieurs%20commandes%20%3A%0A%0A%20%20Grep%20%3A%20%20%20%20%20grep%20-E%20-v%20%27%5E%28%23%7C%24%29%27%20%2Fetc%2Fhttpd%2Fconf%2Fhttpd.conf%20%20%20%20egrep%20-v%20%27%5E%28" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Afficher%20un%20fichier%20de%20configuration%20sans%20les%20commentaires%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F&amp;Title=Afficher%20un%20fichier%20de%20configuration%20sans%20les%20commentaires" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F&amp;title=Afficher%20un%20fichier%20de%20configuration%20sans%20les%20commentaires" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F12%2Fafficher-un-fichier-de-configuration-sans-les-commentaires%2F&amp;title=Afficher%20un%20fichier%20de%20configuration%20sans%20les%20commentaires" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/12/afficher-un-fichier-de-configuration-sans-les-commentaires/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cr&#233;er un serveur OpenLdap S&#233;curis&#233; (LDAPS)</title>
		<link>http://www.croc-informatique.fr/2009/11/crer-un-serveur-openldap-scuris-ldaps/</link>
		<comments>http://www.croc-informatique.fr/2009/11/crer-un-serveur-openldap-scuris-ldaps/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 11:01:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Réseau]]></category>
		<category><![CDATA[Sécurité]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[ldaps]]></category>
		<category><![CDATA[openldap]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/11/crer-un-serveur-openldap-scuris-ldaps/</guid>
		<description><![CDATA[Nous allons configurer openldap pour s’assurer que l’authentification et les informations ne circulent pas en claires. Pour cela, nous allons devoir générer un certificat serveur à l’aide d’openssl, indiquer au serveurs Ldap d’utiliser ces certificats et enfin lui demander d’écouter sur un nouveau port pour les connexions sécurisées.

Pré-requis :

OpenLdap installé et configuré 
Openssl doit être [...]]]></description>
			<content:encoded><![CDATA[<p>Nous allons configurer openldap pour s’assurer que l’authentification et les informations ne circulent pas en claires. Pour cela, nous allons devoir générer un certificat serveur à l’aide d’openssl, indiquer au serveurs Ldap d’utiliser ces certificats et enfin lui demander d’écouter sur un nouveau port pour les connexions sécurisées.</p>
<p><span id="more-468"></span></p>
<h3>Pré-requis :</h3>
<ul>
<li>OpenLdap installé et configuré </li>
<li>Openssl doit être installé </li>
</ul>
<p>&#160;</p>
<h3>Génération du certificat serveur :</h3>
<p>Créer l’arborescence qui contiendra les certificats que nous allons générer :</p>
<blockquote><p>mkdir –p /etc/ssl /etc/ssl/openldap</p>
<p>cd /etc/ssl/openldap</p>
</blockquote>
<p>Générer le certificat :</p>
<blockquote><p>openssl req -x509 -new -config openssl-ldap.cnf -out ldap_cert.pem -keyout ldap_key.pem -days 730 –nodes</p>
</blockquote>
<p>Vous devez répondre aux questions. Celles-ci permettent à l’utilisateurs de connaître la provenance du certificat.</p>
<p>Deux fichiers vont être générés : ldap_cert.pem et ldap_key.pem</p>
<p>Mettez leurs les droits 440 propriétaire root groupe ldap</p>
<p>&#160;</p>
<h3>Configuration d’OpenLdap</h3>
<p>Editez le fichier /etc/openldap/slapd.conf et ajoutez :</p>
<blockquote><p>TLSCertificateFile /etc/ssl/openldap/ldap_cert.pem      <br />TLSCertificateKeyFile /etc/ssl/openldap/ldap_key.pem</p>
</blockquote>
<p>Ces lignes permettent de spécifier l’emplacement du certificat et de sa clé au serveur OpenLdap.</p>
<p>&#160;</p>
<p>Editez le fichier /etc/openldap/ldap.conf Pour qu’il ressemble à cela : </p>
<blockquote><p>URI&#160;&#160;&#160;&#160; <a href="ldaps://192.168.0.1:636">ldaps://192.168.0.1:636</a>       <br />TLS_CACERTDIR /etc/ssl/openldap/</p>
</blockquote>
<p>Le serveur ldap écoutera sur le port 636 au redémarrage du service ldap.</p>
<p>&#160;</p>
<p>Vous pouvez tenter une connexion avec JXplorer :</p>
<p><a href="http://www.croc-informatique.fr/wp-content/uploads/2009/11/image2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.croc-informatique.fr/wp-content/uploads/2009/11/image_thumb2.png" width="244" height="185" /></a></p>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F&amp;title=Cr%26eacute%3Ber%20un%20serveur%20OpenLdap%20S%26eacute%3Bcuris%26eacute%3B%20%28LDAPS%29&amp;bodytext=Nous%20allons%20configurer%20openldap%20pour%20s%E2%80%99assurer%20que%20l%E2%80%99authentification%20et%20les%20informations%20ne%20circulent%20pas%20en%20claires.%20Pour%20cela%2C%20nous%20allons%20devoir%20g%C3%A9n%C3%A9rer%20un%20certificat%20serveur%20%C3%A0%20l%E2%80%99aide%20d%E2%80%99openssl%2C%20indiquer%20au%20serveurs%20Ldap%20d%E2%80%99utiliser%20c" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F&amp;t=Cr%26eacute%3Ber%20un%20serveur%20OpenLdap%20S%26eacute%3Bcuris%26eacute%3B%20%28LDAPS%29" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F&amp;title=Cr%26eacute%3Ber%20un%20serveur%20OpenLdap%20S%26eacute%3Bcuris%26eacute%3B%20%28LDAPS%29&amp;annotation=Nous%20allons%20configurer%20openldap%20pour%20s%E2%80%99assurer%20que%20l%E2%80%99authentification%20et%20les%20informations%20ne%20circulent%20pas%20en%20claires.%20Pour%20cela%2C%20nous%20allons%20devoir%20g%C3%A9n%C3%A9rer%20un%20certificat%20serveur%20%C3%A0%20l%E2%80%99aide%20d%E2%80%99openssl%2C%20indiquer%20au%20serveurs%20Ldap%20d%E2%80%99utiliser%20c" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Cr%26eacute%3Ber%20un%20serveur%20OpenLdap%20S%26eacute%3Bcuris%26eacute%3B%20%28LDAPS%29%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F&amp;Title=Cr%26eacute%3Ber%20un%20serveur%20OpenLdap%20S%26eacute%3Bcuris%26eacute%3B%20%28LDAPS%29" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F&amp;title=Cr%26eacute%3Ber%20un%20serveur%20OpenLdap%20S%26eacute%3Bcuris%26eacute%3B%20%28LDAPS%29" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fcrer-un-serveur-openldap-scuris-ldaps%2F&amp;title=Cr%26eacute%3Ber%20un%20serveur%20OpenLdap%20S%26eacute%3Bcuris%26eacute%3B%20%28LDAPS%29" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/11/crer-un-serveur-openldap-scuris-ldaps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation et configuration openldap sur Centos 5</title>
		<link>http://www.croc-informatique.fr/2009/11/installation-et-configuration-openldap-sur-centos-5/</link>
		<comments>http://www.croc-informatique.fr/2009/11/installation-et-configuration-openldap-sur-centos-5/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 10:26:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Réseau]]></category>
		<category><![CDATA[Sécurité]]></category>
		<category><![CDATA[Annuaire High Tek]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[openldap]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/11/installation-et-configuration-openldap-sur-centos-5/</guid>
		<description><![CDATA[Installation :
yum install openldap-servers openldap-clients
&#160;
Configuration :

&#160;
Nous allons configurer notre serveur LDAP pour qu’il ait comme suffixe le domaine croc-informatique.fr . Le compte administrateur sera : admin / password
&#160;
Editez le fichier /etc/openldap/slapd.conf

Modifier le comme suit :
suffix &#34;dc=croc-informatique,dc=fr&#34; rootdn &#34;cn=admin,dc=croc-informatique,dc=fr&#34; rootpw password 
 Crypter le mot de passe :

slappasswd -s password

Vous aller avoir un retour de ce [...]]]></description>
			<content:encoded><![CDATA[<h3>Installation :</h3>
<p>yum install openldap-servers openldap-clients</p>
<p>&#160;</p>
<h3>Configuration :</h3>
<p><span id="more-465"></span></p>
<p>&#160;</p>
<p>Nous allons configurer notre serveur LDAP pour qu’il ait comme suffixe le domaine croc-informatique.fr . Le compte administrateur sera : admin / password</p>
<p>&#160;</p>
<p><strong><u>Editez le fichier /etc/openldap/slapd.conf</u></strong></p>
<p><strong><u></u></strong></p>
<p>Modifier le comme suit :</p>
<blockquote><p>suffix &quot;dc=croc-informatique,dc=fr&quot; rootdn &quot;cn=admin,dc=croc-informatique,dc=fr&quot; rootpw password </p></blockquote>
<p> Crypter le mot de passe :<br />
<blockquote>
<p>slappasswd -s password</p>
</blockquote>
<p>Vous aller avoir un retour de ce type : {SSHA}GyzpAiLauGXRvNAHdoKhJAp8FqalHzdu</p>
<p>Il vous suffi de le copier et de le coller dans le fichier /etc/openldap/slapd.conf à la place du mot de passe en clair.</p>
<p> Lancer le service ldap :<br />
<blockquote>service ldap start </p></blockquote>
<p> Création du fichier ldif de base : Ce fichier va nous permettre de demander au serveur LDAP de créé la base de l’arborescence. Créez un fichier base.ldif et ajoutez :<br />
<blockquote>dn: dc=croc-informatique,dc=fr dc: croc-informatique objectClass: domain </p></blockquote>
<p> Importez le fichier base.ldif :<br />
<blockquote>ldapadd -x -D &quot;cn=admin,dc=croc-informatique,dc=fr&quot; -w password -f ~/base.ldif </p></blockquote>
<p> Maintenant, vous pouvez créer votre arborescence comme vous le souhaitez. Par exemple, nous allons créer une OU (unitée organisationnelle). Cette OU, nous allons la nommée “Contact” et nous allons ajouter quelques contacts. Pour cela, nous allons créer un nouveau fichier que nous allons nommé contact.ldif. Placez ce texte à l’intérieur :
<pre>dn: ou=Contact,dc=croc-informatique,dc=fr
ou: Contact
objectClass: organizationalUnit

dn: uid=user1,ou=Contact,dc=croc-informatique,dc=fr
uid: user1
cn: user1
displayName: User 1
givenName: User
sn: user1
objectClass: inetOrgPerson
userPassword: password
mail: user1@croc-informatique.fr</pre>
<p>Puis lancer la commande :</p>
<blockquote>
<p>ldapadd -x -D &quot;cn=admin,dc=croc-informatique,dc=fr&quot; -w password -f ~/contact.ldif </p>
</blockquote>
<p>Voilà l’OU Contact et l’utilisateur user1 avec le mot de passe password ont été créés </p>
<p>Explorer son serveur Ldap avec JXplorer :</p>
<p><a href="http://www.croc-informatique.fr/wp-content/uploads/2009/11/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.croc-informatique.fr/wp-content/uploads/2009/11/image_thumb1.png" width="244" height="185" /></a></p>
<p>Cet outil est téléchargeable sur son site officiel : http://jxplorer.org/</p>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F&amp;title=Installation%20et%20configuration%20openldap%20sur%20Centos%205&amp;bodytext=Installation%20%3A%20%20yum%20install%20openldap-servers%20openldap-clients%20%20%26%23160%3B%20%20Configuration%20%3A%0A%0A%20%20%26%23160%3B%20%20Nous%20allons%20configurer%20notre%20serveur%20LDAP%20pour%20qu%E2%80%99il%20ait%20comme%20suffixe%20le%20domaine%20croc-informatique.fr%20.%20Le%20compte%20administrateur%20sera%20%3A%20admin%20%2F%20passw" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F&amp;t=Installation%20et%20configuration%20openldap%20sur%20Centos%205" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F&amp;title=Installation%20et%20configuration%20openldap%20sur%20Centos%205&amp;annotation=Installation%20%3A%20%20yum%20install%20openldap-servers%20openldap-clients%20%20%26%23160%3B%20%20Configuration%20%3A%0A%0A%20%20%26%23160%3B%20%20Nous%20allons%20configurer%20notre%20serveur%20LDAP%20pour%20qu%E2%80%99il%20ait%20comme%20suffixe%20le%20domaine%20croc-informatique.fr%20.%20Le%20compte%20administrateur%20sera%20%3A%20admin%20%2F%20passw" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Installation%20et%20configuration%20openldap%20sur%20Centos%205%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F&amp;Title=Installation%20et%20configuration%20openldap%20sur%20Centos%205" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F&amp;title=Installation%20et%20configuration%20openldap%20sur%20Centos%205" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F&amp;title=Installation%20et%20configuration%20openldap%20sur%20Centos%205" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/11/installation-et-configuration-openldap-sur-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[VMWARE] RVTools &#8211; Allez &#224; l&#8217;essentiel</title>
		<link>http://www.croc-informatique.fr/2009/11/vmware-rvtools-allez-lessentiel/</link>
		<comments>http://www.croc-informatique.fr/2009/11/vmware-rvtools-allez-lessentiel/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 16:48:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Outils]]></category>
		<category><![CDATA[Vmware]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[Utilitaire]]></category>
		<category><![CDATA[Vcenter]]></category>
		<category><![CDATA[virtual center]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/11/vmware-rvtools-allez-lessentiel/</guid>
		<description><![CDATA[Je tiens à présenter un petit utilitaire permettant de récupérer des données à partir de son VCenter. 

Il est capable de fournir des informations sur les CPU, la mémoire, les disques, les cartes réseaux, les cdroms (connectés ou non), les snapshots (Si il y en a d’activé), les vmware-tools (Installés ou non) et les serveurs [...]]]></description>
			<content:encoded><![CDATA[<p>Je tiens à présenter un petit utilitaire permettant de récupérer des données à partir de son VCenter. </p>
<p><span id="more-462"></span></p>
<p>Il est capable de fournir des informations sur les CPU, la mémoire, les disques, les cartes réseaux, les cdroms (connectés ou non), les snapshots (Si il y en a d’activé), les vmware-tools (Installés ou non) et les serveurs ESX de manière simple et rapide.</p>
<p>Ce logiciel est capable de déconnecter les lecteurs de CD / Disquettes sur les machines virtuelles, de lister la version des VMTools installés et de les mettre à jour. </p>
<p>Le mieux, c’est de tester <img src='http://www.croc-informatique.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Pour avoir un peu plus de detail, allez ici : <a title="http://www.robware.net/index.php?option=com_content&amp;view=article&amp;id=10:rvtools-21&amp;catid=1:category" href="http://www.robware.net/index.php?option=com_content&amp;view=article&amp;id=10:rvtools-21&amp;catid=1:category">http://www.robware.net/index.php?option=com_content&amp;view=article&amp;id=10:rvtools-21&amp;catid=1:category</a></p>
<p>&#160;</p>
<p><a href="http://www.croc-informatique.fr/wp-content/uploads/2009/11/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.croc-informatique.fr/wp-content/uploads/2009/11/image_thumb.png" width="438" height="246" /></a> </p>
<p>&#160;</p>
<p>Voici le site officiel : <a title="http://www.robware.net/" href="http://www.robware.net/">http://www.robware.net/</a></p>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F&amp;title=%5BVMWARE%5D%20RVTools%20%26ndash%3B%20Allez%20%26agrave%3B%20l%26rsquo%3Bessentiel&amp;bodytext=Je%20tiens%20%C3%A0%20pr%C3%A9senter%20un%20petit%20utilitaire%20permettant%20de%20r%C3%A9cup%C3%A9rer%20des%20donn%C3%A9es%20%C3%A0%20partir%20de%20son%20VCenter.%20%0A%0A%20%20Il%20est%20capable%20de%20fournir%20des%20informations%20sur%20les%20CPU%2C%20la%20m%C3%A9moire%2C%20les%20disques%2C%20les%20cartes%20r%C3%A9seaux%2C%20les%20cdroms%20%28connect%C3%A9s%20ou%20non%29%2C%20les" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F&amp;t=%5BVMWARE%5D%20RVTools%20%26ndash%3B%20Allez%20%26agrave%3B%20l%26rsquo%3Bessentiel" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F&amp;title=%5BVMWARE%5D%20RVTools%20%26ndash%3B%20Allez%20%26agrave%3B%20l%26rsquo%3Bessentiel&amp;annotation=Je%20tiens%20%C3%A0%20pr%C3%A9senter%20un%20petit%20utilitaire%20permettant%20de%20r%C3%A9cup%C3%A9rer%20des%20donn%C3%A9es%20%C3%A0%20partir%20de%20son%20VCenter.%20%0A%0A%20%20Il%20est%20capable%20de%20fournir%20des%20informations%20sur%20les%20CPU%2C%20la%20m%C3%A9moire%2C%20les%20disques%2C%20les%20cartes%20r%C3%A9seaux%2C%20les%20cdroms%20%28connect%C3%A9s%20ou%20non%29%2C%20les" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=%5BVMWARE%5D%20RVTools%20%26ndash%3B%20Allez%20%26agrave%3B%20l%26rsquo%3Bessentiel%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F&amp;Title=%5BVMWARE%5D%20RVTools%20%26ndash%3B%20Allez%20%26agrave%3B%20l%26rsquo%3Bessentiel" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F&amp;title=%5BVMWARE%5D%20RVTools%20%26ndash%3B%20Allez%20%26agrave%3B%20l%26rsquo%3Bessentiel" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvmware-rvtools-allez-lessentiel%2F&amp;title=%5BVMWARE%5D%20RVTools%20%26ndash%3B%20Allez%20%26agrave%3B%20l%26rsquo%3Bessentiel" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/11/vmware-rvtools-allez-lessentiel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[VBS] Supprimer les fichiers d&#8217;un repertoire en fonction de leur date de modification</title>
		<link>http://www.croc-informatique.fr/2009/11/vbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification/</link>
		<comments>http://www.croc-informatique.fr/2009/11/vbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 13:26:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[Vb]]></category>
		<category><![CDATA[automatiquement]]></category>
		<category><![CDATA[nettoyage]]></category>
		<category><![CDATA[supprimer]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/11/vbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification/</guid>
		<description><![CDATA[Voici un script écrit en VBS qui permet de nettoyer un répertoire. Ce script est équivalent à la commande linux :

find /rep –mtime +5 –exec rm –f {} \;

Voici le script :
&#8216;Les declarations      &#8216;Repertoire ou sont stockes les fichiers       DossierSauvegarde = &#34;C:\TEST\&#34;   [...]]]></description>
			<content:encoded><![CDATA[<p>Voici un script écrit en VBS qui permet de nettoyer un répertoire. Ce script est équivalent à la commande linux :</p>
<p><span id="more-459"></span></p>
<blockquote><p>find /rep –mtime +5 –exec rm –f {} \;</p>
</blockquote>
<p>Voici le script :</p>
<blockquote><p>&#8216;Les declarations      <br />&#8216;Repertoire ou sont stockes les fichiers       <br />DossierSauvegarde = &quot;C:\TEST\&quot;       <br />&#8216;Nombre de jours de conservation des Fichiers       <br />AgeMaximalFichiers = &quot;30&quot;       <br />&#8216;Comptage des fichiers effaces       <br />NbFichiersEffaces = 0       <br />&#8216;Initialisation des objets       <br />Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot; )       <br />&#8216;On verifie que le repertoire de sauvegarde existe       <br />If (myName = Winrep = fso.FolderExists(DossierSauvegarde)) = False Then       <br />&#160;&#160;&#160; Erreur = MsgBox(&quot;Le dossier de sauvegarde est introuvable !&quot; )       <br />&#160;&#160;&#160; Wscript.Quit       <br />End If       <br />&#8216;On recupere la date systeme       <br />DateSysteme = Date       <br />&#8216;On apelle la fonction d&#8217;effacement       <br />Clean(DossierSauvegarde)       <br />&#8216;Fonction d&#8217;effacement des fichiers       <br />Sub Clean(FolderPath)       <br />Set Folder = fso.Getfolder(FolderPath)       <br />&#8216;On appelle recursivement la fonction s&#8217;il y a des sous dossiers       <br />Set SubFolder = Folder.SubFolders       <br />&#160;&#160; For Each CurrentFolder in SubFolder       <br />&#160;&#160;&#160;&#160;&#160; Clean CurrentFolder.Path       <br />&#160;&#160; Next       <br />&#8216;On efface les fichiers dans le dossier courant       <br />For Each File In Folder.Files       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; If (DateDiff(&quot;d&quot;, File.DateLastModified, DateSysteme) &gt; CInt(AgeMaximalFichiers)) Then       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8216;On verifie qu&#8217;ils ne sont pas en lecture seule       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; If File.Attributes And 1 Then File.Attributes = File.Attributes &#8211; 1       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; File.Delete()       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; NbFichiersEffaces = NbFichiersEffaces + 1       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; End If       <br />Next       <br />End Sub       <br />&#8216;On affiche un joli message       <br />MsgBox (Cstr(NbFichiersEffaces) + &quot; fichiers ont ete effaces&quot; )</p>
</blockquote>
<p>Il faut indiquer le dossier à nettoyer (DossierSauvegarde) et la durée de rétention (AgeMaximalFichiers). </p>
<p>J’ai trouvé ce script sur <a title="http://forum.hardware.fr/hfr/WindowsSoftware/Logiciels/suppression-fichiers-fonction-sujet_247096_1.htm" href="http://forum.hardware.fr/hfr/WindowsSoftware/Logiciels/suppression-fichiers-fonction-sujet_247096_1.htm">http://forum.hardware.fr/hfr/WindowsSoftware/Logiciels/suppression-fichiers-fonction-sujet_247096_1.htm</a></p>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F&amp;title=%5BVBS%5D%20Supprimer%20les%20fichiers%20d%26rsquo%3Bun%20repertoire%20en%20fonction%20de%20leur%20date%20de%20modification&amp;bodytext=Voici%20un%20script%20%C3%A9crit%20en%20VBS%20qui%20permet%20de%20nettoyer%20un%20r%C3%A9pertoire.%20Ce%20script%20est%20%C3%A9quivalent%20%C3%A0%20la%20commande%20linux%20%3A%0A%0A%20%20%20%20%20find%20%2Frep%20%E2%80%93mtime%20%2B5%20%E2%80%93exec%20rm%20%E2%80%93f%20%7B%7D%20%5C%3B%20%20%20Voici%20le%20script%20%3A%20%20%20%20%20%27Les%20declarations%20%20%20%20%20%20%27Repertoire%20ou%20sont%20stockes%20les%20fic" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F&amp;t=%5BVBS%5D%20Supprimer%20les%20fichiers%20d%26rsquo%3Bun%20repertoire%20en%20fonction%20de%20leur%20date%20de%20modification" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F&amp;title=%5BVBS%5D%20Supprimer%20les%20fichiers%20d%26rsquo%3Bun%20repertoire%20en%20fonction%20de%20leur%20date%20de%20modification&amp;annotation=Voici%20un%20script%20%C3%A9crit%20en%20VBS%20qui%20permet%20de%20nettoyer%20un%20r%C3%A9pertoire.%20Ce%20script%20est%20%C3%A9quivalent%20%C3%A0%20la%20commande%20linux%20%3A%0A%0A%20%20%20%20%20find%20%2Frep%20%E2%80%93mtime%20%2B5%20%E2%80%93exec%20rm%20%E2%80%93f%20%7B%7D%20%5C%3B%20%20%20Voici%20le%20script%20%3A%20%20%20%20%20%27Les%20declarations%20%20%20%20%20%20%27Repertoire%20ou%20sont%20stockes%20les%20fic" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=%5BVBS%5D%20Supprimer%20les%20fichiers%20d%26rsquo%3Bun%20repertoire%20en%20fonction%20de%20leur%20date%20de%20modification%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F&amp;Title=%5BVBS%5D%20Supprimer%20les%20fichiers%20d%26rsquo%3Bun%20repertoire%20en%20fonction%20de%20leur%20date%20de%20modification" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F&amp;title=%5BVBS%5D%20Supprimer%20les%20fichiers%20d%26rsquo%3Bun%20repertoire%20en%20fonction%20de%20leur%20date%20de%20modification" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Fvbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification%2F&amp;title=%5BVBS%5D%20Supprimer%20les%20fichiers%20d%26rsquo%3Bun%20repertoire%20en%20fonction%20de%20leur%20date%20de%20modification" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/11/vbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer Openssh v5 sur centos 5</title>
		<link>http://www.croc-informatique.fr/2009/11/installer-openssh-v5-sur-centos-5/</link>
		<comments>http://www.croc-informatique.fr/2009/11/installer-openssh-v5-sur-centos-5/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 15:30:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sécurité]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/11/installer-openssh-v5-sur-centos-5/</guid>
		<description><![CDATA[Afin de faire du chroot, il est nécessaire de mettre à jour open-ssh en v5 ou v4.8 minimum.

Voici la procédure permettant de faire la mise à jour :
Installer les outils de développement si ce n’est pas déjà fait :



yum install gcc
yum install openssl-devel
yum install pam-devel
yum install rpm-build
   
Télécharger openssh 5.2p1
wget ftp://mirror.planetunix.net/pub/OpenBSD/OpenSSH/portable/openssh-5.2p1.tar.gz

 

Génération des [...]]]></description>
			<content:encoded><![CDATA[<p><font size="3" face="Times New Roman">Afin de faire du chroot, il est nécessaire de mettre à jour open-ssh en v5 ou v4.8 minimum.</font></p>
<p><span id="more-458"></span></p>
<p><font size="3" face="Times New Roman">Voici la procédure permettant de faire la mise à jour :</font></p>
<h3>Installer les outils de développement si ce n’est pas déjà fait :</h3>
<p><code></code></p>
<blockquote><p><code>
<p><font size="2" face="Courri"></font></p>
<p><font size="2" face="Courri">yum install gcc</font></p>
<p><font size="2" face="Courri">yum install openssl-devel</font></p>
<p><font size="2" face="Courri">yum install pam-devel</font></p>
<p><font size="2" face="Courri">yum install rpm-build</font></p>
<p>   </code></p></blockquote>
<h3><font face="Tri">Télécharger openssh 5.2p1</font></h3>
<blockquote><p><code><font size="2" face="Courrier">wget </font><a href="ftp://mirror.planetunix.net/pub/OpenBSD/OpenSSH/portable/openssh-5.2p1.tar.gz"><font size="2" face="Courrier">ftp://mirror.planetunix.net/pub/OpenBSD/OpenSSH/portable/openssh-5.2p1.tar.gz</font></a></code></p>
</blockquote>
<p> <code></code>
<p><font size="3" face="Times New Roman"></font></p>
<h3>Génération des fichiers RPM</h3>
<p><font size="3" face="Times New Roman">Maintenant, nous allons créé le RPM à partir du fichier tar.gz :</font></p>
<p> <code><br />
<blockquote>
<p><font size="2" face="Courr">tar xvfz openssh-5.2p1.tar.gz</font></p>
<p><font size="2" face="Courr">cp ./openssh-5.2p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/</font></p>
<p><font size="2" face="Courr">cp&#160; ./openssh-5.2p1.tar.gz /usr/src/redhat/SOURCES/</font></p>
<p><font size="2" face="Courr">cd /usr/src/redhat/SPECS/</font></p>
<p><font size="2" face="Courr">perl -i.bak -pe 's/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/' openssh.spec</font></p>
<p><code><font size="2" face="Courr">rpmbuild -bb openssh.spec</font></code></p>
</blockquote>
<p> </code><br />
<h3>Liste des fichiers rpm générés :</h3>
<p> <code><br />
<blockquote>
<p><font size="2" face="Courrier"></font></p>
<p><font size="2" face="Courrier">cd /usr/src/redhat/RPMS/`uname -i` <font size="2" face="Courii">ls -l</font>&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br /><font size="2" face="Courii">total 988&#160; </p>
<p>-rw-r--r-- 1 root root 272540 nov&#160; 2 15:55 openssh-5.2p1-1.i386.rpm&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />-rw-r--r-- 1 root root 431980 nov&#160; 2 15:55 openssh-clients-5.2p1-1.i386.rpm&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />-rw-r--r-- 1 root root&#160; 16712 nov&#160; 2 15:55 openssh-debuginfo-5.2p1-1.i386.rpm&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />-rw-r--r-- 1 root root 269432 nov&#160; 2 15:55 openssh-server-5.2p1-1.i386.rpm</font></font></p>
</blockquote>
<p> </code><br />
<h3>Mettre à jour open-ssh :</h3>
<blockquote><p><code><font size="2"></font></code></p>
<p><code><font size="2">rpm -Uvh openssh*rpm</font></code></p>
<p>   <code>
<p><font size="2">Preparing... ################################</font></p>
<p><font size="2">1: openssh ####</font></p>
<p><font size="2">2: openssh-clients ####</font></p>
<p><code><font size="2">3: openssh-server ####</font></code></p>
<p>   </code></p></blockquote>
<h3>Redémarrer SSH</h3>
<p> <code></code><code></code><code></code><code></code><br />
<blockquote>
<p><code><font size="3" face="Times New Roman">service sshd restart</font></code></p>
</blockquote>
<h3>Vérification :</h3>
<blockquote><p><font size="2" face="Courier New"># rpm -qa | grep openssh        <br />openssh-5.2p1-1         <br />openssh-server-5.2p1-1         <br />openssh-debuginfo-5.2p1-1         <br />openssh-clients-5.2p1-1</font></p>
</blockquote>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F&amp;title=Installer%20Openssh%20v5%20sur%20centos%205&amp;bodytext=Afin%20de%20faire%20du%20chroot%2C%20il%20est%20n%C3%A9cessaire%20de%20mettre%20%C3%A0%20jour%20open-ssh%20en%20v5%20ou%20v4.8%20minimum.%0A%0A%20%20Voici%20la%20proc%C3%A9dure%20permettant%20de%20faire%20la%20mise%20%C3%A0%20jour%20%3A%20%20Installer%20les%20outils%20de%20d%C3%A9veloppement%20si%20ce%20n%E2%80%99est%20pas%20d%C3%A9j%C3%A0%20fait%20%3A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20yum%20insta" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F&amp;t=Installer%20Openssh%20v5%20sur%20centos%205" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F&amp;title=Installer%20Openssh%20v5%20sur%20centos%205&amp;annotation=Afin%20de%20faire%20du%20chroot%2C%20il%20est%20n%C3%A9cessaire%20de%20mettre%20%C3%A0%20jour%20open-ssh%20en%20v5%20ou%20v4.8%20minimum.%0A%0A%20%20Voici%20la%20proc%C3%A9dure%20permettant%20de%20faire%20la%20mise%20%C3%A0%20jour%20%3A%20%20Installer%20les%20outils%20de%20d%C3%A9veloppement%20si%20ce%20n%E2%80%99est%20pas%20d%C3%A9j%C3%A0%20fait%20%3A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20yum%20insta" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Installer%20Openssh%20v5%20sur%20centos%205%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F&amp;Title=Installer%20Openssh%20v5%20sur%20centos%205" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F&amp;title=Installer%20Openssh%20v5%20sur%20centos%205" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstaller-openssh-v5-sur-centos-5%2F&amp;title=Installer%20Openssh%20v5%20sur%20centos%205" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/11/installer-openssh-v5-sur-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirection de port ou port forwarding avec Iptables</title>
		<link>http://www.croc-informatique.fr/2009/10/redirection-de-port-ou-port-forwarding-avec-iptables/</link>
		<comments>http://www.croc-informatique.fr/2009/10/redirection-de-port-ou-port-forwarding-avec-iptables/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 06:55:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Réseau]]></category>
		<category><![CDATA[Sécurité]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[pat]]></category>
		<category><![CDATA[port forwarding]]></category>
		<category><![CDATA[port mapping]]></category>
		<category><![CDATA[redirection]]></category>
		<category><![CDATA[Routage]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/10/redirection-de-port-ou-port-forwarding-avec-iptables/</guid>
		<description><![CDATA[Activation du routage :
Sur un système LINUX, le routage est désactivé par défaut même si la machine comporte plusieurs cartes réseaux. Il faut activer ce routage pour utiliser un passerelle en LINUX. Pour cela, il suffit de modifier le fichier /etc/sysctl.conf. Modifier la ligne net.ipv4.ip_forward comme ceci :

     net.ipv4.ip_forward = 1 [...]]]></description>
			<content:encoded><![CDATA[<h3>Activation du routage :</h3>
<p>Sur un système LINUX, le routage est désactivé par défaut même si la machine comporte plusieurs cartes réseaux. Il faut activer ce routage pour utiliser un passerelle en LINUX. Pour cela, il suffit de modifier le fichier /etc/sysctl.conf. Modifier la ligne net.ipv4.ip_forward comme ceci :</p>
<p><span id="more-454"></span></p>
<p><tt>     <br />net.ipv4.ip_forward = 1      <br /></tt></p>
<p>Une fois le fichier corrigé, activer le changement avec la commande :</p>
<p><tt>     <br />sysctl -p      <br /></tt></p>
<p>Vérifiez que le routage est actif en consultant la valeur donnée à la fonction routage.</p>
<p><tt>     <br />[root@localhost ~]# cat /proc/sys/net/ipv4/ip_forward      <br />1      <br /></tt></p>
<p>Ici, on obtient la valeur 1, donc le routage est actif. Si vous obtenez 0, vous n’avez pas encore activé le routage.</p>
<p>&#160;</p>
<h3>Règles iptables :</h3>
<blockquote><p>iptables -t nat -A PREROUTING -d ip_du_serveur_iptables -p tcp &#8211;dport Numero_port_entrée -j DNAT &#8211;to-dest ip_distant:port_distant      <br />iptables -t nat -A POSTROUTING -d ip_distant -p tcp &#8211;dport 25 -j SNAT &#8211;to ip_du_serveur_iptables </p>
</blockquote>
<p><strong><u>Exemple :</u></strong></p>
<p>Si on souhaite mapper le port 30 sur le port 25 du serveur 81.0.0.1, voici les règles iptables à appliquer :</p>
<blockquote><p>iptables -t nat -A PREROUTING -d 192.168.0.1-p tcp &#8211;dport 30 -j DNAT &#8211;to-dest 81.0.0.1:25      <br />iptables -t nat -A POSTROUTING -d 81.0.0.1 -p tcp &#8211;dport 110 -j SNAT &#8211;to 192.168.0.1</p>
</blockquote>
<p>Pour sauvegarder les règles, tapez la commande : </p>
<p>iptables-save &gt; /etc/sysconfig/iptables </p>
<p>&#160;</p>
<h3>Problème rencontré : </h3>
<p>Je n’ai pas réussi à rediriger un port avec le nom de domaine du serveur distant. Apparemment, c’est impossible… Si quelqu’un a une idée?</p>



Partager :


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F&amp;title=Redirection%20de%20port%20ou%20port%20forwarding%20avec%20Iptables&amp;bodytext=Activation%20du%20routage%20%3A%20%20Sur%20un%20syst%C3%A8me%20LINUX%2C%20le%20routage%20est%20d%C3%A9sactiv%C3%A9%20par%20d%C3%A9faut%20m%C3%AAme%20si%20la%20machine%20comporte%20plusieurs%20cartes%20r%C3%A9seaux.%20Il%20faut%20activer%20ce%20routage%20pour%20utiliser%20un%20passerelle%20en%20LINUX.%20Pour%20cela%2C%20il%20suffit%20de%20modifier%20le%20fichie" title="Digg"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F&amp;t=Redirection%20de%20port%20ou%20port%20forwarding%20avec%20Iptables" title="Facebook"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F&amp;title=Redirection%20de%20port%20ou%20port%20forwarding%20avec%20Iptables&amp;annotation=Activation%20du%20routage%20%3A%20%20Sur%20un%20syst%C3%A8me%20LINUX%2C%20le%20routage%20est%20d%C3%A9sactiv%C3%A9%20par%20d%C3%A9faut%20m%C3%AAme%20si%20la%20machine%20comporte%20plusieurs%20cartes%20r%C3%A9seaux.%20Il%20faut%20activer%20ce%20routage%20pour%20utiliser%20un%20passerelle%20en%20LINUX.%20Pour%20cela%2C%20il%20suffit%20de%20modifier%20le%20fichie" title="Google Bookmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F&amp;partner=sociable" title="PDF"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.croc-informatique.fr/feed/" title="RSS"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Redirection%20de%20port%20ou%20port%20forwarding%20avec%20Iptables%20-%20http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F" title="Twitter"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F" title="Technorati"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.wikio.fr/vote?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F" title="Wikio FR"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/wikio.png" title="Wikio FR" alt="Wikio FR" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F&amp;Title=Redirection%20de%20port%20ou%20port%20forwarding%20avec%20Iptables" title="BlinkList"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blinklist.png" title="BlinkList" alt="BlinkList" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F&amp;title=Redirection%20de%20port%20ou%20port%20forwarding%20avec%20Iptables" title="blogmarks"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/blogmarks.png" title="blogmarks" alt="blogmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F10%2Fredirection-de-port-ou-port-forwarding-avec-iptables%2F&amp;title=Redirection%20de%20port%20ou%20port%20forwarding%20avec%20Iptables" title="Reddit"><img src="http://www.croc-informatique.fr/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/10/redirection-de-port-ou-port-forwarding-avec-iptables/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
