<?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>Renoir Boulanger &#187; Sécurite</title>
	<atom:link href="http://renoirboulanger.com/blog/tag/securite/feed/" rel="self" type="application/rss+xml" />
	<link>http://renoirboulanger.com</link>
	<description>Un geek social et Linuxien de nature</description>
	<lastBuildDate>Sun, 29 Apr 2012 20:29:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Procédure pour créer un serveur FTP sécurisé SSL forcé avec usager virtuels sous Ubuntu Linux avec vsFTPd</title>
		<link>http://renoirboulanger.com/blog/2010/04/procedure-pour-creer-un-serveur-ftp-securise-ssl-force-avec-usager-virtuels-sous-ubuntu-linux-avec-vsftpd/</link>
		<comments>http://renoirboulanger.com/blog/2010/04/procedure-pour-creer-un-serveur-ftp-securise-ssl-force-avec-usager-virtuels-sous-ubuntu-linux-avec-vsftpd/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 19:12:12 +0000</pubDate>
		<dc:creator>Renoir Boulanger</dc:creator>
				<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[p52]]></category>
		<category><![CDATA[Sécurite]]></category>
		<category><![CDATA[Tutoriels]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://renoirboulanger.com/?p=2162</guid>
		<description><![CDATA[Procédure pour créer un serveur FTP sécurisé SSL forcé avec usager virtuels sous Ubuntu Linux avec vsFTPdJe ne sais pas si vous êtes comme moi mais je n&#8217;aime pas laisser non crypté l&#8217;accès a un service qui me demande un mot de passe. Je devait monter un serveur cette semaine qui doit avoir les accès [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2010/04/procedure-pour-creer-un-serveur-ftp-securise-ssl-force-avec-usager-virtuels-sous-ubuntu-linux-avec-vsftpd/' class='retweet '  style='display:block;margin:10px 0px;' >Procédure pour créer un serveur FTP sécurisé SSL forcé avec usager virtuels sous Ubuntu Linux avec vsFTPd</a><p>Je ne sais pas si vous êtes comme moi mais je n&#8217;aime pas laisser non crypté l&#8217;accès a un service qui me demande un mot de passe. Je devait monter un serveur cette semaine qui doit avoir les accès FTP.</p>
<p>J&#8217;ai pris l&#8217;initiative de sécuriser la machine avec du SSL car je crois qu&#8217;aujourd&#8217;hui c&#8217;est notre devoir de faire ce genre de chose. Ce n&#8217;est pas la première fois que je configure un serveur FTP over SSL mais je n&#8217;avait jamais pris de notes vraiment à ce jour. Je l&#8217;ai fait cette fois-ci!</p>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Cequecetteproc%C3%A9durefait..."></a>Ce que cette procédure fait&#8230;</h3>
<ol>
<li>Pouvoir créer des comptes FTP sans avoir a créer un utilisateur local (donc pas accès shell (SSH)).</li>
<li>Permet les connections FTP over SSL de façon EXPLICITE sur un port non standard  (cet exemple utilisera le port <tt>6123</tt>)</li>
<li>Ne permet pas d&#8217;utilisateur ni de connexions anonymes</li>
<li>Bannit les hôtes qui tentent de se connecter (LOGIN FAILED)	via <strong>fail2ban</strong></li>
<li>Utilise le system PAM interne pour l&#8217;authentification</li>
<li>Ne requiert pas d&#8217;usager local (pas de risque de tentative de connection SSH, usager séparés)</li>
<li>Le serveur FTP roule sur son propre usager</li>
</ol>
<p><span id="more-2162"></span></p>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Proc%C3%A9dure"></a>Procédure</h3>
<ol>
<li>Vérifier quelle version de serveur FTP est installé

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># dpkg --list | grep ftp</span>
~
ii  <span style="color: #c20cb9; font-weight: bold;">ftp</span>                               <span style="color: #000000;">0.17</span>-<span style="color: #000000;">19</span>                      The FTP client
ii  lftp                              3.7.15-1ubuntu2              Sophisticated command-line FTP<span style="color: #000000; font-weight: bold;">/</span>HTTP client p
ii  vsftpd                            2.2.0-1ubuntu1               lightweight, efficient FTP server written fo</pre></td></tr></table></div>

<p><strong>Note</strong> vsftpd est ce qu&#8217;on veut. Dans ce cas-ci il est déjà installé (ii).</li>
<li>Assurer que les prérequis sont installés

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># aptitude install vsftpd libpam-pwdfile openssl</span></pre></td></tr></table></div>

</li>
<li>Modifier le fichier de config <strong>vsftpd.conf</strong>.<br />
<strong>Note</strong> Modifiez pour ces valeurs (ci-bas) et conservez les autres valeurs par défaut.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># vi /etc/vsftpd.conf</span>
~
<span style="color: #007800;">anonymous_enable</span>=NO
<span style="color: #007800;">local_enable</span>=YES
<span style="color: #007800;">write_enable</span>=YES
<span style="color: #007800;">local_umask</span>=022
<span style="color: #007800;">chroot_local_user</span>=YES
<span style="color: #007800;">ftpd_banner</span>=Un nom Quelconque FTP
<span style="color: #007800;">nopriv_user</span>=vsftpd
&nbsp;
<span style="color: #666666; font-style: italic;"># renoirboulanger.com 2010-04-29 we will force usage on an other port</span>
<span style="color: #666666; font-style: italic;">#connect_from_port_20=YES</span></pre></td></tr></table></div>

</li>
<li>Ajouter ou corriger (étaient pas présents lorsque j&#8217;ai crée la procédure)

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># 2010-04-28 accès usager</span>
<span style="color: #007800;">virtual_use_local_privs</span>=YES
<span style="color: #007800;">guest_enable</span>=YES
<span style="color: #007800;">user_sub_token</span>=<span style="color: #007800;">$USER</span>
<span style="color: #007800;">local_root</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ibottin<span style="color: #000000; font-weight: bold;">/</span>FTP<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$USER</span>
<span style="color: #007800;">hide_ids</span>=YES</pre></td></tr></table></div>

<p><strong>Note</strong> Ajuster le <tt>local_root</tt> a l&#8217;endroit	ou envoyer les fichiers.</li>
<li>Activer le SSL
<ol>
<li>Créer le certificat

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /etc/ssl</span>
<span style="color: #666666; font-style: italic;"># /usr/bin/openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout vsftpd.pem -out vsftpd.pem</span></pre></td></tr></table></div>

</li>
<li>Ajouter au <tt>/etc/vsftpd.conf</tt>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># vi /etc/vsftpd.conf</span>
~
<span style="color: #666666; font-style: italic;"># renoirboulanger.com 2010-04-30 SSL configuration</span>
<span style="color: #007800;">listen_port</span>=<span style="color: #000000;">6123</span>
<span style="color: #007800;">ftp_data_port</span>=<span style="color: #000000;">6122</span>
<span style="color: #007800;">pasv_min_port</span>=<span style="color: #000000;">6000</span>
<span style="color: #007800;">pasv_max_port</span>=<span style="color: #000000;">6100</span>
&nbsp;
<span style="color: #007800;">ssl_enable</span>=YES
<span style="color: #666666; font-style: italic;"># Allow anonymous users to use secured SSL connections</span>
<span style="color: #007800;">allow_anon_ssl</span>=YES
<span style="color: #666666; font-style: italic;"># All non-anonymous logins are forced to use a secure SSL connection in order to</span>
<span style="color: #666666; font-style: italic;"># send and receive data on data connections.</span>
<span style="color: #007800;">force_local_data_ssl</span>=NO
<span style="color: #666666; font-style: italic;"># All non-anonymous logins are forced to use a secure SSL connection in order to send the password.</span>
<span style="color: #007800;">force_local_logins_ssl</span>=YES
<span style="color: #007800;">ssl_tlsv1</span>=YES
<span style="color: #007800;">ssl_sslv2</span>=YES
<span style="color: #007800;">ssl_sslv3</span>=YES
<span style="color: #007800;">rsa_cert_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>vsftpd.pem</pre></td></tr></table></div>

</li>
</ol>
</li>
<li><strong>Remplacer</strong> le contenu du fichier <tt>pam.d/vsftpd</tt>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># vi /etc/pam.d/vsftpd</span>
~
auth required pam_pwdfile.so pwdfile <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vsftpd.passwd
account required pam_permit.so</pre></td></tr></table></div>

<p><strong>Note</strong> Il est important de remplacer le reste du fichier par ce contenu ci-haut.</li>
<li>Modifier permissions sur le fichier .pem

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># chown vsftpd /etc/ssl/vsftpd.pem</span></pre></td></tr></table></div>

</li>
<li>Redémarrer vsftpd

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/init.d/vsftpd restart</span></pre></td></tr></table></div>

</li>
<li>Créer le unix user qui va rouler le démon

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># adduser --system --no-create-home --disabled-login -s /usr/sbin/nologin --home /var/ftp vsftpd</span></pre></td></tr></table></div>

</li>
<li>Modifier les permissions pour l&#8217;utilisateur qui roule vsftpd (ajuster)

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># chown -R ftp:ftp /var/ftp/</span>
<span style="color: #666666; font-style: italic;"># chmod -R 740 /var/ftp</span></pre></td></tr></table></div>

</li>
<li><strong><a href="http://renoirboulanger.com/blog/2010/04/procedure-pour-creer-un-serveur-ftp-securise-ssl-force-avec-usager-virtuels-sous-ubuntu-linux-avec-vsftpd#ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-AjouterunutilisateurFTP">Ajouter un utilisateur FTP</a></strong></li>
<li>Ajuster <tt>fail2ban</tt>
<div class="code panel" style="border-width: 1px;">
<div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><strong>Ajuster le bloc [vsftpd]</strong></div>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># vi /etc/fail2ban/jail.conf</span>
~
<span style="color: #7a0874; font-weight: bold;">&#91;</span>vsftpd<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
enabled  = <span style="color: #c20cb9; font-weight: bold;">true</span></pre></td></tr></table></div>

<p><strong>Note</strong> par defaut <tt>enabled</tt> est a false&#8230;	il faut l&#8217;activer.</p>
</div>
</li>
<li>Redémarrer vsftpd

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/init.d/vsftpd restart</span>
 <span style="color: #000000; font-weight: bold;">*</span> Stopping FTP server: vsftpd
   ...done.
 <span style="color: #000000; font-weight: bold;">*</span> Starting FTP server: vsftpd
   ...done.
<span style="color: #666666; font-style: italic;"># ps aux|grep vsftpd</span>
vsftpd   <span style="color: #000000;">18771</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">28904</span>  <span style="color: #000000;">1300</span> ?        Ss   <span style="color: #000000;">17</span>:09   <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>vsftpd
vsftpd   <span style="color: #000000;">18772</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">29100</span>  <span style="color: #000000;">1608</span> ?        S    <span style="color: #000000;">17</span>:09   <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>vsftpd
<span style="color: #c20cb9; font-weight: bold;">ftp</span>      <span style="color: #000000;">18773</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">28928</span>   <span style="color: #000000;">924</span> ?        S    <span style="color: #000000;">17</span>:09   <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>vsftpd
root     <span style="color: #000000;">18795</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">22628</span>  <span style="color: #000000;">1712</span> ?        S    <span style="color: #000000;">17</span>:<span style="color: #000000;">14</span>   <span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>vsftpd
...</pre></td></tr></table></div>

<p><strong>Note</strong> les deux premiers <tt>vsftpd</tt> est le résultat attendu</li>
<li>Nous allons forcer le FTP over SSL sur le port <strong>6122</strong>, pour ça il faut autoriser le Firewall

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># iptables -A INPUT -m state --state ESTABLISHED,RELATED</span>
<span style="color: #666666; font-style: italic;"># iptables -A INPUT -m tcp -p tcp --dport 6122 -j ACCEPT</span>
<span style="color: #666666; font-style: italic;"># iptables -A INPUT -m state --state NEW,ESTABLISHED</span>
<span style="color: #666666; font-style: italic;"># iptables -A INPUT -m tcp -p tcp --dport 6123 -j ACCEPT</span>
<span style="color: #666666; font-style: italic;"># iptables -A INPUT -p tcp --dport 6000:6100 -j ACCEPT</span></pre></td></tr></table></div>

<p><strong>Source</strong>: <a href="http://my.afterdawn.com/ketola/blog_entry.cfm/1262/vsftpd_ssl_and_iptables">vsftpd SSL and iptables</a></li>
<li>Sauvegarder le Firewall

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># iptables-save &amp;gt; /etc/iptables.rules</span></pre></td></tr></table></div>

</li>
<li>Tester de l&#8217;extérieur avec un client FTP (Filezilla, etc)
<p>Voir les options suivantes a la connection</p>
<ol>
<li>port: 6123</li>
<li>Forcer le SSL</li>
</ol>
</li>
</ol>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-AjouterunutilisateurFTP"></a>Ajouter un utilisateur FTP</h3>
<p>On utilise le truc simple de htpasswd pour l&#8217;authentification. Pas de gossage <img src='http://renoirboulanger.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Cr%C3%A9erunnouveaucompte"></a>Créer un nouveau compte</h3>
<ol>
<li>Créer le <em>premier compte</em>, sinon, <strong>passer	a la directive suivante</strong>! ou Utiliser mon script <a href="http://renoirboulanger.com/blog/2010/04/procedure-pour-creer-un-serveur-ftp-securise-ssl-force-avec-usager-virtuels-sous-ubuntu-linux-avec-vsftpd#ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Scriptpourcr%C3%A9eruncompteutilisateur">Script pour créer un compte utilisateur</a>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># htpasswd -c /etc/vsftpd.passwd ftpuser</span>
New password:
Re-type new password:
Adding password <span style="color: #000000; font-weight: bold;">for</span> user ftpuser</pre></td></tr></table></div>

<p><strong>Note</strong> l&#8217;option <strong><tt>-c</tt></strong> est	pour créer le fichier la première fois.</li>
<li>Voir les directives de *<a href="http://renoirboulanger.com/blog/2010/04/procedure-pour-creer-un-serveur-ftp-securise-ssl-force-avec-usager-virtuels-sous-ubuntu-linux-avec-vsftpd#ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Scriptpourcr%C3%A9eruncompteutilisateur">Script pour créer un compte utilisateur</a></li>
</ol>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Ajouteroumodifierunutilisateur"></a><strong>Ajouter ou modifier un utilisateur</strong></h3>
<ol>
<li>Utiliser le script <strong><tt>evo-vsftpd-user</tt></strong>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> evo-vsftpd-user foo
Création d<span style="color: #ff0000;">'un nouvel usager dans /etc/vsftpd.passwd ...
New password:
Re-type new password:
Adding password for user foo
 ... OK
 * Création du dossier /home/ibottin/FTP/foo ...  OK
 * Changement des permissions du dossier ...  OK
Terminé!</span></pre></td></tr></table></div>

<p>Voir les directives de <strong><a href="http://renoirboulanger.com/blog/2010/04/procedure-pour-creer-un-serveur-ftp-securise-ssl-force-avec-usager-virtuels-sous-ubuntu-linux-avec-vsftpd#ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Scriptpourcr%C3%A9eruncompteutilisateur">Script pour créer un compte utilisateur</a></strong></li>
</ol>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Scriptpourcr%C3%A9eruncompteutilisateur"></a>Script pour créer un compte utilisateur</h3>
<ol>
<li>Créer le fichier

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># vi /usr/sbin/evo-vsftpd-user</span></pre></td></tr></table></div>

</li>
<li>Coller le contenu

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> $<span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Aucun argument usager fourni&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;usage: sudo evo-vsftpd-user foo&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>;
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(whoami)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">'root'</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Vous n'avez pas les permisions utilisateur requises.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>;
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Création d'un nouvel usager dans /etc/vsftpd.passwd ... &quot;</span>
htpasswd <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vsftpd.passwd $<span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; ... OK &quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot; * Création du dossier /home/ibottin/FTP/$1 ... &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ibottin<span style="color: #000000; font-weight: bold;">/</span>FTP<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; OK&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot; * Changement des permissions du dossier ... &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #c20cb9; font-weight: bold;">ftp</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ibottin<span style="color: #000000; font-weight: bold;">/</span>FTP<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">740</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ibottin<span style="color: #000000; font-weight: bold;">/</span>FTP<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; OK&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Terminé!&quot;</span></pre></td></tr></table></div>

</li>
<li>Rendre exécutable

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># chmod +x /usr/sbin/evo-vsftpd-user</span></pre></td></tr></table></div>

</li>
</ol>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Tester"></a>Tester</h3>
<ol>
<li>Installer le paquet pour tester
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># aptitude install ftp-ssl</span></pre></td></tr></table></div>

</div>
</div>
</li>
<li>Tester

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># ftp-ssl someserver.net 6123</span>
Connected to someserver.net.
<span style="color: #000000;">220</span> Un nom Quelconque FTP
Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>someserver.net:renoirboulanger<span style="color: #7a0874; font-weight: bold;">&#41;</span>: ftpuser
<span style="color: #000000;">234</span> Proceed with negotiation.
<span style="color: #7a0874; font-weight: bold;">&#91;</span>SSL Cipher DES-XXXX-SHA<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000;">331</span> Please specify the password.
Password:
<span style="color: #000000;">230</span> Login successful.
Remote system <span style="color: #7a0874; font-weight: bold;">type</span> is UNIX.
Using binary mode to transfer files.
<span style="color: #c20cb9; font-weight: bold;">ftp</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;</pre></td></tr></table></div>

<p><strong>Note</strong> [SSL Cipher DES-XXXX-SHA] est ce qu&#8217;on attend <img src='http://renoirboulanger.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ol>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Pourd%C3%A9boguer"></a>Pour déboguer</h3>
<p>Le feedback est assez difficile a avoir de la part de vsftpd, mais pour en voir plus:</p>
<ol>
<li>Pour le debug

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># vi /etc/vsftpd.conf</span>
~
<span style="color: #666666; font-style: italic;"># for debuging</span>
<span style="color: #007800;">log_ftp_protocol</span>=YES</pre></td></tr></table></div>

</li>
</ol>
<h3><a name="ComptesFTPvirtuel%28sansutilisateurlocal%29sousUbuntuavecvsFTPdetcryptoSSL-Ressources"></a>Ressources</h3>
<ul>
<li><a href="http://wjholden.com/vsftpd-help.html">vsftpd help</a></li>
<li><a href="http://vsftpd.beasts.org/vsftpd_conf.html">vsftpd.conf manpages</a></li>
<li><a href="http://my.afterdawn.com/ketola/blog_entry.cfm/1262/vsftpd_ssl_and_iptables">vsftpd SSL and iptables</a></li>
<li><a href="http://www.ubuntututorials.net/installing-vsftpd-using-text-file-for-virtual-users/">Installing vsftpd using text file for virtual users</a></li>
<li><a href="http://www.cyberciti.biz/tips/configure-vsfptd-secure-connections-via-ssl-tls.html">Vsftpd SSL / TLS FTP Server Configuration</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2010/04/procedure-pour-creer-un-serveur-ftp-securise-ssl-force-avec-usager-virtuels-sous-ubuntu-linux-avec-vsftpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment dire à Apache le mime-type d&#8217;un document Office 2007</title>
		<link>http://renoirboulanger.com/blog/2010/04/comment-dire-a-apache-le-mime-type-dun-document-office-2007/</link>
		<comments>http://renoirboulanger.com/blog/2010/04/comment-dire-a-apache-le-mime-type-dun-document-office-2007/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 13:22:49 +0000</pubDate>
		<dc:creator>Renoir Boulanger</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sécurite]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://renoirboulanger.com/?p=2078</guid>
		<description><![CDATA[Comment dire à Apache le mime-type d&#8217;un document Office 2007J&#8217;ai entendu parler de certains Problèmes avec les documents .docx qui son considérés comme étant des fichiers zip. J&#8217;ai pensé partager avec vous comment j&#8217;ai réparé la situation.
Il est possible que le serveur apache ne considère pas les fichiers doc sur le serveur comme étant des [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2010/04/comment-dire-a-apache-le-mime-type-dun-document-office-2007/' class='retweet '  style='display:block;margin:10px 0px;' >Comment dire à Apache le mime-type d&#8217;un document Office 2007</a><p>J&#8217;ai entendu parler de certains Problèmes avec les documents <strong>.docx</strong> qui son considérés comme étant des fichiers zip. J&#8217;ai pensé partager avec vous comment j&#8217;ai réparé la situation.</p>
<p>Il est possible que le serveur apache ne considère pas les fichiers doc sur le serveur comme étant des fichiers office. Normalement un navigateur téléchargera le fichier et ouvrira avec le programme qu&#8217;il considère comme étant le bon.</p>
<p>A moins que l&#8217;ordinateur du visiteur ait pas de bonne association de fichier, dans ce cas, on peut rien y faire.</p>
<p>Pour aider, on peut annoncer au serveur web les associations MIME.</p>
<p>Le problème avec cette méthode qui ne sert presque a rien, c&#8217;est que ça ne changera rien si</p>
<ol>
<li>Le visiteur n&#8217;a pas de bonne association sur son système d&#8217;exploitation</li>
<li>Le visiteur n&#8217;a pas Microsoft Office 2007 ou Open Office</li>
</ol>
<p><span id="more-2078"></span></p>
<h3>Procédure</h3>
<p>Copier-coller ce bloc dans un ou encore dans l&#8217;un ou l&#8217;autre:</p>
<ul>
<li>le <tt>.htaccess</tt> du site qui contient les fichiers a télécharger, exemple: <tt>public_html/</tt></li>
<li>le <tt>&lt;VirtualHost/&gt;</tt> dans le <tt>&lt;Directory&gt;</tt> associé.</li>
</ul>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="htaccess" style="font-family:monospace;">AddType application/vnd.ms-word.document.macroEnabled.12 .docm
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
AddType application/vnd.ms-powerpoint.template.macroEnabled.12 potm
AddType application/vnd.openxmlformats-officedocument.presentationml.template potx
AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
AddType application/vnd.ms-excel.addin.macroEnabled.12 xlam
AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
AddType application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
AddType application/vnd.ms-excel.template.macroEnabled.12 xltm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx</pre></td></tr></table></div>

<p><strong>source:</strong><a href="http://www.webdeveloper.com/forum/showthread.php?t=162526">Webdeveloper.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2010/04/comment-dire-a-apache-le-mime-type-dun-document-office-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Une VM Linux qui sert au développement PHP 5.3 avec Eclipse &#8211; partie II</title>
		<link>http://renoirboulanger.com/blog/2009/09/une-vm-linux-qui-sert-au-developpement-php-5-3-avec-eclipse-partie-ii/</link>
		<comments>http://renoirboulanger.com/blog/2009/09/une-vm-linux-qui-sert-au-developpement-php-5-3-avec-eclipse-partie-ii/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 19:14:05 +0000</pubDate>
		<dc:creator>Renoir Boulanger</dc:creator>
				<category><![CDATA[GeekNight]]></category>
		<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sécurite]]></category>
		<category><![CDATA[Tutoriels]]></category>

		<guid isPermaLink="false">http://renoirboulanger.com/?p=1086</guid>
		<description><![CDATA[Une VM Linux qui sert au développement PHP 5.3 avec Eclipse &#8211; partie IICe billet est le deuxième d&#8217;une série d&#8217;articles décrivant la fabrication d&#8217;une Machine Virtuelle (VM) de développement pour une équipe de dévelopeurs.
Ce billet expliquera comment j&#8217;installe un système Linux que je considère de base pour une infrastructure d&#8217;hébergement applicatif. Je ne couvrirai [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2009/09/une-vm-linux-qui-sert-au-developpement-php-5-3-avec-eclipse-partie-ii/' class='retweet '  style='display:block;margin:10px 0px;' >Une VM Linux qui sert au développement PHP 5.3 avec Eclipse &#8211; partie II</a><p>Ce billet est le <strong>deuxième</strong> d&#8217;une série d&#8217;articles décrivant la fabrication d&#8217;une Machine Virtuelle (VM) de développement pour une équipe de dévelopeurs.</p>
<p>Ce billet expliquera comment j&#8217;installe un système Linux que je considère de base pour une infrastructure d&#8217;hébergement applicatif. Je ne couvrirai pas les configurations plus avancés pour améliorer la sécurité. Je risque de le faire plus tard.<br />
<span id="more-1086"></span><br />
J&#8217;ai séparé cette série en quatre volets.</p>
<ol>
<li><strong><a href="http://renoirboulanger.com/blog/2009/09/une-vm-linux-qui-sert-au-developpement-php-5-3-avec-eclipse-partie-i">Description du concept</a></strong> (article précédent)
<p>Ce que je vais discuter dans cette série d&#8217;articles n&#8217;est pas nécessairement connu de tous. Je vais donc vulgariser un peu avant de commencer.</li>
<li><strong>Installation du système</strong> (cet article)
<p>Je donne ici mon secret de magicien avec quelques configurations que je considère importantes pour un environement d&#8217;hébergement web pour améliorer la sécruité (le strict minimum pour cette série d&#8217;articles. Je pourrai en faire un plus poussé plus tard).</li>
<li><strong><a href="http://renoirboulanger.com/blog/2009/09/une-vm-linux-qui-sert-au-developpement-php-5-3-avec-eclipse-partie-iii">Compilation de PHP 5.3</a></strong>
<p>Comment installer Apache 2.x avec le dernier cutting-edge PHP.</li>
<li><strong>Installation de l&#8217;environnement de développement avec Eclipse PDT</strong> (à venir)
<p>La magie se passe par là! Avec ce setup votre équipe pourra répliquer l&#8217;installation de développement a volonté.</li>
</ol>
<h3><a name="BaseSystem"></a>Installation du système de base</h3>
<p>J&#8217;utilise personnellement Debian Linux depuis quelques années car je le trouve plus léger que Red Hat Enterprise Linux ou n&#8217;importe quelle saveur de RedHat (Fedora, CentOS, etc)</p>
<p><strong>Note: </strong>Je n&#8217;expliquerai pas comment faire pour  <a href="http://linux.justinhartman.com/Installing_a_Debian_Etch_base_system">installer Debian Linux de base (dans une VM)</a> car c&#8217;est un sujet déjà largement couvert.</p>
<p>Personnellement j&#8217;installe le système avec la version actuelle provenant d&#8217;un mini boot server que j&#8217;ai sur un réseau que je partage avec quelques amis.</p>
<p>Une installation simple <a href="http://linux.justinhartman.com/Installing_a_Debian_Etch_base_system">comme celle ci</a>, ferait très bien l&#8217;affaire.</p>
<ul>
<li>Utiliser le dernier Debian stable</li>
<li>à l&#8217;écran &#8220;<strong>Debian Software Installation</strong>&#8221; <strong>Je coche</strong> généralement ~<strong>rien</strong>~, car<strong> je vais donner plus de détails</strong> ici.</li>
</ul>
<p>Les étapes&#8230;</p>
<ol>
<li>Modifier le

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list</pre></td></tr></table></div>

<p>et <strong>Enlever la mention du CD-rom</strong> et <strong>Ajouter la mention &#8220;<tt>contrib</tt>&#8220;</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>debian.savoirfairelinux.net<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span> lenny main
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>debian.savoirfairelinux.net<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span> lenny main
deb http:<span style="color: #000000; font-weight: bold;">//</span>security.debian.org<span style="color: #000000; font-weight: bold;">/</span> lenny<span style="color: #000000; font-weight: bold;">/</span>updates main contrib
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>security.debian.org<span style="color: #000000; font-weight: bold;">/</span> lenny<span style="color: #000000; font-weight: bold;">/</span>updates main contrib
&nbsp;
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.debian.org<span style="color: #000000; font-weight: bold;">/</span>debian lenny contrib
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.debian.org<span style="color: #000000; font-weight: bold;">/</span>debian lenny contrib
&nbsp;
deb http:<span style="color: #000000; font-weight: bold;">//</span>debian-multimedia.org<span style="color: #000000; font-weight: bold;">/</span> lenny main
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>debian-multimedia.org<span style="color: #000000; font-weight: bold;">/</span> lenny main</pre></td></tr></table></div>

<p><strong>Note:</strong> Il s&#8217;agit de mon propre <tt>sources.list</tt> ayant trouvé <tt>savoirfairelinux</tt> comme étant le plus rapide en utilisant <a href="http://linuxhelp.blogspot.com/2007/05/using-netselect-apt-tip-to-select.html">netselect-apt</a> et la liste des <a href="http://www.debian.org/mirror/list">mirroirs Debian</a></li>
<li>Updater les sources

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-get update</span></pre></td></tr></table></div>

</li>
<li>Installer les paquets essentiels

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-get install openssh-server mlocate screen sudo vim ntpdate linux-headers-$(uname -r) syslog-ng build-essential open-vm-tools</span></pre></td></tr></table></div>

<p><strong>Note:</strong> remarquez la présence de <tt>open-vm-tools</tt> il s&#8217;agit d&#8217;un package provenant de Debian contrib pour les VM <strong>VMware</strong> (n&#8217;installez pas si vous utilisez <tt>Xen</tt>)&#8230; au lieu de compiler vm-ware-tools pour le kernel&#8230; Debian s&#8217;en occupe (!!)</li>
<li>Ajouter les droits sudo à <tt>sudo</tt>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># visudo</span></pre></td></tr></table></div>

<ol>
<li>Va ouvrir <tt><a href="http://en.wikipedia.org/wiki/Pico_%28text_editor%29">pico</a></tt></li>
<li>Décommenter <strong><tt>%sudo ALL=NOPASSWD: ALL</tt></strong></li>
<li>Pour quitter, faire CTRL+x y ENTER</li>
</ol>
</li>
<li>Updater la DB de mlocate

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># updatedb</span></pre></td></tr></table></div>

</li>
<li>Lier killall5 sous le nom legacy de <tt>killall</tt>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># ln -s /sbin/killall5 /sbin/killall</span></pre></td></tr></table></div>

</li>
<li>suivre <strong>Procédure de configuration de NTP pour les serveurs</strong>.<br />
<strong>Note</strong> L&#8217;idée est d&#8217;éviter d&#8217;utiliser en mémoire les démons le plus possible. Si utile soit-il (comme ajuster l&#8217;heure, ici). Il est plus pratique qu&#8217;elle soit ajustée aux heures et laisser l&#8217;espace mémoire pour son usage primaire.</p>
<ol>
<li>Entrer en édition dans le fichier

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>ntpdate</pre></td></tr></table></div>

</li>
<li>Trouver dans le fichier la variable <strong><tt>NTPSERVERS</tt></strong>, <strong>Remplacer</strong>, soit par&#8230;

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">NTPSERVERS</span>=<span style="color: #ff0000;">&quot;0.ca.pool.ntp.org 1.ca.pool.ntp.org 2.ca.pool.ntp.org&quot;</span></pre></td></tr></table></div>

</li>
<li>Faire i (pour Insert)</li>
<li>Ajouter a <tt>NTPOPTIONS</tt>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">NTPOPTIONS</span>=<span style="color: #ff0000;">&quot;-u&quot;</span></pre></td></tr></table></div>

</li>
<li>Faire ESCAPE</li>
<li>:wq</li>
<li>Créer un fichier <tt>cron.hourly</tt>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.hourly<span style="color: #000000; font-weight: bold;">/</span>ntpdate</pre></td></tr></table></div>

</li>
<li>Ajouter le contenu

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>ntpdate <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>ntpdate ; <span style="color: #000000; font-weight: bold;">then</span>
        . <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>ntpdate
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #007800;">NTPSERVERS</span>=<span style="color: #ff0000;">&quot;0.ca.pool.ntp.org&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$NTPSERVERS</span>&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>ntpdate <span style="color: #660033;">-s</span> <span style="color: #007800;">$NTPOPTIONS</span> <span style="color: #007800;">$NTPSERVERS</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000;">1</span>
<span style="color: #666666; font-style: italic;"># Exit with a succes anyway, avoids spamming root.</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

</li>
<li>Changer les permissions pour qu&#8217;il puisse être exécuté

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.hourly<span style="color: #000000; font-weight: bold;">/</span>ntpdate</pre></td></tr></table></div>

</li>
<li>Essayer

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.hourly<span style="color: #000000; font-weight: bold;">/</span>ntpdate</pre></td></tr></table></div>

</li>
<li>Voir dans syslog, ça devrait ressembler à&#8230;

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tail /var/log/syslog</span>
...
Dec <span style="color: #000000;">30</span> <span style="color: #000000;">13</span>:<span style="color: #000000;">39</span>:<span style="color: #000000;">35</span> willow ntpdate<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1912</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: adjust <span style="color: #000000; font-weight: bold;">time</span> server 192.168.1.5 offset <span style="color: #000000;">0.005642</span> sec
...</pre></td></tr></table></div>

</li>
</ol>
</li>
<li>Installer le service d&#8217;envoi courriel&#8230;
<p>Question de pouvoir <strong>recevoir les avertissements</strong> par courriel</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-get install postfix</span></pre></td></tr></table></div>

<ol>
<li>Satellite System (On veut envoyer les courriels ailleurs et rien garder ici)</li>
<li>&#8220;Mail name?&#8221;&#8230;  <strong><tt>NOMDELAVM</tt></strong></li>
<li>&#8220;SMTP relay host?&#8221;&#8230;  votre relai SMTP fourni par votre fournisseur</li>
<li>&#8220;Other destinations&#8230;&#8221; Ajuster les noms</li>
<li>Enter</li>
<li>&#8220;Local networks?&#8221;&#8230; ENTER</li>
<li>&#8230;</li>
<li>Tester l&#8217;envoi<br />
(<strong>NOTE:</strong> vous pouvez aussi utiliser l&#8217;outil Debian <tt>swaks</tt>)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># mail test@test.com</span>
Subject: Patate <span style="color: #000000;">1</span> am
Message, qui doit terminer avec une ligne seule et un point .
.
Cc:</pre></td></tr></table></div>

</li>
<li>Regarder les mails du destinataire.</li>
</ol>
</li>
</ol>
<h3>Références</h3>
<ul>
<li><a lang="en" href="http://www.vmware.com/products/server/">VMware Server</a> (anglais seulement)</li>
<li><a lang="en" href="http://linux.justinhartman.com/Installing_a_Debian_Etch_base_system">Installing a Debian Base system</a> (anglais seulement)</li>
<li><a lang="en" href="http://helpdeskgeek.com/virtualization/creating-a-virtual-machine-on-vmware-server/">Creating a Virtual Machine on VMware server</a> (anglais seulement)</li>
<li><a lang="en" href="http://linuxhelp.blogspot.com/2007/05/using-netselect-apt-tip-to-select.html">Using <tt>netselect-apt</tt> tip to select</a> (anglais seulement)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2009/09/une-vm-linux-qui-sert-au-developpement-php-5-3-avec-eclipse-partie-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Un firewall simple sous Linux avec «Ferm»</title>
		<link>http://renoirboulanger.com/blog/2009/08/un-firewall-simple-sous-linux-avec-%c2%abferm%c2%bb/</link>
		<comments>http://renoirboulanger.com/blog/2009/08/un-firewall-simple-sous-linux-avec-%c2%abferm%c2%bb/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 04:12:06 +0000</pubDate>
		<dc:creator>Renoir Boulanger</dc:creator>
				<category><![CDATA[GeekNight]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sécurite]]></category>
		<category><![CDATA[Tutoriels]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://renoirboulanger.com/?p=751</guid>
		<description><![CDATA[Un firewall simple sous Linux avec «Ferm»Attention: Article Technique!
Dans le but de faire profiter la postérité et ma mémoire personnelle voici mon premier post d&#8217;une série d&#8217;articles spécialisée sur Linux.
Ces articles proviennent de ma voûte documentaire professionnelle et personnelle.
Évidemment pour les publier ici je dois censurer les détails sensibles, vous me comprendrez (!)
Le fait de [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2009/08/un-firewall-simple-sous-linux-avec-%c2%abferm%c2%bb/' class='retweet '  style='display:block;margin:10px 0px;' >Un firewall simple sous Linux avec «Ferm»</a><p>Attention: Article Technique!</p>
<p>Dans le but de faire profiter la postérité et ma mémoire personnelle voici mon premier post d&#8217;une série d&#8217;articles spécialisée sur Linux.</p>
<p>Ces articles proviennent de ma voûte documentaire professionnelle et personnelle.</p>
<p>Évidemment pour les publier ici je dois censurer les détails sensibles, vous me comprendrez (!)</p>
<p>Le fait de les avoir dans le format Wiki Markup de Confluence&#8230; et les traduire ici demande du temps pour les reformatter pour mon blogue.</p>
<h2>D&#8217;autres articles spécialisés Debian Linux</h2>
<p>D&#8217;autres articles technique (pour Debian Linux) seront aussi disponibles dans les prochaines semaines.</p>
<p>Voici une liste de quelques uns que je compte publier:</p>
<ol>
<li>Monter une machine en SNMP v2c en lecture seule</li>
<li>Permettre des updates aux serveurs NTP a l&#8217;heure</li>
<li>Installer VMware server 2 sur Debian</li>
<li>Augumenter le niveau de sécurité pour Infra Publique sous Debian</li>
<li>Procédure configuration SYSLOG-NG vers un serveur de log</li>
</ol>
<p>J</p>
<p><span id="more-751"></span></p>
<h2>Installer et configurer</h2>
<p>En fait, sous Debian c&#8217;est pas très compliqué, on ajoute le paquet, puis on le configure comme mentionné plus bas.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-get update</span>
<span style="color: #666666; font-style: italic;"># apt-get install ferm libnet-dns-perl perl iptables</span></pre></td></tr></table></div>

<p>J&#8217;ai fait une petite version qui permet d&#8217;utiliser des variables et mettre le code un peu plus clean (d&#8217;un point de vue programmeur).</p>
<p>Vous pouvez remplacer par ce code ci:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># -*- shell-script -*-</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#  Configuration file for ferm(1).</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># vmware-mgmt = 8333</span>
<span style="color: #666666; font-style: italic;"># vmware-console = 902</span>
<span style="color: #666666; font-style: italic;"># ntop = 3000</span>
<span style="color: #666666; font-style: italic;"># ... ports ajoutes dans /etc/services</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Source http://www.krzywanski.net/archives/90</span>
<span style="color: #666666; font-style: italic;"># Interfaces</span>
<span style="color: #000000; font-weight: bold;">@</span>def <span style="color: #007800;">$DEV_LOCAL</span> = lo;
<span style="color: #000000; font-weight: bold;">@</span>def <span style="color: #007800;">$DEV_LAN</span> = <span style="color: #7a0874; font-weight: bold;">&#40;</span>eth1 vmnet1 vmnet8<span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">@</span>def <span style="color: #007800;">$DEV_INTERNET</span> = eth0;
&nbsp;
<span style="color: #666666; font-style: italic;"># Ports</span>
<span style="color: #000000; font-weight: bold;">@</span>def <span style="color: #007800;">$PORTS</span> = <span style="color: #7a0874; font-weight: bold;">&#40;</span>ntp name http https smtp<span style="color: #7a0874; font-weight: bold;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># Known IPs</span>
<span style="color: #000000; font-weight: bold;">@</span>def <span style="color: #007800;">$SSH_ALLOWED</span> = <span style="color: #7a0874; font-weight: bold;">&#40;</span>69.159.234.55 192.168.2.1<span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">@</span>def <span style="color: #007800;">$SSH_DYNDNS</span> = <span style="color: #000000; font-weight: bold;">@</span>resolve<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>somehost.renoirboulanger.com someotherhost.somenetwork.net<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># SSH Clients</span>
<span style="color: #000000; font-weight: bold;">@</span>def <span style="color: #007800;">$SSH_CLIENTS</span> = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$SSH_ALLOWED</span> <span style="color: #007800;">$SSH_DYNDNS</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
&nbsp;
table filter <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    chain INPUT <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        policy DROP;
&nbsp;
        <span style="color: #666666; font-style: italic;"># connection tracking</span>
        mod state state INVALID DROP;
        mod state state <span style="color: #7a0874; font-weight: bold;">&#40;</span>ESTABLISHED RELATED<span style="color: #7a0874; font-weight: bold;">&#41;</span> ACCEPT;
&nbsp;
        <span style="color: #666666; font-style: italic;"># allow local packages</span>
        interface <span style="color: #007800;">$DEV_LOCAL</span> ACCEPT;
        interface <span style="color: #007800;">$DEV_LAN</span> ACCEPT;
&nbsp;
        <span style="color: #666666; font-style: italic;"># allow ping from the administrator's network</span>
        interface <span style="color: #007800;">$DEV_INTERNET</span> saddr <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$SSH_DYNDNS</span> <span style="color: #007800;">$SSH_ALLOWED</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> proto icmp icmp-type echo-request ACCEPT;
&nbsp;
        <span style="color: #666666; font-style: italic;"># respond to ping</span>
        proto icmp icmp-type echo-request ACCEPT;
&nbsp;
        <span style="color: #666666; font-style: italic;"># allow SSH connections</span>
        proto tcp dport <span style="color: #000000;">2522</span> ACCEPT;
&nbsp;
        proto tcp dport <span style="color: #007800;">$PORTS</span> ACCEPT;
    <span style="color: #7a0874; font-weight: bold;">&#125;</span>
    chain OUTPUT <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        policy ACCEPT;
&nbsp;
        <span style="color: #666666; font-style: italic;"># connection tracking</span>
        mod state state INVALID DROP;
        mod state state <span style="color: #7a0874; font-weight: bold;">&#40;</span>ESTABLISHED RELATED<span style="color: #7a0874; font-weight: bold;">&#41;</span> ACCEPT;
    <span style="color: #7a0874; font-weight: bold;">&#125;</span>
    chain FORWARD <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        policy DROP;
&nbsp;
        <span style="color: #666666; font-style: italic;"># connection tracking</span>
        mod state state INVALID DROP;
        mod state state <span style="color: #7a0874; font-weight: bold;">&#40;</span>ESTABLISHED RELATED<span style="color: #7a0874; font-weight: bold;">&#41;</span> ACCEPT;
    <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>Pour plus de détails a propos de la syntaxe, <a href="http://ferm.foo-projects.org/download/2.0/ferm.html">voir la documentation</a>.</p>
<h2>Autres ressources</h2>
<p>J&#8217;ai utilisé, entre autres ces ressources pour m&#8217;inspirer de ce mini-tutoriel</p>
<ol>
<li><a href="http://www.debian.org/doc/manuals/securing-debian-howto">Securing Debian HOWTO</a></li>
<li><a href="http://www.tldp.org/HOWTO/Security-HOWTO/">Linux Security HOWTO</a></li>
<li><a href="http://www.cromwell-intl.com/security/security-firewall.html">Firewall Tools</a></li>
<li><a href="http://www.debian.org/security/">Debian Security</a></li>
<li><a href="http://www.debian.org/doc/debian-policy/">Debian Policies</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2009/08/un-firewall-simple-sous-linux-avec-%c2%abferm%c2%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faire son inventaire personnel avec Namminik.com</title>
		<link>http://renoirboulanger.com/blog/2009/08/faire-son-inventaire-personnel-avec-namminik-com/</link>
		<comments>http://renoirboulanger.com/blog/2009/08/faire-son-inventaire-personnel-avec-namminik-com/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 12:44:46 +0000</pubDate>
		<dc:creator>Renoir</dc:creator>
				<category><![CDATA[Actualites]]></category>
		<category><![CDATA[Outils]]></category>
		<category><![CDATA[Sécurite]]></category>

		<guid isPermaLink="false">http://www.renoirboulanger.com/?p=491</guid>
		<description><![CDATA[Faire son inventaire personnel avec Namminik.comFaire son inventaire personnel est une tâche qu&#8217;on remet très aisément de coté.
Pourtant faire son inventaire peut s&#8217;avérer plaisant. Avec tout les services web 2.0 qui existent aujourd&#8217;hui, pourquoi ne pas faire pareil avec ce type d&#8217;activité important mais qu&#8217;on remet toujours à demain?
Personnellement, j&#8217;ai jamais pensé à faire cette [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2009/08/faire-son-inventaire-personnel-avec-namminik-com/' class='retweet '  style='display:block;margin:10px 0px;' >Faire son inventaire personnel avec Namminik.com</a><p>Faire son inventaire personnel est une tâche qu&#8217;on remet très aisément de coté.</p>
<p>Pourtant faire son inventaire peut s&#8217;avérer plaisant. Avec tout les services web 2.0 qui existent aujourd&#8217;hui, pourquoi ne pas faire pareil avec ce type d&#8217;activité important mais qu&#8217;on remet toujours à demain?</p>
<p>Personnellement, j&#8217;ai jamais pensé à faire cette activité.</p>
<p>Avec Namminik, j&#8217;ai rapidement pris plaisir<br />
J&#8217;ai un très bon ami qui a fait son inventaire avec son appareil numérique<br />
Mon collègue Félix Martineau http://heffem.blogspot.com/2008/01/flix-vous-prsente-namminikcom.html</p>
<p>http://www2.infopresse.com/blogs/actualites/archive/2007/09/10/article-23462.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2009/08/faire-son-inventaire-personnel-avec-namminik-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Effacer un disque dur</title>
		<link>http://renoirboulanger.com/blog/2008/04/effacer-un-disque-dur/</link>
		<comments>http://renoirboulanger.com/blog/2008/04/effacer-un-disque-dur/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 04:45:08 +0000</pubDate>
		<dc:creator>Renoir Boulanger</dc:creator>
				<category><![CDATA[GeekNight]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sécurite]]></category>
		<category><![CDATA[Tutoriels]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.renoirboulanger.com/blog/2008/04/16/effacer-un-disque-dur/</guid>
		<description><![CDATA[Effacer un disque durLorsqu&#8217;on se préocupe de ses informations personnelles et qu&#8217;on veut se débarrasser d&#8217;un ordinateur ou d&#8217;un vieux disque dur il faut, idéalement, le vider. J&#8217;ai une petite méthode pour le faire pas trop compliqué et totalement sécuritaire pour les données.
Ma méthode implique

Un disque dur qu&#8217;on veut wiper (effacer)
Un LiveCD de Linux
Du temps
Une [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2008/04/effacer-un-disque-dur/' class='retweet '  style='display:block;margin:10px 0px;' >Effacer un disque dur</a><p>Lorsqu&#8217;on se préocupe de ses informations personnelles et qu&#8217;on veut se débarrasser d&#8217;un ordinateur ou d&#8217;un vieux disque dur il faut, idéalement, le vider. J&#8217;ai une petite méthode pour le faire pas trop compliqué et totalement sécuritaire pour les données.</p>
<p>Ma méthode implique</p>
<ul>
<li>Un disque dur qu&#8217;on veut wiper (effacer)</li>
<li>Un LiveCD de Linux</li>
<li>Du temps</li>
<li>Une tour d&#8217;ordinateur pour le processus, idéalement inutilisée&#8230; sinon où chercher ou quoi utiliser pour se «dé-s&#8217;emmerder»
<ul>
<li>Un lecteur CD-Rom</li>
</ul>
</li>
</ul>
<p>Attention, un peu technique&#8230; mais tellement conseillé <img src='http://renoirboulanger.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>ÉTAPE UN&#8230; backups?!</h3>
<p>C&#8217;est un peu stupide de le préciser&#8230; mais assurez-vous qu&#8217;il est vraiment vide de vos données avant de faire quoi que ce soit!</p>
<p><strong>Je vous recommande DE NE PAS AVOIR D&#8217;AUTRES DISQUES D&#8217;INSTALLÉ lors de l&#8217;exécution de ce script</strong> Tant que vous exécutez pas le script a l&#8217;<a href="http://renoirboulanger.com/blog/2008/04/effacer-un-disque-dur/#six">étape six</a> vous ne risquez rien (!). </p>
<p><span id="more-531"></span></p>
<h3>ÉTAPE DEUX&#8230; Graver le LiveCD</h3>
<p>Pour faire la chose facile, vous pouvez prendre le LiveCD de Debian, ma distribution préférée:</p>
<p><code lang="bash">http://live.debian.net/cdimage/release/current/i386/iso-cd/</code></p>
<p>Une version &#8216;<tt>debian-live-(.*)-i386-rescue.iso</tt>&#8216; fera l&#8217;affaire.</p>
<div style="background:#ececec;margin:5px 0px;padding:18px 8px 8px 50px;border:1px solid #333">
<h4 style="color:#777;margin-bottom:10px;">OÙ TROUVER LINUX</h4>
<p>Vous pouvez regarder <a href="http://wiki.debian.org/LiveCD">ici</a> pour d&#8217;autres versions de Debian.</p>
<p>Pour remplacer Windows, ce que je recommande c&#8217;est d&#8217;utiliser <a href="http://www.ubuntu.com/">Ubuntu Linux</a> (ce que j&#8217;utilise pour mon environnement de Bureau).</p>
<p>Mais ce n&#8217;est pas le but de cet article <img src='http://renoirboulanger.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Juste une dernière note comme ça: Debian, pour moi, sert pour les serveurs&#8230; et Ubuntu est basé sur Debian.</p>
<p>Pour ce qui concerne Linux et notre utilisation actuelle, n&#8217;importe quelle version fera l&#8217;affaire.</p></div>
<p>Les commandes nécessaires seront celles de base pour n&#8217;importe quel Linux depuis ses débuts :</p>
<ul>
<li>/dev/urandom, ou</li>
<li> /dev/zero</li>
<li>dd</li>
</ul>
<p>Je ne me rappelle pas quand Linux en général a inclus ces trucs mais c&#8217;est ce qu&#8217;il faut.</p>
<p>En gros les deux premiers sont des device files qui fournissent du junk aléatoire&#8230; et l&#8217;autre. Que des zéros!</p>
<p>Tandis que &#8220;dd&#8221; est un utilitaire pour écrire en device to device&#8230;. (aka. dd) <img src='http://renoirboulanger.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>ÉTAPE TROIS, on vide</h3>
<p>En fait, on enlève tout les autres disques durs question de ne pas se tromper!</p>
<p>Ensuite, il est bien de remarquer que le processus peut prendre du temps. Ce serait idéal d&#8217;avoir une tour qui sert a rien&#8230; sinon on tombe a devoir attendre après.</p>
<h3>ÉTAPE QUATRE, On démarre le LiveCD</h3>
<p>&#8230; On attend le command prompt. C&#8217;est comme du DOS à l&#8217;époque, sauf que c&#8217;est vraiment plus puissant!</p>
<p>Pour reconnaitre un prompt linux, on voit quelque chose du genre:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>debian:~ $</pre></td></tr></table></div>

<p>ou encore&#8230; si on voit le dièze (#)&#8230; c&#8217;est qu&#8217;on est un super utilisateur (root). Un LiveCD nous envoit généralement en root alors on devrait voir quelque chose de similaire à:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>debian: ~ <span style="color: #666666; font-style: italic;">#</span></pre></td></tr></table></div>

<h3>ÉTAPE CINQ, on script un peu</h3>
<p>On peut le faire de plusieurs façon la même chose.  En gros, on se doit, pour s&#8217;assurer d&#8217;effacer complè<span style="background-color: #ffffff; ">tement le disque de le remplir au moins huit fois au minimum de données random. Alors je propose le petit script qui se copie bien à la main.</span></p>
<p>Si vous avez vidé vos disques durs le disque dur a vider devraît être /dev/hda</p>
<p>Pour vous en assurer, faites</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>debian: ~<span style="color: #666666; font-style: italic;"># file /dev/hda</span></pre></td></tr></table></div>

<p>Un output similaire ceci devrait sortir&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda: block special <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

<div style="background:#ececec;margin:5px 0px;padding:18px 8px 8px 50px;border:1px solid #333">
<h4 style="color:#777;margin-bottom:10px;">«CRASH COURSE» SUR LES PARTITIONS ET LINUX</h4>
<p>Pour vous assurer de ne pas effacer un bon disque dur, je vous <strong>re-recommande DE NE PAS AVOIR D&#8217;AUTRES DISQUES D&#8217;INSTALLÉ lors de l&#8217;exécution de ce script</strong> (<a href="http://renoirboulanger.com/blog/2008/04/effacer-un-disque-dur/#six">étape six</a>)!!!</p>
<p>Parceque si c&#8217;est pas le disque <tt>/dev/hda</tt>, c&#8217;est peut être <tt>/dev/sda</tt> ou même un autre nom.</p>
<p>Petit cours rapide de partitionnement sous Linux.</p>
<p>Les disques durs n&#8217;ont pas de lettres&#8230; tout dépend où dans le système on &#8220;monte&#8221; la partition.</p>
<p>En fait les noms vont ainsi</p>
<ul>
<li><tt>hda</tt>, <tt>hdb</tt>, <tt>hdc</tt>&#8230; pour les disques durs IDE</li>
<li><tt>sda</tt>, <tt>sdb</tt>, <tt>sdc</tt>&#8230;. pour les disques SATA et SCSI et USB</li>
</ul>
<p>Vous imaginez que le &#8216;a&#8217; (b,c,d&#8230;) représente l&#8217;ordre selon la nappe de connecteurs.</p>
<p>La première partition du premier disque sera donc: <tt>/dev/sda1</tt>
</div>
<p>Si tout est beau&#8230; on continue.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>debian: ~<span style="color: #666666; font-style: italic;"># vi wipedisk.sh</span></pre></td></tr></table></div>

<p>En VI, il faut faire &#8216;i&#8217; avant de commencer d&#8217;écrire&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">i</span>=<span style="color: #000000;">1</span>;i<span style="color: #000000; font-weight: bold;">&amp;</span>lt;=<span style="color: #000000;">10</span>;i+=<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Passe <span style="color: #007800;">$i</span>&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>Ensuite on quitte <strong>en faisant</strong> <strong>[escape]</strong> on <strong>écrit</strong> &#8220;<strong>:wq</strong>&#8221; (deux points&#8230; &#8220;w&#8221; et &#8220;q&#8221;&#8230; qui signifie commande write quit)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>debian: ~<span style="color: #666666; font-style: italic;"># chmod 755 wipedisk.sh</span></pre></td></tr></table></div>

<p>Qui va rendre le fichier exécutable.</p>
<h3><a name="six"></a>ÉTAPE SIX&#8230; on exécute.</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>debian: ~<span style="color: #666666; font-style: italic;"># ./wipedisk.sh</span></pre></td></tr></table></div>

<p>En général, ça peut prendre du temps. Mais à la fin d&#8217;une soirée de film&#8230; le disque devrait être totalement rempli d&#8217;ordures aléatoire.</p>
<p>Au plaisir!</p>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2008/04/effacer-un-disque-dur/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Créer un tunnel SSH avec session distante en Console VMWare</title>
		<link>http://renoirboulanger.com/blog/2007/10/tunnel-ssh-avec-session-distante-en-console-vmware/</link>
		<comments>http://renoirboulanger.com/blog/2007/10/tunnel-ssh-avec-session-distante-en-console-vmware/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 22:34:36 +0000</pubDate>
		<dc:creator>Renoir</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sécurite]]></category>

		<guid isPermaLink="false">http://www.renoirboulanger.com/tunnel-ssh-avec-session-distante-en-console-vmware/</guid>
		<description><![CDATA[Créer un tunnel SSH avec session distante en Console VMWareIl existe plusieurs page de how-to&#8217;s pour se connecter a une application a distance. Mais j&#8217;ai envie de mettre pour mes propres archives.
Ce billet prend en considérations que&#8230;

Vous voulez vous connecter a un service précis (disons VMWare Server Console)
Sur une machine parmi un réseau de X [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2007/10/tunnel-ssh-avec-session-distante-en-console-vmware/' class='retweet '  style='display:block;margin:10px 0px;' >Créer un tunnel SSH avec session distante en Console VMWare</a><p>Il existe plusieurs page de how-to&#8217;s pour se connecter a une application a distance. Mais j&#8217;ai envie de mettre pour mes propres archives.</p>
<p>Ce billet prend en considérations que&#8230;</p>
<ul>
<li>Vous voulez vous connecter a un service précis (disons VMWare Server Console)</li>
<li>Sur une machine parmi un réseau de X ordinateurs</li>
<li>Le gateway (routeur) relie toutes les connections vers un host en Linux (proxysrv) qui sert a s&#8217;authentifier et accéder au reste du réseau.</li>
<li>Le serveur sur le réseau qui héberge des machines virtuelles avec VMWare Server (vmserver1).</li>
<li>Le port 902 (le port TCP que vous voulez utiliser) sur le firewall interne (de vmserver1) est ouvert. Et</li>
<li>Vous voulez vous connecter a un de ses VM.</li>
</ul>
<div style="background: #ececec; margin: 5px 0px; padding: 18px 8px 8px 50px; border: 1px solid #333;">
<h4 style="color: #777; margin-bottom: 10px;">Mise à jour</h4>
<p>Ce billet a été écrit originalement en 2007. À l&#8217;époque il n&#8217;existait pas de VMware ESXi, ni de VMware Server 2. Les concepts sont toujours bons par contre.</p>
</div>
<p><span id="more-361"></span></p>
<p>Pour avoir accès a une application distante (ou une autre machine/VM), il faut se créer un tunnel vers le réseau interne. En gros il faut avoir accès au réseau (dans mon exemple le serveur <em>proxysrv</em>).</p>
<p>Vous devez avoir un accès au réseau interne que vous avez accès, vous pouvez le demander a  votre Sysadmin de vous avoir un accès, mais ce n&#8217;est pas le point de ce billet.</p>
<p>Pour ouvrir une session SSH en tunnel, sous windows, il vous faut PuTTY. Si vous n&#8217;avez pas PuTTY faites une <a href="http://www.google.ca/search?q=putty">recherche google</a> c&#8217;est une petite application libre de droits. En linux, c&#8217;est simple</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-l</span> username <span style="color: #660033;">-L</span> <span style="color: #000000;">902</span>:192.168.3.97:<span style="color: #000000;">902</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">80</span>:192.168.3.88:<span style="color: #000000;">80</span> serveurdistant.ca</pre></td></tr></table></div>

<p><small>NOTE: Remarquez que vous n&#8217;avez qu&#8217;a ajouter le nombre de -L nécessaires (-L LOCAL_PORT:ON_REMOTE_NETWORK_IP:REMOTE_IP_OPENED_PORT_NUMBER)</small></p>
<p>Aussi, pour accéder a la console VMWare, il faut une version de <strong>VMWare Server</strong> ou une console VMWare. Le site VMWare ne semble pas avoir de version stand-alone de la console ni pour Linux ni Windows. Alors, si vous n&#8217;avez pas encore VMWare sur votre machine, allez chercher votre exemplaire de <a href="http://www.vmware.com/download/server/">VMWare Server ici</a>. Si vous avez &#8220;VMWare&#8221; d&#8217;installé mais pas de moyen de vous connecter en local ou a distance, désinstallez la, et installez la version server prescrite.</p>
<p>Dans notre exemple, on va accéder a distance au <strong>VMWare Server Console</strong> (sur vmserver1) qui utilise le port <strong>902</strong>.</p>
<h3>Les ports TCP sous Linux</h3>
<p>Pour pouvoir trouver d&#8217;autre ports a ouvrir le fichier texte /etc/services donne tout les ports et les alias qu&#8217;on peut utiliser comme alias. Ce fichier existe depuis longtemps dans tout ce qui est UNIX et Linux.</p>
<h3>Directives en résumé</h3>
<p>Une fois PuTTY et VMWare Server Console (ou console) fonctionnels (pour cet exemple) vous n&#8217;avez qu&#8217;a suivre les paramêtre ici:</p>
<ul>
<li> Hostname:<em> <strong>serveurdistant.ca</strong><br />
</em></li>
<li>Port: <strong>22</strong> (ssh)</li>
<li>Donner un nom de session, mais ne sauvegardez pas tout de suite.</li>
<li>Aller a <strong>SSH</strong>-&gt;<strong>Tunnels</strong> (plus bas)</li>
<li>Entrer, Source port : <strong>902</strong> (votre port local), Destination: (ip de vmserver1:le port) , puis cliquer Add.</li>
<li>Aller dans <strong>Connection</strong>-&gt;<strong>Data</strong>; Auto-login username, vous pouvez entrer le login qu&#8217;il faut si vous l&#8217;avez</li>
<li>Retourner au haut du menu et sauvegarder la session</li>
<li>Puis&#8230; [Open].</li>
</ul>
<p>Ensuite, connectez vous au service sur l&#8217;hôte localhost et le port que vous avez &#8220;tunnellé&#8221;.</p>
<ul>
<li> Connecter a VMWare Server</li>
<li>Ouvrir VMWare sur votre machine hors réseau&#8230; maintenant tunnellée</li>
<li>Connect to remote-host: <strong>localhost</strong></li>
<li>Login/pw: votre login pour accéder aux vm.</li>
</ul>
<p>Utiliser la VM comme si elle était locale.</p>
<p><strong>Source</strong></p>
<ul>
<li><a href="ttp://www.medicalnerds.com/port-forwarding-with-sshputty/">Exemple tunnel avec PuTTY.</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2007/10/tunnel-ssh-avec-session-distante-en-console-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lorsque gérer un réseau peut rimer avec vigilance plutôt que réparation</title>
		<link>http://renoirboulanger.com/blog/2007/09/lorsque-gerer-un-reseau-peut-rimer-avec-vigilance-plutot-que-reparation/</link>
		<comments>http://renoirboulanger.com/blog/2007/09/lorsque-gerer-un-reseau-peut-rimer-avec-vigilance-plutot-que-reparation/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 19:46:23 +0000</pubDate>
		<dc:creator>Renoir</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Outils]]></category>
		<category><![CDATA[Sécurite]]></category>
		<category><![CDATA[Tutoriels]]></category>

		<guid isPermaLink="false">http://www.renoirboulanger.com/lorsque-gerer-un-reseau-peut-rimer-avec-vigilance-plutot-que-reparation/</guid>
		<description><![CDATA[Lorsque gérer un réseau peut rimer avec vigilance plutôt que réparationLes collègues qui travaillent avec moi pour le réseau savent ce que qu&#8217;implique chaque modification dans le réseau. Nous travaillons pour remonter le réseau et atteindre un certain niveau côté qualité qui rendra notre travail plus facile pour tous.
Parmi ces améliorations, il s&#8217;agit d&#8217;un moyen [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2007/09/lorsque-gerer-un-reseau-peut-rimer-avec-vigilance-plutot-que-reparation/' class='retweet '  style='display:block;margin:10px 0px;' >Lorsque gérer un réseau peut rimer avec vigilance plutôt que réparation</a><p>Les collègues qui travaillent avec moi pour le réseau savent ce que qu&#8217;implique chaque modification dans le réseau. Nous travaillons pour remonter le réseau et atteindre un certain niveau côté qualité qui rendra notre travail plus facile pour tous.</p>
<p>Parmi ces améliorations, il s&#8217;agit d&#8217;un moyen de savoir si tout est correct et être averti si un changement à été opéré et même savoir &#8220;où est le bobo&#8221;.</p>
<p>Il s&#8217;agit du service de monitoring avec <a href="http://www.nagios.org/" target="_blank">Nagios</a>. Il ne s&#8217;agit ici pas d&#8217;un howo-to technique mais plutôt ma &#8220;review&#8221; de ce que l&#8217;installation que j&#8217;ai monté peut faire.</p>
<p><span id="more-351"></span></p>
<p>Il y a un mois ou deux je me suis commandé le livre &#8220;<a href="http://www.amazon.com/Building-Monitoring-Infrastructure-Nagios-Josephsen/dp/0132236931">Building a monitoring infrastructure with Nagios</a>&#8221; qui s&#8217;avère être très utile pour comprendre le fonctionnement.</p>
<p>Je ne l&#8217;ai pas tout lu car j&#8217;avait déja de l&#8217;expérience avec Nagios. Puis de toute façon je voulait faire comme on fait souvent, me débrouiller et apprendre avant de &#8220;lire le manuel&#8221;.</p>
<p>La façon qu&#8217;on l&#8217;a implantée consiste a utilser une <a href="http://www.vmware.com/appliances/directory/1002" target="_blank">VM déjà montée</a> (avec un <a href="http://www.oreon-project.org/" target="_blank">pannel appelé Centreon</a> (<a href="http://www.oreon-project.org/Newsflash/Oreon-became-Centreon.html" target="_blank">Anciennement Oreon</a>) le changement de nom de projet est tout récent).</p>
<p>En gros il s&#8217;agit d&#8217;une VM qui roule l&#8217;application et merge plusieurs applications fort utiles:</p>
<ul>
<li> Authentification avec notre serveur LDAP</li>
<li>RRDTools pour les graphiques</li>
<li>&#8230; et <a href="http://wiki.oreon-project.org/index.php/Plugins#More_plugins">bien d&#8217;autres</a>.</li>
</ul>
<p>Le pannel Centreon donne beaucoup d&#8217;avantages pour la gestion, dont;</p>
<ul>
<li> Un pannel plus complet [que celui fourni par Nagios] qui donne beaucoup plus d&#8217;options de configuration</li>
<li>Un processus de configuration qui te permet de tester AVANT &#8220;d&#8217;appliquer&#8221;</li>
<li>Un moyen de conserver une historique des états et même leurs graphiques.</li>
<li>Beaucoup d&#8217;options qui deviennent à portée de la main sur des fonctions de Nagios qu&#8217;on ne penserait pas nécessairement.</li>
</ul>
<p>Étant¬†une¬†&#8221;techie&#8221;¬†qui¬†utilise¬†beaucoup¬†la¬†ligne¬†de¬†commande,¬†j&#8217;ai¬†pourtant¬†été¬†surpris¬†d&#8217;être¬†rassuré¬†par l&#8217;interface aux premiers abords lourd mais complet de l&#8217;outil.</p>
<p>Dans¬†le¬†futur,¬†j&#8217;aimerai¬†entre-autre¬†améliorer¬†les¬†features¬†de¬†la¬†VM.¬†En voici quelques unes:</p>
<ul>
<li><a href="http://www.syslog.org/wiki/Main/CentralSyslogTip" target="_blank">Centraliser les logs</a> pour pouvoir les consulter en un seul endroit.</li>
<li>Utiliser Centreon/Nagios comme &#8220;<a href="http://wiki.oreon-project.org/index.php/SyslogNG" target="_blank">alerteur</a>&#8221; AVEC les <em>logs</em> CENTRALISÉS, un gros plus!</li>
<li>Avoir accès a une application du type <a href="http://www.splunk.com/" target="_blank">Splunk</a> pour &#8220;fouiller&#8221; dans les <em>logs</em>.</li>
<li> Intégrer les traps SNMP et pouvoir utiliser dans Nagios</li>
<li> Intégrer le plugin <a href="http://www.network-weathermap.com/node/49" target="_blank">WeatherMap</a> qui affiche l&#8217;état complet du réseau.</li>
</ul>
<p>Plus tard j&#8217;aurai probablement quelques indices du comment j&#8217;ai créé mes propres commandes pour gérer les plugins de nagios.</p>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2007/09/lorsque-gerer-un-reseau-peut-rimer-avec-vigilance-plutot-que-reparation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Savoir si vous etes capable de detecter une fraude</title>
		<link>http://renoirboulanger.com/blog/2007/07/savoir-si-vous-etes-capable-de-detecter-une-fraude/</link>
		<comments>http://renoirboulanger.com/blog/2007/07/savoir-si-vous-etes-capable-de-detecter-une-fraude/#comments</comments>
		<pubDate>Fri, 27 Jul 2007 18:52:13 +0000</pubDate>
		<dc:creator>Renoir</dc:creator>
				<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Sécurite]]></category>
		<category><![CDATA[Vulgarisation]]></category>

		<guid isPermaLink="false">http://www.renoirboulanger.com/savoir-si-vous-etes-capable-de-detecter-une-fraude/</guid>
		<description><![CDATA[Savoir si vous etes capable de detecter une fraudeJ&#8217;ai decouvert recemment un site qui offre des questionnaires pour savoir si vous savez comment detecter une fraude sur internet.

Il existe plusieurs moyens de les détecter. Sauf que je crois que je me suis fait avoir, soit par les questions pas assez claires mais leur &#8220;corrigé&#8221; m&#8217;a [...]]]></description>
			<content:encoded><![CDATA[<a href='http://renoirboulanger.com/blog/2007/07/savoir-si-vous-etes-capable-de-detecter-une-fraude/' class='retweet '  style='display:block;margin:10px 0px;' >Savoir si vous etes capable de detecter une fraude</a><p>J&#8217;ai decouvert recemment un site qui offre des questionnaires pour savoir si vous savez comment detecter une fraude sur internet.</p>
<p><span id="more-111"></span><br />
Il existe plusieurs moyens de les détecter. Sauf que je crois que je me suis fait avoir, soit par les questions pas assez claires mais leur &#8220;corrigé&#8221; m&#8217;a fait comprenddre où &#8220;ils&#8221; voulaient en venir.</p>
<p>Allez <a href="http://www.siteadvisor.com/quizzes/phishing_0707/" title="Site Advisor" target="_blank">le voir</a>, la visite en vaut le coup!</p>
]]></content:encoded>
			<wfw:commentRss>http://renoirboulanger.com/blog/2007/07/savoir-si-vous-etes-capable-de-detecter-une-fraude/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

