<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9149396046087736923</id><updated>2011-08-04T10:24:53.370+02:00</updated><category term='Temps libre'/><category term='PC Linux'/><category term='Dev. Web.'/><category term='E-commerce'/><category term='Admin serveurs'/><title type='text'>LifoLife</title><subtitle type='html'>Encore un blog technologique...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>44</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-758391142555739943</id><published>2009-12-12T12:18:00.002+01:00</published><updated>2009-12-12T12:23:46.314+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dev. Web.'/><title type='text'>Revue de presse de la Semaine</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Decouvrez TinySlider&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;TinySlider&lt;/strong&gt; est un &lt;strong&gt;slideshow javascript&lt;/strong&gt; ultra léger (1.5Kb) et dégradable si le navigateur ne supporte pas Javascript. D'une simplicité absolue, son code proprement codé vous permettra de le personnalisé en quelques minutes. A voir absolument.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.leigeber.com/2009/12/slideshow-script/"&gt;Lien : Tinyslider&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Ajax.org, un futur concurrent pour ExtJS?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Les graphiques en 3D sont simplement epoustouflants&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ajax.org"&gt;Lien : http://www.ajax.org&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-758391142555739943?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/758391142555739943/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/12/revue-de-presse-de-la-semaine.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/758391142555739943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/758391142555739943'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/12/revue-de-presse-de-la-semaine.html' title='Revue de presse de la Semaine'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-1009168166527943714</id><published>2009-12-05T11:18:00.000+01:00</published><updated>2009-12-05T11:19:00.489+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Temps libre'/><title type='text'>Revue de presse de la semaine</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Google Street Views&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Google Street Views débarque dans nos campagnes! Retrouvez maintenant une multitude de villes plus ou moins importantes ainsi que les grands axes sur Google Street Views&lt;br /&gt;&lt;br /&gt;&lt;a href="http://maps.google.fr/"&gt;Lien : Google Street Views&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Gestionnaire de Projet Qdpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Qdpm est un projet jeune mais ambitieux qui souffre encore de quelques lacunes. A tester absolument. Qdpm est en quelque sorte un PhpCollab rafraichit.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://qdpm.qds-team.com/"&gt;Lien : Qdpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Creer des minatures sous Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Un execellement tutoriel sur la ferme du web pour creer des miniatures à la volée sur un serveur dédié sans serveur X.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.lafermeduweb.net/billet/creer-votre-propre-systeme-de-miniatures-de-sites-sous-linux-680.html"&gt;Lien : Créer des miniatures sous Linux&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Vidéo de la Semaine&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Le Lipdub des employés de Toys'rus au Havre ;)&lt;br /&gt;&lt;br /&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/vO0aCk1XO_c&amp;amp;hl=fr_FR&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/vO0aCk1XO_c&amp;amp;hl=fr_FR&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-1009168166527943714?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/1009168166527943714/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/12/google-street-views-google-street-views.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1009168166527943714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1009168166527943714'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/12/google-street-views-google-street-views.html' title='Revue de presse de la semaine'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-8795822866406059345</id><published>2009-11-29T14:06:00.000+01:00</published><updated>2009-11-29T14:07:06.665+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Aspirer un site avec Wget</title><content type='html'>wget -r -k -np http://www.lesite.com&lt;br /&gt;&lt;br /&gt;l'option -r signifie que le téléchargement sera récursif (il télécharge aussi les liens de la page)&lt;br /&gt;le -k permet de reconstituer le site localement (les liens sont modifié pour pointer localement)&lt;br /&gt;le -np empêche de remonter dans le répertoire parent.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-8795822866406059345?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/8795822866406059345/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/11/aspirer-un-site-avec-wget.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8795822866406059345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8795822866406059345'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/11/aspirer-un-site-avec-wget.html' title='Aspirer un site avec Wget'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-8984334447552987198</id><published>2009-11-22T18:54:00.002+01:00</published><updated>2009-11-22T18:58:37.121+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Temps libre'/><title type='text'>En vrac</title><content type='html'>Je m'aperçois que je n'ai pas posté d'articles depuis le 30 octobre, une éternité!&lt;br /&gt;&lt;br /&gt;En vrac, 2 sites excellents que j'ai découvert il y a peu:&lt;br /&gt;&lt;a href="http://www.lafermeduweb.com"&gt;http://www.lafermeduweb.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.lejournaldublog.com"&gt;http://www.lejournaldublog.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Quelques plugins et thèmes pour Wordpress traduits en Français:&lt;br /&gt;&lt;a href="http://liseweb.fr/BLOG/wordpress/plugins/les-plugins-que-jai-traduits-en-francais"&gt;http://liseweb.fr/BLOG/wordpress/plugins/les-plugins-que-jai-traduits-en-francais&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-8984334447552987198?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/8984334447552987198/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/11/en-vrac.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8984334447552987198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8984334447552987198'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/11/en-vrac.html' title='En vrac'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-6552252036646094806</id><published>2009-10-30T18:00:00.000+01:00</published><updated>2009-10-30T18:02:06.536+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Temps libre'/><title type='text'>Revue de presse de la semaine</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Erp Achievo&lt;/span&gt;&lt;br /&gt;Vous cherchez un ERP pour gérer vos agendas, vos factures et vos demandes clients en opensource? Jetez un coup d'oeil à Achievo,&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.achievo.org/index.php"&gt;Lien : Achievo&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Bijint.com&lt;/span&gt;&lt;br /&gt;Vous trouvez que l'horloge parlante n'est pas assez sexy, jetez un coup d'oeil à Bijint.com&lt;br /&gt;Simple et frais.&lt;br /&gt;&lt;a href="http://www.bijint.com/en/"&gt;Lien : Bijint&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Un datacenter en Basse-Normandie&lt;/span&gt;&lt;br /&gt;Normhost a inauguré le premier datacenter à Caen, en Normandie. Les professionnels pourront y héberger leurs serveurs très prochainement.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.normhost.com/"&gt;Lien : Normhost&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thèmes wordress&lt;/span&gt;&lt;br /&gt;Voici quelques liens en pagaille de thèmes wordpress croisés cette semaine. Gratuits ou payants.&lt;br /&gt;&lt;a href="http://www.smashingmagazine.com/2009/10/20/10-useful-wordpress-hacks-for-advanced-themes/"&gt;&lt;br /&gt;Lien : Hacks wordpress sur Smashing Magazine&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.listelog.com/111-css-gallery-to-submit-your-design/"&gt;Lien : 111 Css Gallery&lt;/a&gt;&lt;br /&gt;&lt;a href="http://themeforest.net/"&gt;Lien : Theme Forest&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.wp-business-theme.com/"&gt;Lien : Business Themes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Une classe pour la Google Maps Api&lt;/span&gt;&lt;br /&gt;Yohann Cerdan nous propose une classe PHP assez complète qui vous permet de manipuler facilement des Google Maps. Cette classe gère pas mal de choses au niveau du javascript d’une gmap comme la gestion de catégories de marqueurs, les itinéraires, l’insertion de flux XML, la clusterisation (regroupement de marqueurs), l’affichage d’infobulles, la geolocalisation d’une adresse etc…&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ycerdan.fr/developpement/google-maps-api/"&gt;Lien : Cliquez-ici&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;La vidéo de la semaine&lt;/span&gt;&lt;br /&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/S9EqV3jwfXY&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/S9EqV3jwfXY&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-6552252036646094806?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/6552252036646094806/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/10/revue-de-presse-de-la-semaine_30.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6552252036646094806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6552252036646094806'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/10/revue-de-presse-de-la-semaine_30.html' title='Revue de presse de la semaine'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-2822470928268780951</id><published>2009-10-23T18:32:00.000+02:00</published><updated>2009-10-23T18:32:41.665+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Temps libre'/><title type='text'>Revue de presse de la semaine</title><content type='html'>Petite revue de presse cette semaine, presque 100% Wordpress&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Sun Weblog Publisher&lt;/span&gt;&lt;br /&gt;Une extension pour OpenOffice qui permet de gérer son blog, dont Wordpress, très simplement&lt;br /&gt;&lt;a href="http://extensions.services.openoffice.org/project/swp"&gt;Lien : Cliquez-ici&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;PHP Pratique&lt;/span&gt;&lt;br /&gt;Un petit script pratique pour calculer la distance en mètres et à vol d'oiseau entre deux coordonnées GPS&lt;br /&gt;&lt;a href="http://www.phpsources.org/scripts459-PHP.htm"&gt;Lien : Cliquez-ici&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Extensions Firefox pour Wordpress&lt;/span&gt;&lt;br /&gt;13 extensions pour firefox afin de se faciliter la vie avec son blog Wordpress. Ma préférence est pour Scribefire.&lt;br /&gt;&lt;a href="http://speckyboy.com/2008/08/24/13-essential-wordpress-related-firefox-extensions-make-blogging-easy/"&gt;Lien : Cliquez-ici&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Vidéo de la semaine&lt;/span&gt; spécial Normandie ;)&lt;br /&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/9v8Wm33f6k8&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/9v8Wm33f6k8&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-2822470928268780951?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/2822470928268780951/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/10/revue-de-presse-de-la-semaine_23.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/2822470928268780951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/2822470928268780951'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/10/revue-de-presse-de-la-semaine_23.html' title='Revue de presse de la semaine'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-4165237346460650740</id><published>2009-10-21T21:36:00.000+02:00</published><updated>2009-10-21T21:36:34.127+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='E-commerce'/><title type='text'>E-Commerce &gt; Les boutiques open-source</title><content type='html'>Je tenterais de tester dans les semaines qui viennent 3 gros poids lourds du e-commerce open-source:&lt;br /&gt;-Magento&lt;br /&gt;-Prestashop&lt;br /&gt;-Joomla Virtuemart&lt;br /&gt;&lt;br /&gt;Je fais l'impasse sur &lt;span style="font-weight: bold;"&gt;OsCommerce&lt;/span&gt;, que j'ai déjà utilisé dans le passé : le test n'était vraiment pas concluant, une usine à gaz pas assez modulable à mon goût.&lt;br /&gt;&lt;br /&gt;Quand à &lt;span style="font-weight: bold;"&gt;Thélia&lt;/span&gt;, ce que j'ai pû en lire ici ou là ne m'a guère enthousiasmé. Ce serait un mélange de &lt;span style="font-weight: bold;"&gt;Magento &lt;/span&gt;et de&lt;span style="font-weight: bold;"&gt; Prestahop&lt;/span&gt;, mais en prenant le pire des deux... Donc pour éviter de perdre mon temps je ne le testerais pas pour l'instant.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Magento&lt;/span&gt;, je l'utilise à titre professionnel en ce moment, ce sera donc le premier test... peu concluant. Il a de très bon côtés mais aussi de moins bons! A suivre.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Prestashop&lt;/span&gt; est à l'étude, et déjà installé sur le pc!&lt;br /&gt;&lt;br /&gt;Quand à &lt;span style="font-weight: bold;"&gt;Joomla VirtueMart&lt;/span&gt; ce sera la surprise du chef, je ne le connais pas du tout.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-4165237346460650740?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/4165237346460650740/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/10/e-commerce-les-boutiques-open-source.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4165237346460650740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4165237346460650740'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/10/e-commerce-les-boutiques-open-source.html' title='E-Commerce &gt; Les boutiques open-source'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-9064432198001366888</id><published>2009-10-17T10:33:00.003+02:00</published><updated>2009-10-17T11:29:22.972+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Temps libre'/><title type='text'>Revue de presse de la semaine</title><content type='html'>Salaires des professionnels du web&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"&gt;Pierre Cannet, PDG de Blue-Search conseil, cabinet de recrutement et de conseil RH spécialisé dans les nouvelles technologies, revient sur les disparités salariales dans la filière Internet.&lt;br /&gt;&lt;a href="http://pro.01net.com/editorial/507018/salaires-du-web-il-existe-une-surenchere-sur-certains-profils/?xtor=EPR-68"&gt;Lire l'article&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Jean Sarkozy vraiment partout...&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"&gt;Nouveau buzz sur le net, les humoristes et les opposants à Jean Sarkozy se déchainent sur Twitter&lt;br /&gt;Quelques citations : "Il y a 3 Pays où on hérite du pouvoir de père en fils : Gabon, Corée du Nord et Hauts de Seine ! "(Denis Baupin),  "Quand Jean Sarkozy parle, même Frédéric Lefevre se tait!" (Patrick J)&lt;br /&gt;&lt;a href="http://www.jeansarkozypartout.com/"&gt;Lire l'article&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;Apprendre le langage informatique PHP&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"&gt;Vous debutez en PHP. Voici 2 articles en anglais pour mieux comprendre les bases du langage.&lt;br /&gt;&lt;a href="http://www.brandonsavage.net/how-to-write-a-function-in-php/"&gt;Lien : Ecrire une fonction PHP&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wshell.wordpress.com/2009/10/12/encapsulation-in-php/"&gt;Lien : Ecrire une classe PHP et manipuler les objets&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Facebook aurait 30.000 serveurs dédiés&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span style=";font-family:arial;font-size:85%;"&gt;Pour ceux qui pensent qu'un site c'est facile à maintenir, passage en revue des plus gros propriétaires de serveurs dédiés, c'est un peu le Forbs des Geeks :) A ce niveau il faut même avoir les compétences de maçon et d'électricien pour construire le datacenter nécessaire à son site. Le web c'est une multitude de métiers!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"&gt;&lt;a href="http://www.pcinpact.com/actu/news/53645-facebook-30000-serveurs-google-microsoft.htm"&gt;Lien : Facebook aurait 30.000 serveurs dédiés&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;Vidéo de la semaine&lt;span style=";font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/8dV7iJke4Bs&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/8dV7iJke4Bs&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-9064432198001366888?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/9064432198001366888/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/10/revue-de-presse-de-la-semaine.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/9064432198001366888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/9064432198001366888'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/10/revue-de-presse-de-la-semaine.html' title='Revue de presse de la semaine'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-3335430442792604366</id><published>2009-10-13T20:26:00.002+02:00</published><updated>2009-10-13T20:30:29.937+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dev. Web.'/><title type='text'>Javascript et raccourcis claviers</title><content type='html'>Retrouvez sur openJS un script javascript qui permet d'inserer facilement des raccourcis claviers dans vos pages web. A la maniere de gmail et de sa touche shift, ajoutez plus d'interactivité dans vos interfaces web.&lt;br /&gt;&lt;br /&gt;Attention, certains raccourcis faisant appel à la touche Ctrl ne semblent pas fonctionner avec tous les navigateurs.&lt;br /&gt;&lt;br /&gt;Lien : &lt;a href="http://www.openjs.com/scripts/events/keyboard_shortcuts"&gt;http://www.openjs.com/scripts/events/keyboard_shortcuts&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-3335430442792604366?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/3335430442792604366/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/10/javascript-et-raccourcis-claviers.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3335430442792604366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3335430442792604366'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/10/javascript-et-raccourcis-claviers.html' title='Javascript et raccourcis claviers'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-6157023755227607505</id><published>2009-04-23T14:00:00.000+02:00</published><updated>2009-04-23T14:00:00.211+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE : Redirection automatique domaine.com vers www.domaine.com</title><content type='html'>Pour rediriger automatiquement les requetes sur domaine.com vers www.domaine.com, mettre ceci dans votre .htaccess .&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RewriteEngine on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RewriteCond %{HTTP_HOST}   !^www\.domaine\.fr [NC]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RewriteCond %{HTTP_HOST}   !^$&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RewriteRule ^/(.*)         http://www.domaine.fr/$1 [L,R=301]&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-6157023755227607505?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/6157023755227607505/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-redirection-automatique.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6157023755227607505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6157023755227607505'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-redirection-automatique.html' title='APACHE : Redirection automatique domaine.com vers www.domaine.com'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-9173128522812338902</id><published>2009-04-22T14:00:00.000+02:00</published><updated>2009-04-22T14:00:01.459+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Lenny : Installer PhpSysInfo</title><content type='html'>PhpSysInfo n'est pas présent sur les paquets Debian. Il faut le telecharger:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;wget http://ovh.dl.sourceforge.net/sourceforge/phpsysinfo/phpsysinfo-2.5.3-rc1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Décompressez-le dans votre dossier web adequate.&lt;br /&gt;&lt;br /&gt;Dans le cadre de l'article APACHE : PHP4 et PHP5 sur le même serveur, il faudra indiquer à PhpSysInfo d'utiliser PHP5.&lt;br /&gt;&lt;br /&gt;Dans votre dossier web mettre le &lt;span style="font-weight: bold;"&gt;.htaccess&lt;/span&gt; pour php5  avec les 2 lignes suivantes.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;AddHandler x-httpd-php5 .php&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Action x-httpd-php5 /cgi-bin/php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il est recommandé de restreindre PhpSysInfo à votre propre IP seulement, comme vu dans l'article "APACHE : Activer le server-status".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-9173128522812338902?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/9173128522812338902/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/lenny-installer-phpsysinfo.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/9173128522812338902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/9173128522812338902'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/lenny-installer-phpsysinfo.html' title='Lenny : Installer PhpSysInfo'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-7603135997030186342</id><published>2009-04-21T14:00:00.001+02:00</published><updated>2009-04-21T14:00:00.658+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Lenny : Installer PhpMyAdmin</title><content type='html'>Pour installer PhpMyAdmin, tapez la commande suivante sous Debian:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install PhpMyAdmin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Vous pouvez acceder à phpmyadmin via l'adresse http://127.0.0.1/phpmyadmin par exemple.&lt;br /&gt;&lt;br /&gt;Dans le cadre de l'article APACHE : PHP4 et PHP5 sur le même serveur, il faudra indiquer à PhpMyAdmin d'utiliser PHP5 pour eviter le probleme avec la librairie mcrypt.&lt;br /&gt;&lt;br /&gt;Dans&lt;span style="font-weight: bold;"&gt; /usr/share/phpMyAdmin&lt;/span&gt; mettre le&lt;span style="font-weight: bold;"&gt; .htaccess &lt;/span&gt;pour php5  avec les 2 lignes suivantes:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;AddHandler x-httpd-php5 .php&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Action x-httpd-php5 /cgi-bin/php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Si vous le pouvez, restreignez PhpMyAdmin à votre propre IP seulement, comme vu dans l'article APACHE : Activer le server-status.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-7603135997030186342?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/7603135997030186342/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/lenny-installer-phpmyadmin.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7603135997030186342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7603135997030186342'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/lenny-installer-phpmyadmin.html' title='Lenny : Installer PhpMyAdmin'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-7325055319502421092</id><published>2009-04-20T14:00:00.002+02:00</published><updated>2009-10-14T13:51:51.955+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE : PHP4 et PHP5 sur le même serveur</title><content type='html'>Sur Debian Lenny, cela necessite un serieux bricolage. Il faut vraiment savoir ce que l'on fait.&lt;br /&gt;&lt;br /&gt;Il faut commencer par ajouter etch au &lt;span style="font-weight: bold;"&gt;/etc/apt/sources.list&lt;/span&gt; en inserant la ligne suivante:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;deb http://ftp.fr.debian.org/debian etch main &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis on installe php4 en tant que module&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install php4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;et PHP5 en tant que CGI.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install php5-cgi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Surtout, sous aucun prétexte, ne pas installer le paquet php5.&lt;br /&gt;&lt;br /&gt;Il faut activer le module actions puis redemarrer.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a2enmod actions&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/apache2 restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A ce moment, un appel en php à la fonction phpinfo() devrait vous retourner la version de php4 installée.&lt;br /&gt;&lt;br /&gt;Nous allons utiliser un fichier &lt;span style="font-weight: bold;"&gt;.htaccess&lt;/span&gt; pour passer du php4 à php5 dans le dossier voulu.&lt;br /&gt;&lt;br /&gt;Inserer dans le .htaccess les lignes suivantes&lt;br /&gt;&lt;span style="font-style: italic;"&gt;AddHandler x-httpd-php5 .php&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Action x-httpd-php5 /cgi-bin/php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis re-afficher phpinfo(). Normalement vous êtes désormais en PHP5. Vous pouvez switcher comme vous voulez entre php4/php5 grace à ce &lt;span style="font-weight: bold;"&gt;.htaccess&lt;/span&gt; en ajoutant ou commentant ces 2 lignes ci-dessus.&lt;br /&gt;&lt;br /&gt;Nous pouvons désormais installer les extensions.&lt;br /&gt;&lt;br /&gt;Installer l'extension GD&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install php4-gd php5-gd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installer le support de mysql pour PHP5&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install php5-mysql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Si vous installez directement php4-mysql, lipaprutil1 risque d'entrer en conflit avec php4-mysql et vouloir supprimer un tas de paquets Apache. Il ne faut surtout pas! Nous allons donc retrograder vers une ancienne version Etch de libaprutils1 :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install "libpaprutil1=1.2.7+dfsg-2&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;Puis installer php4-mysql. Normalement il n'y a plus de problemes.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install php4-mysql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Un rapide coup d'oeil à &lt;span style="font-weight: bold;"&gt;php -v&lt;/span&gt; peut vous indiquer que php4 connait quelques soucis avec les types magic-mime.&lt;br /&gt;&lt;br /&gt;Si il y a des erreurs lors du&lt;span style="font-weight: bold;"&gt; php -v&lt;/span&gt; et dans les logs Apache , editer &lt;span style="font-weight: bold;"&gt;/usr/share/file/magic.mime &lt;/span&gt;et commenter les lignes suivantes:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#0 regex BEGIN[[:space:]]*[{] application/x-awk ##&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#0 search/400 \\input text/x-tex&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#0 search/400 \\section text/x-tex&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#0 search/400 \\setlength text/x-tex&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#0 search/400 \\documentstyle text/x-tex&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#0 search/400 \\chapter text/x-tex&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#0 search/400 \\documentclass text/x-tex&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ainsi que la ligne contenant&lt;span style="font-style: italic;"&gt; x-inform&lt;/span&gt; qui peut poser probleme également.&lt;br /&gt;&lt;br /&gt;Redemarrez apache, verifiez les logs. Tout fonctionne.&lt;br /&gt;&lt;br /&gt;Pour aller plus loin sur le sujet:&lt;br /&gt;&lt;a href="http://www.siteduzero.com/tutoriel-3-34539-php4-et-php5-en-meme-temps-sur-un-serveur-linux.html"&gt;http://www.siteduzero.com/tutoriel-3-34539-php4-et-php5-en-meme-temps-sur-un-serveur-linux.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://packages.debian.org/etch/libaprutil1"&gt;http://packages.debian.org/etch/libaprutil1&lt;/a&gt;&lt;br /&gt;&lt;a href="https://forum.debian-fr.org/viewtopic.php?f=3&amp;amp;t=17168"&gt;https://forum.debian-fr.org/viewtopic.php?f=3&amp;amp;t=17168&lt;/a&gt;&lt;br /&gt;&lt;a href="http://forum.ovh.com/showthread.php?t=36949"&gt;http://forum.ovh.com/showthread.php?t=36949&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-7325055319502421092?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/7325055319502421092/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-php4-et-php5-sur-le-meme-serveur.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7325055319502421092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7325055319502421092'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-php4-et-php5-sur-le-meme-serveur.html' title='APACHE : PHP4 et PHP5 sur le même serveur'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-5077392041842626727</id><published>2009-04-19T14:00:00.000+02:00</published><updated>2009-04-19T14:00:01.120+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE : Activer le server-status</title><content type='html'>Normalement, le module est déjà installé. Il suffit de l'activer:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a2enmod status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis ajouter, par exemple dans le VirtualHost on dans le general de&lt;span style="font-weight: bold;"&gt; /etc/apache2/apache2.conf&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;location&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SetHandler server-status&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Order Deny,Allow&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Allow from all&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/location&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans ce cas on autorise l'accès à tous. Il sera bon par la suite de le limiter à votre seul ip de la façon suivante&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Order Deny,Allow&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Deny from all&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Allow from 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il faut egalement mettre dans&lt;span style="font-weight: bold;"&gt; /etc/apache2/apache2.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ExtendedStatus On &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et redemarrer Apache, verifier tous les logs.&lt;br /&gt;&lt;br /&gt;Vous retrouverez les principales infos serveurs à l 'adresse http://mondomaine.tld/server-status&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-5077392041842626727?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/5077392041842626727/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-activer-le-server-status.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/5077392041842626727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/5077392041842626727'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-activer-le-server-status.html' title='APACHE : Activer le server-status'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-4072003962527015176</id><published>2009-04-18T14:00:00.000+02:00</published><updated>2009-04-18T14:00:00.221+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE : Modifier la signature du serveur</title><content type='html'>Bien que la sécurité par l'obscur ne soit pas ce que je préfère, il est tout de même important de cacher la version de son serveur pour donner un minimum d'informations à un eventuel hacker.&lt;br /&gt;&lt;br /&gt;Pour cela, modifier ou ajouter dans&lt;span style="font-weight: bold;"&gt; /etc/apache2/apache2.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ServerTokens Prod&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ServerSignature Off&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et redemarrer Apache, verifier tous les logs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-4072003962527015176?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/4072003962527015176/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-modifier-la-signature-du-serveur.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4072003962527015176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4072003962527015176'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-modifier-la-signature-du-serveur.html' title='APACHE : Modifier la signature du serveur'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-2445394544123981808</id><published>2009-04-17T14:00:00.001+02:00</published><updated>2009-04-17T14:00:01.265+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE : Utiliser le mod_evasive</title><content type='html'>Le mod-evasive permet d'éviter les attaques par saturation (multiples connections en un minimum de temps)&lt;br /&gt;&lt;br /&gt;Installer le mod-evasive (sous Debian)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install libapache2-mod-evasive&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Activer le mod-evasive&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a2enmod mod-evasive&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt;/etc/apache2/conf.d/evasive&lt;/span&gt; ajouter ceci&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;ifmodule&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        DOSHashTableSize 3097&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # Nbre d'affichage de la même page par IP : 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        DOSPageCount 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # Nbre d'affichage du même site par IP : 50&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        DOSSiteCount 50&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # Interval d'affichage de la même page par IP : 1 seconde&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        DOSPageInterval 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # Interval d'affichage du même site par IP : 1 seconde&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        DOSSiteInterval 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # Durée du blocus (exprimé en secondes)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        DOSBlockingPeriod 10&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # Notification par adresse email pour être prévenu&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        DOSEmailNotify adresse@email.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # nouveau dossier pour y placer le logs du module&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        DOSLogDir "/var/log/apache2/evasive/"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     # Utlisation de iptables pour bannier l'IP qui tente de saturer le serveur&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #DOSSystemCommand "/sbin/iptables -I INPUT -s %s -j DROP"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # Liste blanche permettant à une IP d'effecuer un nombre illimité de requètes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #DOSWhiteLt 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/ifmodule&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis créer le dossier &lt;span style="font-weight: bold;"&gt;/var/log/apache2/evasive/&lt;/span&gt; et lui donner les bons droits pour que Apache puisse ecrire dedans.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mkdir /var/log/apache2/evasive&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chown -R www-data:www-data /var/log/apache2/evasive&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et redemarrer Apache, verifier tous les logs.&lt;br /&gt;&lt;br /&gt;Pour tester, on peut utiliser un fichier Perl.&lt;br /&gt;&lt;br /&gt;Creer &lt;span style="font-weight: bold;"&gt;test-evasive.pl &lt;/span&gt;et y ajouter ceci:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#!/usr/bin/perl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# test.pl: small script to test mod_dosevasive's effectiveness&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;use IO::Socket;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;use strict;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;for(0..50) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  my($response);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  my($SOCKET) = new IO::Socket::INET( Proto   =&gt; "tcp",&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                                      PeerAddr=&gt; "127.0.0.1:80");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  if (! defined $SOCKET) { die $!; }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  print $SOCKET "GET /?$_ HTTP/1.0\n\n";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  $response = &lt;$SOCKET&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  print $response;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  close($SOCKET);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod u+x test-evasive.pl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;./test-evasive&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Vous devez avoir des reponses normales "200" puis des reponses "403" lorsque que le mod-evasive detecte l'attaque par saturation du script &lt;span style="font-weight: bold;"&gt;test-evasive.pl.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-2445394544123981808?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/2445394544123981808/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-utiliser-le-modevasive.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/2445394544123981808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/2445394544123981808'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-utiliser-le-modevasive.html' title='APACHE : Utiliser le mod_evasive'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-8086973692984668067</id><published>2009-04-16T14:00:00.001+02:00</published><updated>2009-04-16T14:00:00.448+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE : Utiliser le mod_security</title><content type='html'>Recuperer les paquets Debian, qui sont normalement indisponibles sur les dépôts Debian sous Lenny (mais vous pouvez essayer de les rechercher, si vous avez de la chance...)&lt;br /&gt;&lt;br /&gt;On télécharge&lt;br /&gt;&lt;span style="font-style: italic;"&gt;wget http://etc.inittab.org/~agi/debian/libapache-mod-security2/libapache-mod-security_2.5.9-1_i386.deb&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;wget http://etc.inittab.org/~agi/debian/libapache-mod-security2/mod-security-common_2.5.9-1_all.deb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On installe les paquets&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dpkg -i mod-security-common_2.5.9-1_all.deb libapache-mod-security_2.5.9-1_i386.deb &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Normalement, ça redémarre et charge le module tout seul.&lt;br /&gt;&lt;br /&gt;Ensuite, depackager &lt;span style="font-style: italic;"&gt;http://downloads.prometheus-group.com/delayed/rules/modsec-2.5-free-latest.tar.gz&lt;/span&gt; dans &lt;span style="font-weight: bold;"&gt;/etc/apache2/regles_mod-security&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Creer le fichier&lt;span style="font-weight: bold;"&gt; /etc/apache2/conf.d/mod_security&lt;/span&gt; et le modifier de la sorte:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;ifmodule&gt;&lt;/ifmodule&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #Active le filtre&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecFilterEngine On&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #Verifier si l'url est bien encodé.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecFilterCheckURLEncoding On&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #Verifier que c'est bien en UTF8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecFilterCheckUnicodeEncoding Off&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #Filtrer les Bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecFilterForceByteRange 0 255&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #Changer la signature du serveur&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecServerSignature "Apache"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    #Tracker les methodes utilisées par un possible hacker&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecAuditEngine RelevantOnly&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # The name of the audit log file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecAuditLog /var/log/apache2/audit_log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # You normally won't need debug logging&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        # Debug level au maximum, le mettre à 0 quand les tests sont terminés&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecFilterDebugLog /var/log/apache2/modsec_debug_log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecFilterDebugLevel 4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #Inspecter les requetes du type POST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecFilterScanPOST On&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        #Log &amp;amp; deny les requetes suspects, en renvoyant le statut 500.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        SecFilterDefaultAction "deny,log,status:500"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    #Charger les regles depackagées plus haut&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        Include /etc/apache2/regles_mod-security/*asl*.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    #Prevenir les attaques XSS (Decommenter)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    #SecFilter "&lt;script"&gt;&lt;/script"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    #SecFilter "&lt;.+&gt;"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    #Evite de pouvoir remonter dans le répertoire&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    SecFilter "\.\./"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis redemarrer apache et verifier attentivement les logs pour voir si tout va bien.&lt;br /&gt;&lt;br /&gt;Plus d'informations sur le sujet&lt;br /&gt;&lt;a href="http://www.debuntu.org/2006/08/13/86-secure-your-apache2-with-mod-security"&gt;http://www.debuntu.org/2006/08/13/86-secure-your-apache2-with-mod-security&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wiki.goldzoneweb.info/security"&gt;http://wiki.goldzoneweb.info/security&lt;/a&gt;&lt;a href="http://www.dedibox-news.com/sujet-4549-mod-security2-debian-adresse-paquet-3-trucs"&gt;&lt;br /&gt;http://www.dedibox-news.com/sujet-4549-mod-security2-debian-adresse-paquet-3-trucs&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.howtoforge.com/apache2_mod_security_debian_etch"&gt;http://www.howtoforge.com/apache2_mod_security_debian_etch&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.journaldunet.com/developpeur/tutoriel/out/060111-mod_security-installation-configuration.shtml"&gt;http://www.journaldunet.com/developpeur/tutoriel/out/060111-mod_security-installation-configuration.shtml&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-8086973692984668067?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/8086973692984668067/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-utiliser-le-modsecurity.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8086973692984668067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8086973692984668067'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-utiliser-le-modsecurity.html' title='APACHE : Utiliser le mod_security'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-1860762561335028263</id><published>2009-04-15T14:00:00.000+02:00</published><updated>2009-04-15T14:00:01.182+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE : Utiliser le mod_bw (bandwith)</title><content type='html'>Le module Bandwith permet de gerer la bande passante de chaque client VirtualHost individuellement.&lt;br /&gt;&lt;br /&gt;Installer le module (sous Debian)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install libapache2-mod-bw&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Activer le module&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a2enmod bw&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Modifier le virtualHost. Pour les 2 premieres lignes, se referer à l'article "Utiliser le module vhost_alias pour simplifier les virtualHosts".&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Options +FollowSymLinks&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;VirtualDocumentRoot /var/Www/%0.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Gestion BandWith&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;BandWidthModule On&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#ON LIMITE LA BANDE PASSANTE TOTALE A 5Mb/s&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;BandWidth all 5000000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#ON LIMITE LES FICHIERS DE + DE 5Mo à 500kb/s&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;LargeFileLimit all 5000 500000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#LE NB MAX DE CONNECTIONS à 20.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MaxConnection all 20&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#LE MINIMUM ALLOUE DOIT ETRE DE 20Kb/s&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MinBandWidth all 20000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/virtualhost&gt;&lt;br /&gt;&lt;br /&gt;Puis redemarrer apache et verifier attentivement les logs pour voir si tout va bien.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-1860762561335028263?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/1860762561335028263/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-utiliser-le-modbw-bandwith.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1860762561335028263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1860762561335028263'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-utiliser-le-modbw-bandwith.html' title='APACHE : Utiliser le mod_bw (bandwith)'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-4970753707348940003</id><published>2009-04-14T14:00:00.002+02:00</published><updated>2009-04-14T14:00:00.352+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE: SSL sur un multi-hosts</title><content type='html'>Mon but ici est que les sites web du VirtualHost aient un accès securisé au repertoire &lt;span style="font-weight: bold;"&gt;/admin&lt;/span&gt;, c'est à dire qu'ils transmettent le login/mdp encodé et non en clair. Je ne tiens pas des alertes de sécurité dû au même certificat utilisé pour tous les domaines.&lt;br /&gt;&lt;br /&gt;Dans un premier temps nous allons générer notre certificat.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl genrsa -out my-ca.key 2048&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl req -new -x509 -days 3650 -key my-ca.key -out my-ca.crt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl x509 -in my-ca.crt -text -noout&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nous avons donc, par l'intermédiaire de la première commande, généré une clé. Par la seconde, nous avons généré le certificat pour qu'il soit fonctionnel 10 ans. Et enfin, par la dernière commande, nous avons rempli ce certificat.&lt;br /&gt;&lt;br /&gt;Ensuite nous allons créer le certificat pour le domaine en particulier&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl genrsa -des3 -out test.com.key 1024&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl req -new -key test.com.key -out test.com.csr&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Important lors de la seconde commande : Dans Common Name il faut mettre le VRAI nom du serveur, exemple : test.com ou www.test.com&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl x509 -req -in test.com.csr -out test.com.crt -sha1 -CA my-ca.crt -CAkey my-ca.key -CAcreateserial -days 3650&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Une fois que tout cela est créé, pour éviter tout piratage, changez les permissions sur les fichiers *.key par cette commande :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod 0400 *.key&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nous devons à présent copier ces fichiers dans le répertoire d'Apache, pour cela :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp test.com.crt /etc/apache2/ssl/ssl.crt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp test.com.key /etc/apache2/ssl/ssl.key&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp test.com.crt /etc/apache2/ssl/my-ca.crt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis creer un virtualHost. Pour les 2 premieres lignes, se referer à l'article "Utiliser le module vhost_alias pour simplifier les virtualHosts"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Options +FollowSymLinks&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;VirtualDocumentRoot /var/www/%0.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#SECTION SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSLEngine on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSLProtocol all -SSLv2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSLCertificateFile /etc/apache2/ssl/ssl.crt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSLCertificateKeyFile /etc/apache2/ssl/ssl.key&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSLCertificateChainFile /etc/apache2/ssl/my-ca.crt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSLCACertificateFile /etc/apache2/ssl/my-ca.crt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enfin, nous allons modifier le VirtualHost non-ssl (port 80) pour que l'on redirige automatique en sécurisé lorsque l'on invoque&lt;span style="font-weight: bold;"&gt; /admin&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Options +FollowSymLinks&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;VirtualDocumentRoot /var/www/%0.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#GESTION DU SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSLEngine off&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RewriteEngine On&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RewriteCond %{SERVER_PORT} 80&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RewriteCond %{REQUEST_URI} /admin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RewriteRule ^(.*)$ https://%{HTTP_HOST}:443/admin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis on redemarre Apache&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/apache2 restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis on fait des test http/https etc... pour s'assurer que tout est ok.&lt;br /&gt;&lt;br /&gt;Plus d'informations sur le sujet&lt;br /&gt;&lt;a href="http://francois.openmod.org/blog/index.php?post/2007/05/28/55-apache2-en-mode-securise-sous-debian-etch"&gt;http://francois.openmod.org/blog/index.php?post/2007/05/28/55-apache2-en-mode-securise-sous-debian-etch&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.vanstormbroek.nl/blog/?p=4"&gt;http://www.vanstormbroek.nl/blog/?p=4&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-4970753707348940003?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/4970753707348940003/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-ssl-sur-un-multi-hosts.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4970753707348940003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4970753707348940003'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-ssl-sur-un-multi-hosts.html' title='APACHE: SSL sur un multi-hosts'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-3579051285624847888</id><published>2009-04-13T14:00:00.001+02:00</published><updated>2009-04-13T14:00:01.210+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>APACHE : vhost_alias pour simplifier les virtualHosts</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Pré-requis : &lt;/span&gt;&lt;br /&gt;Utiliser une distribution Debian.&lt;br /&gt;Avoir installé Apache 2 en utilisant la commande &lt;span style="font-style: italic;"&gt;apt-get install apache2&lt;/span&gt;&lt;br /&gt;Penser à ouvrir votre firewall en conséquence si ce n'est déjà fait&lt;br /&gt;&lt;br /&gt;Normalement, après avoir installé Apache 2 il suffit d'activer le module vhost_alias&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a2enmod vhost_alias&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ensuite dans Dans &lt;span style="font-weight: bold;"&gt;/etc/apache2/apache2.conf&lt;/span&gt; il faut ajouter cette ligne&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Options +FollowSymLinks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis ajouter&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Options +FollowSymLinks&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;VirtualDocumentRoot /var/www/%0.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;il suffit de creer le repertoire&lt;span style="font-weight: bold;"&gt; /var/www/mondomaine.tld &lt;/span&gt;pour que le mondomaine.tld soit hosté.&lt;br /&gt;pour www.mondomaine.tld il faudra créer &lt;span style="font-weight: bold;"&gt;/var/www/www.mondomaine.tld&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A noter que l'utilisation de liens symboliques fonctionne. C'est à dire que vous pouvez linker &lt;span style="font-weight: bold;"&gt;/var/www/mondomaine.tld&lt;/span&gt; vers &lt;span style="font-weight: bold;"&gt;/home/mondomaine&lt;/span&gt;, ce qui peut être pratique en cas d'hébergement FTP, utilisation de quotas, etc...&lt;br /&gt;&lt;br /&gt;Plus d'infos sur Apache en général:&lt;br /&gt;&lt;a href="http://www.serveur-rps.fr/apache-mysql/installation_configuration_et_optimisation_d_apache2_et_des_modules"&gt;http://www.serveur-rps.fr/apache-mysql/installation_configuration_et_optimisation_d_apache2_et_des_modules&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-3579051285624847888?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/3579051285624847888/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-vhostalias-pour-simplifier-les.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3579051285624847888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3579051285624847888'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/04/apache-vhostalias-pour-simplifier-les.html' title='APACHE : vhost_alias pour simplifier les virtualHosts'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-7391582973758261044</id><published>2009-03-13T15:16:00.000+01:00</published><updated>2009-03-13T15:16:00.192+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Mettre à l'heure automatiquement</title><content type='html'>Installer ntpdate&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install ntpdate&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Penser à ouvrir le port udp 123.&lt;br /&gt;&lt;br /&gt;Puis&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ntpdate ntp.tuxfamily.net &amp;amp;&amp;amp; hwclock --systohc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Vous pouvez mettre ce script dans un cron qui se chargera de remettre les pendules à l'heure toutes les heures.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-7391582973758261044?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/7391582973758261044/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/mettre-lheure-automatiquement.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7391582973758261044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7391582973758261044'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/mettre-lheure-automatiquement.html' title='Mettre à l&apos;heure automatiquement'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-8959023063087104007</id><published>2009-03-12T13:45:00.000+01:00</published><updated>2009-03-12T13:45:00.837+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Protections réseaux sous Linux</title><content type='html'>Exemple de fichier de protection réseau utilisant iptables et les fonctions reseau du noyau&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;======DEBUT FICHIER==========&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#suppression des regles&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -F&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#suppression des regles non standards&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#par defaut tout est fermé sauf en sortie&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -P INPUT DROP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -P FORWARD DROP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -P OUTPUT ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#la machine locale est sure&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -i lo -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#DNS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#on autorise les connexion pour tous&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#attention doit resoudre seulement pour les zones du DNS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -i eth0 --protocol udp --dport 53 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -i eth0 --protocol tcp --dport 53 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#NTP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -i eth0 --protocol udp --sport 123 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#APACHE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#on autorise les connexions pour tous&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp --dport 80 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp --dport 443 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#POP3 ET POP3S&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#pour que les utilisateurs relevent leurs comptes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp --dport 110 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp --dport 995 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#IMAP ET IMAPS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#pour que les utilisateurs relevent leurs comptes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp --dport 143 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp --dport 993 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#SMTP et SMTPS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#on est serveur de courrier, doit etre ouvert à tous&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp --dport 25 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp --dport 465 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#SSH&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#on l'ouvre aux visiteurs autorisés seulement&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp -s 192.168.1.250 --dport 666 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#VSFTPD (se renseigner sur ftp et ftp-data)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#on l'ouvre aux visiteurs autorisés seulement&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -t filter -A INPUT -p tcp -s 192.168.1.250 --dport 20 -i eth0 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -t filter -A INPUT -p tcp -s 192.168.1.250 --dport 21 -i eth0 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#ON AUTORISE TOUTE CONNECTION DEJA ETABLIE, NECESSAIRE AU FTP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -t filter -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#PING&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#on l'ouvre à quelques privilégiés seulement&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p icmp -s 192.168.1.250 -i eth0 -m limit --limit 1/s -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#INTERDIRE L'IPV6&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables -P INPUT DROP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables -P OUTPUT DROP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables -P FORWARD DROP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables --flush                                   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables --flush INPUT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables --flush OUTPUT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables --flush FORWARD&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables --flush -t mangle&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip6tables --delete-chain&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#LES PROTECTIONS NOYAUX&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#interdire le source routing (evite le spoofing)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo "0" &gt; /proc/sys/net/ipv4/conf/all/accept_source_route&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#pour enregistrer les paquets avec adresses falsifiées&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo "1" &gt; /proc/sys/net/ipv4/conf/all/log_martians&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#contre le spoofing&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo "1" &gt; /proc/sys/net/ipv4/conf/all/rp_filter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#se proteger contre le syn packet flooding&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo "1" &gt; /proc/sys/net/ipv4/tcp_syncookies&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Emule une reponse windows&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo "1" &gt; /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#interdit les redirections / forwardings&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo "0" &gt; /proc/sys/net/ipv4/conf/all/accept_redirects&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo "0" &gt; /proc/sys/net/ipv4/conf/all/secure_redirects&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#FAIL2BAN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/fail2ban restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#on affiche tout&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -L&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;=====FIN DU FICHIER========&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour executer ce fichier au demarrage&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ln -s monfichier /etc/init.d/firewall&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;update-rc.d firewall defaults&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour le retirer, vous pouvez utiliser la commande suivante :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;update-rc.d -f firewall remove&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il vous suffira de redémarrez, ou exécutez &lt;span style="font-style: italic;"&gt;/etc/init.d/firewall &lt;/span&gt;pour activer le filtrage.&lt;br /&gt;&lt;br /&gt;Pour verifier une valeur de protection noyau&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sysctl -A | grep tcp_syncookies &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;devra afficher&lt;br /&gt;&lt;span style="font-style: italic;"&gt;net.ipv4.tcp_syncookies=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour afficher toutes les regles de iptables&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -L ou iptables -nL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour retablir les regles de iptables par defaut (tout autoriser)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -F&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -X&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -P INPUT ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -P FORWARD ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -P OUTPUT ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour aller plus loin:&lt;br /&gt;&lt;a href="http://www.linux-france.org/prj/inetdoc/guides/iptables-tutorial/"&gt;http://www.linux-france.org/prj/inetdoc/guides/iptables-tutorial/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://reseau.erasme.org/static/serveurs_linux/sect_02_03.html"&gt;http://reseau.erasme.org/static/serveurs_linux/sect_02_03.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ipsysctl-tutorial.frozentux.net/chunkyhtml/tcpvariables.html"&gt;http://ipsysctl-tutorial.frozentux.net/chunkyhtml/tcpvariables.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-8959023063087104007?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/8959023063087104007/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/protections-reseaux-sous-linux.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8959023063087104007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8959023063087104007'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/protections-reseaux-sous-linux.html' title='Protections réseaux sous Linux'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-4273233261213788494</id><published>2009-03-11T13:58:00.000+01:00</published><updated>2009-03-11T13:58:00.889+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Se proteger des scans sous Linux</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Installer fail2ban&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Fail2ban permet d'etablir des regles du genre bannir pendant 600 secondes quiconque echouera à 3 tentatives d'identifications. Cela permet d'eviter les attaques par bruteforce. Il est disponible pour SSH, PAM, Xinetd, Apache, VsFTPD, ProFTPD, WuFTPD, Postfix, Courier et Bind. Mais vous pouvez egalement ecrire vos propres regles. Quiconque echouera plus de 3 fois sera bannit par une regle dans Iptable qui l'empechera de se connecter.&lt;br /&gt;&lt;br /&gt;Pour installer fail2ban&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install fail2ban&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Creer &lt;span style="font-weight: bold;"&gt;jail.local&lt;/span&gt; qui aura autorité sur &lt;span style="font-weight: bold;"&gt;jail.conf&lt;/span&gt; et ne se fera pas ecraser à la prochaine mise à jour&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cd /etc/fail2ban&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp jail.conf jail.local&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Editer&lt;span style="font-weight: bold;"&gt; jail.local&lt;/span&gt; pour modifier l'adresse email de destination &lt;span style="font-style: italic;"&gt;destemail&lt;/span&gt; puis activer les modules necessaires en bas de fichier.&lt;br /&gt;&lt;br /&gt;Si vsftpd est utilisé avec pam, le log est &lt;span style="font-weight: bold;"&gt;/var/log/auth.log&lt;/span&gt; et non le &lt;span style="font-weight: bold;"&gt;vsftpd.log&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Redemarrer fail2ban&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/fail2ban restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Utiliser portsentry&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installer le packet&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install portsentry&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Editer &lt;span style="font-weight: bold;"&gt;/etc/portsentry/portsentry.conf&lt;/span&gt; pour modifier ces valeurs&lt;br /&gt;&lt;span style="font-style: italic;"&gt;BLOCK_UDP="1";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;BLOCK_TCP="1";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et egalement decommenter &lt;span style="font-style: italic;"&gt;KILL_ROUTE="/sbin/iptables -I INPUT -s $TARGET$ -j DROP"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis un &lt;span style="font-style: italic;"&gt;/etc/init.d/portsentry restar&lt;/span&gt;t.&lt;br /&gt;&lt;br /&gt;Plein de ports bidons (&lt;span style="font-style: italic;"&gt;netstat -an&lt;/span&gt;) seront alors créés. Tout tentative de scannage des ports provoquera un blacklistage du fautif. Attention d'autres logiciels de securité seront egalement leurrés et détecterons des faux positifs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-4273233261213788494?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/4273233261213788494/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/se-proteger-des-scans-sous-linux.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4273233261213788494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4273233261213788494'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/se-proteger-des-scans-sous-linux.html' title='Se proteger des scans sous Linux'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-8757574506003652077</id><published>2009-03-10T14:02:00.002+01:00</published><updated>2009-03-10T14:02:00.266+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Detections d'intrusions sous Linux</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Utilisation de A.I.D.E (Advanced Intrusion Detection Environment)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Aide permet de detecter les intrusions en envoyant des rapports en cas de detection d'anomalie.&lt;br /&gt;Il etablie une base de signatures des fichiers, ce qui permet de detecter tout modification non voulue.&lt;br /&gt;&lt;br /&gt;Installer le paquet&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install aide&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Creer les 2 bases&lt;br /&gt;&lt;span style="font-style: italic;"&gt;touch /var/lib/aide/aide.db&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;touch /var/lib/aide/aide.db.new&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans&lt;span style="font-weight: bold;"&gt; /etc/defaults/aide&lt;/span&gt;, decommenter les 2 dernieres ligne&lt;br /&gt;&lt;span style="font-style: italic;"&gt;UPAC_CONFDIR="/etc/aide"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;UPAC_CONFD="$UPAC_CONFDIR/aide.conf.d"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Mettre votre email ici&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MAILTO=votremail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il ne faut pas essayer d'utiliser l'executable aide -i par exemple, mais toujours passer par le cron &lt;span style="font-weight: bold;"&gt;/etc/cron.daily/aide&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;si vous avez un message du genre&lt;span style="font-style: italic;"&gt; File database must have one db_spec specification&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp /var/lib/aide/aide.db.new /var/lib/aide/aide.db&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;cette commande permettra d'etablir la base initiale.&lt;br /&gt;&lt;br /&gt;Après des modifications sur votre serveur, il sera bon d'executer les commandes suivantes afin que la base de signatures soit mise à jour&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/cron.daily/aide&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp /var/lib/aide/aide.db.new /var/lib/aide/aide.db&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour aller plus loin&lt;br /&gt;&lt;a href="https://mailman.cs.tut.fi/pipermail/aide/2008-February/000903.html"&gt;https://mailman.cs.tut.fi/pipermail/aide/2008-February/000903.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.hsc.fr/ressources/breves/aide.html.fr"&gt;http://www.hsc.fr/ressources/breves/aide.html.fr&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Utiliser checksecurity&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Checksecurity effectue des vérifications de sécurité basiques, telles que chercher les changements dans les programmes qui possèdent des permissions setuid et que les systèmes de fichiers distants ne soient pas autorisés à avoir des programmes exécutables setuid.&lt;br /&gt;&lt;br /&gt;Installer le paquet&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install checksecurity&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt;/etc/checksecurity.conf&lt;/span&gt;, decommenter &lt;span style="font-style: italic;"&gt;CHECKSECURITY_EMAIL&lt;/span&gt; et mettre votre email&lt;br /&gt;&lt;br /&gt;Pour lancer checksecurity&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/cron.daily/checksecurity&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Utiliser rkhunter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Rkhunter permet la detection de rootkits&lt;br /&gt;&lt;br /&gt;Installer le paquet&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install rkhunter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt;/etc/rkhunter.conf&lt;/span&gt; decommenter &lt;span style="font-style: italic;"&gt;MAIL-ON-WARNING&lt;/span&gt; et mettre votre email&lt;br /&gt;&lt;br /&gt;Pour lancer rkhunter&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rkhunter -c ou --cronjob&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Utiliser chkrootkit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Chkrootkit permet la detection de rootkits&lt;br /&gt;&lt;br /&gt;Installer le paquet&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install chkrootkit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Vous retrouverez toutes les options dans&lt;span style="font-weight: bold;"&gt; /etc/chkrootkit.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour le lancer tapez&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chkrootkit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour aller plus loin:&lt;br /&gt;&lt;a href="http://softice.lakeland.usf.edu/wiki/index.php/How-to:install:chkrootkit"&gt;http://softice.lakeland.usf.edu/wiki/index.php/How-to:install:chkrootkit&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Après c'est à vous de configurer ces outils pour qu'ils soient efficacent sans vous noyer sous un nombre impressionant de faux positifs&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Utiliser Logcheck&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Logcheck lit les logs vous envoie ce qui lui parait suspect&lt;br /&gt;&lt;br /&gt;Installer le paquet&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install logcheck&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt;/etc/logcheck/logcheck.conf&lt;/span&gt;, mettre votre adresse email et reportlevel paranoid (du moins, au début)&lt;br /&gt;Mettre les fichiers que l'on veut checker dans &lt;span style="font-weight: bold;"&gt;/etc/logcheck/logcheck.logfiles&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Logcheck s'executera toutes les heures.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Utilisation de tiger&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Tiger fournit des rapports sur la securité (1 par jour)&lt;br /&gt;Normalement, il est installé par défaut sous Debian&lt;br /&gt;&lt;br /&gt;Dans&lt;span style="font-weight: bold;"&gt; /etc/tiger/tigerrc&lt;/span&gt; mettre votre email à la ligne&lt;span style="font-style: italic;"&gt; Tiger_Mail_RCPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Utiliser la commande&lt;span style="font-style: italic;"&gt; tigercron&lt;/span&gt; pour tester.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-8757574506003652077?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/8757574506003652077/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/detections-dintrusions-sous-linux.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8757574506003652077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8757574506003652077'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/detections-dintrusions-sous-linux.html' title='Detections d&apos;intrusions sous Linux'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-8747686566735530860</id><published>2009-03-09T14:00:00.001+01:00</published><updated>2009-03-09T14:00:00.613+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Utilisation de lsattr et chattr</title><content type='html'>chattr agit comme chmod mais avec plus d'attributs, notamment +i et +a que nous allons developpés ci-dessous.&lt;br /&gt;lsattr permet de lister les attributs comme le fait la la commande ls mais avec plus d'attributs, notamment +i et +a.&lt;br /&gt;&lt;br /&gt;L’attribut « i » (inchangeable, « immutable ») : un fichier ayant cet attribut ne peut-être ni modifié ni effacé ou encore renommé et aucun lien ne peut le référencer, même par le super- utilisateur.&lt;br /&gt;&lt;br /&gt;L’attribut « a » (ajout, « append ») : cet attribut a le même effet que l’attribut « immutable », excepté que vous pouvez encore ouvrir le fichier en mode ajout. Ceci veut dire que vous pouvez encore ajouter plus de contenu au fichier, mais qu’il est impossible de modifier un&lt;br /&gt;contenu précédent. Cet attribut est particulièrement utile pour les fichiers de log stockés dans /var/log/, bien que vous devez considérer qu’ils sont parfois déplacés à cause des scripts d’archivage.&lt;br /&gt;&lt;br /&gt;Ces attributs ne sont habituellement pas sauvés quand vous sauvegardez le système, donc si vous changez l’un d’entre eux, il peux être utile de sauver les commandes chattr successives dans un script pour pouvoir les repositionner plus tard si vous avez à récupérer une sauvegarde.&lt;br /&gt;&lt;br /&gt;Sur quels fichiers&lt;br /&gt;Il est aisé de voir que l’attribut « a » améliore la sécurité, en donnant aux programmes qui ne fonctionnent pas en tant que super-utilisateur, la possibilité d’ajouter des données à un fichier sans pouvoir modifier son précédent contenu.&lt;br /&gt;&lt;br /&gt;L'utilité des commandes est tout de meme discutable. Dans un soucis de securité, lcap a été supprimé de Debian. Hors en ajoutant lcap CAP_LINUX_IMMUTABLE au demarrage et lcap CAP_LINUX_IMMUTABLE apres modification des attributs, même le root ne pouvait plus modifié les attributs. Sans cette commande, il suffit au pirate de se retrouver root pour que l'attribut +i ne serve plus à rien. De plus en tant que root il lui serait facile de supprimer le script avant le redemarrage.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-8747686566735530860?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/8747686566735530860/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/utilisation-de-lsattr-et-chattr.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8747686566735530860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8747686566735530860'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/utilisation-de-lsattr-et-chattr.html' title='Utilisation de lsattr et chattr'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-3563469916160723437</id><published>2009-03-06T11:45:00.003+01:00</published><updated>2009-03-06T11:57:14.246+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Installer un antispam et un antivirus</title><content type='html'>Maintenant que vous avez un serveur mail pleinement fonctionnel (&lt;a href="http://lifolife.blogspot.com/2009/03/installation-de-postfix-avec.html"&gt;postfix&lt;/a&gt; et &lt;a href="http://lifolife.blogspot.com/2009/03/installer-courier-avec-support-tlsssl.html"&gt;courier&lt;/a&gt;), il va vite s'averer indispensable d'installer un antispam et un antivirus.&lt;br /&gt;&lt;br /&gt;Nous pourrons commencer par utiliser Postgrey.&lt;br /&gt;Postgrey refuse systematiquement un mail 600 secondes avant de l'accepter. Un serveur de courrier correctement configurer re-tentera au dela de 600 secondes et le courrier sera delivré. Un serveur de spammeur mal configuré ou un virus lui ne re-tentera pas.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installer postgrey&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install postgrey&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ajouter cette ligne&lt;br /&gt;&lt;span style="font-style: italic;"&gt;check_policy_service inet:127.0.0.1:10023, &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;pour les smtpd_recipient_restrictions. dans &lt;span style="font-weight: bold;"&gt;/etc/postfix/main.cf&lt;/span&gt;. Exemple:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_recipient_restrictions =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      permit_mynetworks,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      permit_sasl_authenticated,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      check_policy_service inet:127.0.0.1:10023,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_rbl_client sbl-xbl.spamhaus.org,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_rbl_client zen.spamhaus.org,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_rbl_client bl.spamcop.net,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_unauth_destination&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Redemarrer Postfix et normalement Postgrey est pris en compte. Regarder les logs pour s'assurer qu'il n'y a pas d'erreurs.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installer un antivirus : Amavis/Clamav&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installer les paquets&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install amavisd-new clamav clamav-daemon clamav-freshclam lha arj unrar zoo nomarch lzop unzip bzip2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt;/etc/amavis/conf.d/05-node_id &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$myhostname = "test.priv"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;et supprimer le &lt;span style="font-style: italic;"&gt;1;&lt;/span&gt; qui genere des erreurs.&lt;br /&gt;&lt;br /&gt;Redemarrer amavis&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/amavis restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installer un antispam : Spamassassin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installer les paquets&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install spamassassin libnet-dns-perl libmail-spf-query-perl libnet-ident-perl libio-socket-ssl-perl libsys-hostname-long-perl razor pyzor dcc-client&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt;/etc/default/spamassassin&lt;/span&gt;, mettre le &lt;span style="font-style: italic;"&gt;ENABLED à 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Redemarrer&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/spamassassin restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Maintenant il va falloir interfacer l'antivirus et l'antispam avec Postfix.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt;/etc/amavis/conf.d/15-content_filter_mode&lt;/span&gt; decommenter les regles.&lt;br /&gt;&lt;br /&gt;Puis à la la fin de &lt;span style="font-weight: bold;"&gt;/etc/postfix/master.cf&lt;/span&gt; ajouter ceci:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;vscan    unix    -    n    n    -    10    pipe    user=amavis argv=usr/sbin/amavis ${sender} ${recipient}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtp-amavis unix - - n - 2 smtp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtp_data_done_timeout=1200&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtp_send_xforward_command=yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o disable_dns_lookups=yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;127.0.0.1:10025 inet n - n - - smtpd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o content_filter=&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o local_recipient_maps=&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o relay_recipient_maps=&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtpd_restriction_classes=&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtpd_client_restrictions=&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtpd_helo_restrictions=&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtpd_sender_restrictions=&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtpd_recipient_restrictions=permit_mynetworks,reject&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o mynetworks=127.0.0.0/8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o strict_rfc821_envelopes=yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtpd_error_sleep_time=0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtpd_soft_error_limit=1001&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     -o smtpd_hard_error_limit=1000&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Puis à la fin de&lt;span style="font-weight: bold;"&gt; /etc/postfix/main.cf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;content_filter = smtp-amavis:[127.0.0.1]:10024&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Redemarrez le tout (amavis,spamassassin,postfix)&lt;br /&gt;&lt;br /&gt;Si vous envoyez un message normal à compte local, cette ligne sera ajoutée dans les headers du message:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;X-virus-scanned: Debian amavisd-new at test.priv&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Si vous envoyez la chaine suivante (chaine servant à tester amavis):&lt;br /&gt;&lt;span style="font-style: italic;"&gt;XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Vous aurez un message de rejet de votre email.&lt;br /&gt;&lt;br /&gt;Pour ne pas etre ennuyé avec les notifications qui peuvent engorger le serveur, modifier ceci dans &lt;span style="font-weight: bold;"&gt;/etc/amavis/conf.d/20-debian_defaults &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$final_virus_destiny      = D_DISCARD;  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$final_banned_destiny     = D_DISCARD;  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$final_spam_destiny       = D_DISCARD;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$final_bad_header_destiny = D_PASS;    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis redemarrer le tout à nouveau&lt;br /&gt;&lt;br /&gt;Pour aller plus loin:&lt;br /&gt;&lt;a href="http://www.queret.net/wiki/index.php/Linux/How-to/Postfix/Amavis"&gt;http://www.queret.net/wiki/index.php/Linux/How-to/Postfix/Amavis&lt;/a&gt;&lt;br /&gt;&lt;a href="http://lindev.fr/index.php?post/2008/10/15/Passerelle-Anti-spam-sous-Debian"&gt;http://lindev.fr/index.php?post/2008/10/15/Passerelle-Anti-spam-sous-Debian&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.radical-spam.org/documentations/amavisd-new.html"&gt;http://www.radical-spam.org/documentations/amavisd-new.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-3563469916160723437?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/3563469916160723437/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/installer-un-antispam-et-un-antivirus.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3563469916160723437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3563469916160723437'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/installer-un-antispam-et-un-antivirus.html' title='Installer un antispam et un antivirus'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-6489293677558315628</id><published>2009-03-06T11:41:00.001+01:00</published><updated>2009-03-06T11:44:24.056+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Installer Courier avec support TLS/SSL</title><content type='html'>Courier est un serveur pop3/Imap. Il permet la distribution des emails afin que les utilisateurs puissent les recuperer. C'est en quelque sorte le facteur.&lt;br /&gt;&lt;br /&gt;Il faut avoir préalablement installé&lt;a href="http://lifolife.blogspot.com/2009/03/installation-de-postfix-avec.html"&gt; Postfix de cette manière&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Installer les paquets necessaires&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Indiquer à Courier qu'il faut utiliser mysql en editant &lt;span style="font-weight: bold;"&gt;/etc/courier/authdaemonrc&lt;/span&gt; et changez la valeur de authmodulelist comme suit :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;authmodulelist="authmysql"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ensuite éditez&lt;span style="font-style: italic;"&gt; &lt;span style="font-weight: bold;"&gt;/etc/courier/authmysqlr&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;c&lt;/span&gt;. Il devrait ressembler à ceci :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_SERVER localhost&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_USERNAME postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_PASSWORD password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_PORT 3306&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_DATABASE postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_USER_TABLE mailbox&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_CRYPT_PWFIELD password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#MYSQL_CLEAR_PWFIELD password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_UID_FIELD 5000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_GID_FIELD 5000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_LOGIN_FIELD email&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_HOME_FIELD "/var/mail/vmail"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#MYSQL_NAME_FIELD&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MYSQL_QUOTA_FIELD concat(quota,'S')&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Pour le service POP3, editer les fichiers &lt;span style="font-weight: bold;"&gt;/etc/courier/pop3d&lt;/span&gt; et&lt;span style="font-weight: bold;"&gt; /etc/courier/pop3d-ss&lt;/span&gt;l puis modifier la (dernière) ligne :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MAILDIRPATH=.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Vérifier par la même occasion que POP3DSTART est bien à YES :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;POP3DSTART=YES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Faire de même pour le service IMAP, editer fichiers &lt;span style="font-weight: bold;"&gt;/etc/courier/imapd&lt;/span&gt; et &lt;span style="font-weight: bold;"&gt;/etc/courier/imapd-ssl&lt;/span&gt; :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;IMAPDSTART=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MAILDIRPATH=.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Redemarrer le tout&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/courier-authdaemon restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/courier-imap restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/courier-imap-ssl restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/courier-pop restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/courier-pop-ssl restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et voilà vous avez un service POP3/POP3S/IMAP/IMAPS actif pour deliver les emails.&lt;br /&gt;&lt;br /&gt;Il ne vous reste plus qu'à tester tout cela avec un client email du type "Outlook" ou "Evolution".&lt;br /&gt;&lt;br /&gt;Pop3 ecoute sur le port 110 et Pop3S sur le port 995&lt;br /&gt;Imap ecoute sur le port 143 et ImapS sur le port 993&lt;br /&gt;Pensez à regler vos firewalls en consequence.&lt;br /&gt;&lt;br /&gt;En cas de soucis, consultez dans &lt;span style="font-weight: bold;"&gt;/var/log&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mail.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mail.info&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mail.err&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mail.warn&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Important: lorsqu'une nouvelle boite email est créée, envoyer automatiquement un email dans cette boite. Sinon l'utilisateur relevant ses mails aura un message d'erreur tant que aucun mail ne sera jamais arrivé dans sa boite.&lt;br /&gt;&lt;br /&gt;Il sera maintenant bon d'activer fail2ban pour postfix, courrierauth, sasl.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-6489293677558315628?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/6489293677558315628/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/installer-courier-avec-support-tlsssl.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6489293677558315628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6489293677558315628'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/installer-courier-avec-support-tlsssl.html' title='Installer Courier avec support TLS/SSL'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-6882870184534068231</id><published>2009-03-06T11:25:00.009+01:00</published><updated>2009-03-06T11:56:34.459+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Installation de Postfix avec authentification SASL et activation TLS/SSL</title><content type='html'>Postfix est un serveur SMTP.  D'un côté il réceptionne le courrier en entrée et le stock. Il ne les distribue pas aux differents utilisateurs. De l'autre côté il permet d'expédier des emails en communiquant avec d'autres serveurs smtp. Nous allons installer Postfix avec le support MYSQL afin de pouvoir ajouter facilement des domaines et des boites emails.&lt;br /&gt;&lt;br /&gt;En tant que root mysql, creons un utilisateur postfix qui aura le droit de seulement lire la base&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mysql -u root -p&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mysql&gt;CREATE DATABASE `postfix`;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mysql&gt;GRANT SELECT ON `postfix`.* TO 'postfix'@'127.0.0.1' IDENTIFIED BY 'password';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;postfix.* signifie que vous appliquez les droits à toutes les tables de la base postfix.&lt;br /&gt;postfix@127.0.0.1 signifie que autorisé postfix seulement depuis 127.0.0.1 (cad en local)&lt;br /&gt;Password etant le mot de passe que vous attribuez à l'utilisateur postfix.&lt;br /&gt;&lt;br /&gt;Pui, toujours tant que root, nous allons créer les tables mysql&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;USE postfix;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- Structure de la table `domain`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;CREATE TABLE `domain` (&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `domain` varchar(255) NOT NULL default '',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `actif` tinyint(1) NOT NULL default '1',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  PRIMARY KEY  (`domain`)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;) ENGINE=MyISAM COMMENT='Postfix Admin - Domaines Virtuels';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- Structure de la table `mailbox`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;CREATE TABLE `mailbox` (&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `email` varchar(255) NOT NULL default '',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `password` varchar(255) NOT NULL default '',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `quota` int(10) NOT NULL default '0',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `actif` tinyint(1) NOT NULL default '1',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `imap` tinyint(1) NOT NULL default '1',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `pop3` tinyint(1) NOT NULL default '1',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  PRIMARY KEY  (`email`)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;) ENGINE=MyISAM COMMENT='Postfix Admin - Boites Emails Virtuelles';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- Structure de la table `alias`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-- &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;CREATE TABLE `alias` (&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `source` varchar(255) NOT NULL default '',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `destination` text NOT NULL,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  `actif` tinyint(1) NOT NULL default '1',&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  PRIMARY KEY  (`source`)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;) ENGINE=MyISAM COMMENT='Postfix Admin - Alias Virtuels';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Maintenant nous sommes prêt du côté Mysql.&lt;br /&gt;&lt;br /&gt;Postfix ne gere pas nativement les quotas.&lt;br /&gt;&lt;br /&gt;Il y a 2 solutions : soit on telecharge les sources puis on applique un patch.&lt;br /&gt;C'est le cas ici : http://doku.beyondhosting.fr/doku.php/howto:debian:postfix dans la section "Patch Quota pour Postfix". L'inconvenient est que le paquet ne sera plus mis à jour par le gestionnaire de paquets. Il faudra à chaque faille de securité decouverte re-compiler postfix.&lt;br /&gt;&lt;br /&gt;Etant deja dans ce cas avec Mysql afin qu'il supporte SSL, j'ai donc plutot choisit de continuer à utiliser les paquets debian en ajoutant le dépot VDA (auteur du patch des quotas). Il faut juste s'assurer que vda sorte rapidement les mises à jour lorsqu'il y en a et qu'ils ne se fassent pas hacker...&lt;br /&gt;&lt;br /&gt;Pour ajouter le depot, mettre ces lignes à la fin du fichier &lt;span style="font-weight: bold;"&gt;/etc/apt/sources.list&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#postfix VDA&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;deb http://debian.home-dn.net/sarge postfix-vda/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On installe postfix avec le support mysql&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get update&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install postfix postfix-mysql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;L'installeur va alors vous poser quelques questions.&lt;br /&gt;&lt;br /&gt;Pour un serveur dédié il faudra choisir "Systeme Internet", et pour le domaine votre domaine principale. Nous utiliserons test.priv pour les tests.&lt;br /&gt;&lt;br /&gt;Ensuite, il est necessaire de creer un utilisateur pour les mails virtuels. Tous les mails virtuels arriveront dans &lt;span style="font-weight: bold;"&gt;/var/spool/Vmail/test.priv/user&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;groupadd -g 5000 vmail&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;useradd -g vmail -u 5000 vmail -d /var/spool/vmail/ -m&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis editer &lt;span style="font-weight: bold;"&gt;/etc/postfix/main.cf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Modifier&lt;br /&gt;&lt;span style="font-style: italic;"&gt;myhostname = test.priv &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#restrictions d'accès&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# adresses d'expédition&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# le "reject_unknown_sender_domain" verifie que le domaine existe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_sender_restrictions =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        permit_mynetworks,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        reject_unknown_sender_domain,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        warn_if_reject reject_unverified_sender&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# adresses de destination&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_recipient_restrictions =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        permit_mynetworks,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        reject_unauth_destination,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        reject_unknown_recipient_domain,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        reject_non_fqdn_recipient&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# client&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_client_restrictions =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        reject_unknown_client,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        permit_mynetworks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et ajouter ceci&lt;br /&gt;&lt;span style="font-style: italic;"&gt;disable_vrfy_command = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_helo_required = yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf,mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_mailbox_base = /var/spool/vmail/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_uid_maps = static:5000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_gid_maps = static:5000&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_create_maildirsize = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_mailbox_extended = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_mailbox_limit_override = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_maildir_limit_message = "Desole, la boite email de l'utilisateur est pleine, essayez plus tard."&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;virtual_overquota_bounce = yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ensuite creer les fichiers suivants dans &lt;span style="font-weight: bold;"&gt;/etc/postfix&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;span style="font-weight: bold;"&gt;mysql-virtual_domains.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;hosts = 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;password = pass&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dbname = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;select_field = 'virtual'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;table = domain&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;where_field = domain&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;additional_conditions = AND actif=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#&lt;span style="font-weight: bold;"&gt; mysql-virtual_mailboxes.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;hosts = 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;password = pass&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dbname = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;select_field = CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;table = mailbox&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;where_field = email&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;additional_conditions = AND actif=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;span style="font-weight: bold;"&gt;mysql-virtual_aliases.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;hosts = 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;password = pass&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dbname = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;select_field = destination&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;table = alias&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;where_field = source&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;additional_conditions = AND actif=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;span style="font-weight: bold;"&gt;mysql-virtual_aliases_mailbox.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;hosts = 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;password = pass&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dbname = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;select_field = email&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;table = mailbox&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;where_field = email&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;additional_conditions = AND actif=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;span style="font-weight: bold;"&gt;mysql-virtual_mailbox_limit_maps.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;hosts = 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;password = pass&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dbname = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;select_field = quota&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;table = mailbox&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;where_field = email&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Autoriser postfix à lire ces fichiers&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chgrp postfix /etc/postfix/mysql-virtual_*.cf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod u=rw,g=r,o= /etc/postfix/mysql-virtual_*.cf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;puis redemarrer postfix et checker la configuration&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/postfix restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;postfix check&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;regarder les logs dans /var/log&lt;br /&gt;il y a mail.err, mail.info, mail.log, mail.warn&lt;br /&gt;&lt;br /&gt;Avec mysql5, un probleme de connexion mysql peut survenir si vous avez activer skip-networking. Il suffit de le commenter, ecouter seulement sur 127.0.0.1 aura le même effet.&lt;br /&gt;&lt;br /&gt;Maintenant nous allons ajouter la partie sasl et modifier la partie TLS dans &lt;span style="font-weight: bold;"&gt;/etc/postfix/main.cf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#sasl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_sasl_auth_enable = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_sasl_security_options = noanonymous&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_sasl_local_domain = test.priv&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;broken_sasl_auth_clients = yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# tls config&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtp_use_tls = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_use_tls = yes &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtp_tls_note_starttls_offer = yes &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_tls_key_file = /etc/postfix/smtpd.pem&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_tls_cert_file = /etc/postfix/smtpd.pem&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_tls_CAfile = /etc/postfix/smtpd.pem&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_tls_loglevel = 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_tls_received_header = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_tls_session_cache_timeout = 3600s&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;tls_random_source = dev:/dev/urandom&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et ajouter ceci qui permet de limiter les spams et les scans&lt;br /&gt;&lt;span style="font-style: italic;"&gt;### Tarpit those bots/clients/spammers who send errors or scan for accounts&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_error_sleep_time = 60&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_soft_error_limit = 60&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_hard_error_limit = 10&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enfin, nous allons modifier ceci dans &lt;span style="font-weight: bold;"&gt;/etc/postfix/main.cf&lt;/span&gt; pour autoriser les authentifications sasl&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# adresses de destination&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_recipient_restrictions =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        permit_mynetworks,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        permit_sasl_authenticated,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        reject_unauth_destination,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        reject_unknown_recipient_domain,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        reject_non_fqdn_recipient&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Comme nous avons activé TLS, il faut generer les certificats dans&lt;span style="font-weight: bold;"&gt; /etc/postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl req -new -x509 -nodes -out smtpd.pem -keyout smtpd.pem -days 3650&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Autoriser Postfix à lire ces certificats&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chgrp postfix /etc/postfix/smtpd.*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod u=rw,g=r,o= /etc/postfix/smtpd.*&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ensuite, decommenter ces lignes dans &lt;span style="font-weight: bold;"&gt;/etc/postfix/master.cf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtps     inet  n       -       -       -       -       smtpd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  -o smtpd_tls_wrappermode=yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  -o smtpd_sasl_auth_enable=yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  -o smtpd_client_restrictions=permit_sasl_authenticated,reject&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  -o milter_macro_daemon_name=ORIGINATING&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour utiliser les principales listes antispam dans &lt;span style="font-weight: bold;"&gt;/etc/postfix/main.cf&lt;/span&gt;, modifier ceci:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;smtpd_recipient_restrictions =&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      permit_mynetworks,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      permit_sasl_authenticated,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_rbl_client sbl-xbl.spamhaus.org,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_rbl_client zen.spamhaus.org,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_rbl_client bl.spamcop.net,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_unauth_destination,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_unknown_recipient_domain,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      reject_non_fqdn_recipient&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installons maitenant sasl et le module mysql pour PAM&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Creer un dossier pour sasl&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mkdir -p /var/spool/postfix/var/run/saslauthd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Editez &lt;span style="font-weight: bold;"&gt;/etc/default/saslauthd. &lt;/span&gt;&lt;br /&gt;Remplacez START=no en&lt;span style="font-style: italic;"&gt; START=yes&lt;/span&gt; puis modifiez le paramètre OPTION&lt;br /&gt;&lt;span style="font-style: italic;"&gt;OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Créez ensuite le fichier &lt;span style="font-weight: bold;"&gt;/etc/pam.d/smtp&lt;/span&gt;. Il ne doit contenir seulement ces deux lignes (changez les différents paramètre):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auth required pam_mysql.so user=postfix passwd=password host=127.0.0.1 db=postfix table=mailbox usercolumn=email passwdcolumn=password crypt=1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;account sufficient pam_mysql.so user=postfix passwd=password host=127.0.0.1 db=mail table=mailbox column=email passwdcolumn=password crypt=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ensuite, créez le fichier &lt;span style="font-weight: bold;"&gt;/etc/postfix/sasl/smtpd.conf&lt;/span&gt; comme suit :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;pwcheck_method: saslauthd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mech_list: plain login&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;allow_plaintext: true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auxprop_plugin: mysql&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sql_hostnames: 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sql_user: postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sql_passwd: password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sql_database: postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sql_select: select password from mailbox where email = '%u'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Coreection d'un bug&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;adduser postfix sasl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis redemarrer&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/postfix restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;postfix check&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/saslauthd restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Regarder dans les logs si tout va bien comme vu precedemment&lt;br /&gt;&lt;br /&gt;Maintenant nous allons tester que le smtp fait bien ce que nous voulons.&lt;br /&gt;&lt;br /&gt;Vous aurez peut-etre besoin de telnet&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install telnet-ssl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ajoutons un domaine test2.priv, et un email test@test2.priv&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mysql -u root -p&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mysql&gt;USE postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mysql&gt;INSERT INTO domain VALUES ('test2.priv',1);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mysql&gt;INSERT INTO mailbox VALUES ('test@test2.priv',ENCRYPT('secret'),0,1,1,1);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Creer une clée d'authentification pour ce serveur&lt;br /&gt;&lt;span style="font-style: italic;"&gt;% perl -MMIME::Base64 -e 'print encode_base64("\000test\@test2.priv\000secret")'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;AGptczFAam1zMS5uZXQAbm90Lm15LnJlYWwucGFzc3dvcmQ&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Depuis le serveur nous devons pouvoir envoyer vers l'exterieur ou vers un compte local.&lt;br /&gt;&lt;br /&gt;Vers un compte local&lt;br /&gt;&lt;span style="font-style: italic;"&gt;telnet localhost 25&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;HELO test.priv&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mail from: &lt;test@test.priv&gt;&lt;/test@test.priv&gt;&lt;/span&gt;test@test.priv&lt;br /&gt;&lt;span style="font-style: italic;"&gt;250 ok&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rcpt to: &lt;test@test2.priv&gt;&lt;/test@test2.priv&gt;&lt;/span&gt;test@test2.priv&lt;br /&gt;&lt;span style="font-style: italic;"&gt;250 ok&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;data&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;354 go ahead&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;From: John &lt;test@test.priv&gt;&lt;/test@test.priv&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;To: Nobody &lt;test@test2.priv&gt;&lt;/test@test2.priv&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Subject: test postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;test postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;250 ok 1113954693 qp 29052&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;quit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Vers exterieur, recommencer la manipulation precedente avec un compte wanadoo par exemple au lieu de test@test2.priv.Attention si vous essayez depuis un reseau domestique et non un serveur dédié, la plupart des FAI bloquent le port 25 et donc le mail ne partira reellement pas.&lt;br /&gt;&lt;br /&gt;Si tout est ok vous devez retrouver des emails dans&lt;span style="font-weight: bold;"&gt; /var/spool/vmail/test2.priv/test&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Depuis l'exterieur, si nous ne sommes pas identifié nous pouvons seulement envoyer vers un compte local. Si nous sommes identifier nous pouvons envoyer vers l'exterieur egalement. Nous allons en profiter pour tester l'authentification SSL.&lt;br /&gt;&lt;br /&gt;Pour tester l'envoi vers un compte local, faire la meme manipulation que ci-dessus avec un telnet ip.du.serv.eur 25.&lt;br /&gt;&lt;br /&gt;Idem vers un compte exterieur (du type @wanadoo.fr). A ce moment après avoir tapé rcpt to: &lt;test@wanadoo.fr&gt; vous allez avoir un message du genre "relay denied". Ce qui est normal, il ne faut pas que n'importe qui puisse utiliser votre serveur pour spammer le monde entier.&lt;br /&gt;&lt;br /&gt;Il faut vous authentifier avec la clé que l'on a créé plus haut. tapez ceci dans le telnet:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;AUTH PLAIN AGptczFAam1zMS5uZXQAbm90Lm15LnJlYWwucGFzc3dvcmQ=&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;235 ok, go ahead (#2.0.0)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;puis refaire:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mail from: test@test.priv&lt;test@test.priv&gt;&lt;/test@test.priv&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;250 ok&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rcpt to: test@wanadoo.fr&lt;test@wanadoo.fr&gt;&lt;/test@wanadoo.fr&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;250 ok&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;data&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;354 go ahead&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;From: John &lt;test@test.priv&gt;&lt;/test@test.priv&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;To: Nobody &lt;test@wanadoo.fr&gt;&lt;/test@wanadoo.fr&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Subject: test postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;test postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;250 ok 1113954693 qp 29052&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;quit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Maintenant vous pouvez envoyer vers l'exterieur.&lt;br /&gt;&lt;br /&gt;Testons maintenant le SSL, le smtp SSL ouvre un port 465. Pensez à l'ouvrir sur votre firewall.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl s_client -crlf -connect ip.du.serv.eur:465&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;puis refaire les memes manipulations que ci-dessus, tester l'authentification etc...&lt;br /&gt;&lt;br /&gt;Voici la manipulation pour tester le TLS egalement&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl s_client -starttls smtp -crlf -connect ip.du.serv.eur:25&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour l'administration des quotas (3eme colonne de la table mailbox), sachez que pour autoriser 2Mo il faudra indiquer 2048000.  Les valeurs sont à donner en bytes.&lt;br /&gt;&lt;br /&gt;En cas de besoin, pour configurer Postfix en tant que MX secondaire d'un autre serveur de mails, ajoutez ceci dans &lt;span style="font-weight: bold;"&gt;/etc/postfix/main.cf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;relay_domains = domain1.tld&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il faudra configurer les DNS de domain1.tld de la facon suivante:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;domain1.tld.        IN      MX 10 mx1.domain1.tld.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;domain1.tld.        IN      MX 20 backup.example.tld.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;backup.example.tld etant notre postfix secondaire.&lt;br /&gt;&lt;br /&gt;Pour renvoyer un utilisateur local vers une boite que l'on peut relever, on pourra ajouter comme alias&lt;br /&gt;&lt;span style="font-style: italic;"&gt;root vers test@test2.priv&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;root@localhost vers test@test2.priv&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;root@test.priv vers test@test2.priv&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sans ajouter localhost et test.priv à la table domain.&lt;br /&gt;&lt;br /&gt;Maintenant, vous savez tout sur le fonctionnement d'un serveur SMTP du type Postfix. Bon courage!&lt;br /&gt;&lt;br /&gt;Pour aller plus loin:&lt;br /&gt;&lt;a href="http://www.lea-linux.org/documentations/index.php/Postfix-courier-mysql-quota-spamassassin-amavis"&gt;http://www.lea-linux.org/documentations/index.php/Postfix-courier-mysql-quota-spamassassin-amavis&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doku.beyondhosting.fr/doku.php/howto:debian:postfix"&gt;http://doku.beyondhosting.fr/doku.php/howto:debian:postfix&lt;/a&gt;&lt;br /&gt;&lt;a href="http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailclients.html"&gt;http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailclients.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ftp.traduc.org/doc-vf/gazette-linux/html/2007/142/lg142-C.html"&gt;http://ftp.traduc.org/doc-vf/gazette-linux/html/2007/142/lg142-C.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.yocum.org/faqs/postfix-tls-sasl.html"&gt;http://www.yocum.org/faqs/postfix-tls-sasl.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.postfix.org/SASL_README.html"&gt;http://www.postfix.org/SASL_README.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://linuxfr.org/%7EDinmax/10161.html"&gt;http://linuxfr.org/~Dinmax/10161.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.bxlug.be/articles/108"&gt;http://www.bxlug.be/articles/108&lt;/a&gt;&lt;br /&gt;&lt;/test@wanadoo.fr&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-6882870184534068231?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/6882870184534068231/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/installation-de-postfix-avec.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6882870184534068231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6882870184534068231'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/installation-de-postfix-avec.html' title='Installation de Postfix avec authentification SASL et activation TLS/SSL'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-2069253096128226189</id><published>2009-03-04T14:54:00.002+01:00</published><updated>2009-03-04T14:59:16.508+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Configuration d'un serveur bind</title><content type='html'>Nous allons commencer par mettre bind dans un environnement chrooté afin de limiter la casse en cas de hack&lt;br /&gt;&lt;br /&gt;Stopper le serveur&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/bind9 stop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Editer le fichier&lt;span style="font-weight: bold;"&gt; /etc/default/bind9&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;OPTIONS="-u bind -t /var/lib/named"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis créer quelques dossiers&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mkdir -p /var/lib/named/etc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mkdir /var/lib/named/dev&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mkdir -p /var/lib/named/var/cache/bind&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mkdir -p /var/lib/named/var/run/bind/run&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Copier la configuration dans l'environnement chrooté&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mv /etc/bind /var/lib/named/etc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Faire les liens symboliques&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ln -s /var/lib/named/etc/bind /etc/bind&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Le necessaire dans &lt;span style="font-weight: bold;"&gt;/dev&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mknod /var/lib/named/dev/null c 1 3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mknod /var/lib/named/dev/random c 1 8&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Donner les bons droits&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chown -R bind:bind /var/lib/named/var/*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chown -R bind:bind /var/lib/named/etc/bind &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et copier le fichier &lt;span style="font-weight: bold;"&gt;rndc.key&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp /etc/bind/bind/rndc.key /etc/bind&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis editer le syslog &lt;span style="font-weight: bold;"&gt;/etc/default/syslogd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SYSLOGD="-a /var/lib/named/var/log"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enfin, redemmarer le tout&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/sysklogd restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/bind9 start &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nous allons maintenant configurer bind dans cette environnement chrooté&lt;br /&gt;&lt;br /&gt;Editer le fichier&lt;span style="font-weight: bold;"&gt; /etc/bind/bind/named.conf.options&lt;/span&gt; et ajouter les lignes suivantes dans options {}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Bind resoudra les domaines du monde entier seulement pour la machine locale&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#les autres n'auront le droit qu'aux seuls zones pour lesquelles le DNS est autoritaire&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;allow-recursion{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    127.0.0.1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    192.168.1.1; #IP SERVEUR LOCAL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;};&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On autorisera les transferts de zones uniquement pour les DNS secondaires&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;allow-transfer{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    none; #SEULEMENT LES SECONDAIRES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;};&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#IP sur laquelle on ecoute, ici l'ip du serveur local&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;listen-on{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    192.168.1.1; #IP SERVEUR&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;};&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis pour creer une nouvelle zone, editer&lt;span style="font-weight: bold;"&gt; /etc/bind/bind/named.conf.local&lt;/span&gt; et inserer les lignes ci-dessous&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;zone "test.com" {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;  type master;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;  file "test.com.hosts";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;};&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans le fichier correspondant &lt;span style="font-weight: bold;"&gt;/var/lib/named/var/cache/bind/test.com.hosts&lt;/span&gt;, mettre ceci&lt;br /&gt;&lt;br /&gt;@     IN     SOA    ns1.test.com postmaster.test.com (&lt;br /&gt;                    2009030401 ; serial&lt;br /&gt;                    21600      ; refresh after 6 hours&lt;br /&gt;                    3600       ; retry after 1 hour&lt;br /&gt;                    604800     ; expires after 1 week&lt;br /&gt;                    86400 )    ; minimum TTL of 1 day&lt;br /&gt;&lt;br /&gt;             IN     NS     ns1.test.com.&lt;br /&gt;         IN     NS     ns2.test.com.&lt;br /&gt;             IN     MX     10     mail.test.com.&lt;br /&gt;&lt;br /&gt;             IN     A       192.168.1.1&lt;br /&gt;ww1          IN     A       192.168.1.1&lt;br /&gt;mail         IN     A       192.168.1.1&lt;br /&gt;ns1          IN     A       10.0.1.2&lt;br /&gt;ns2          IN     A       10.0.1.3&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Un peu d'explications&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ns1.test.com est le dns primaire&lt;br /&gt;postmaster.test.com signifie que postmaster@test.com est l'adresse principale pour ce domaine&lt;br /&gt;le serial doit etre de la forme yyyymmdd0x où x est incrementé à chaque maj quotidienne&lt;br /&gt;&lt;br /&gt;Pour tester sous linux sur la machine locale, ne pas oublier de mettre l'ip du serveur local en premier dans &lt;span style="font-weight: bold;"&gt;/etc/resolv.conf&lt;/span&gt;&lt;br /&gt;un &lt;span style="font-style: italic;"&gt;nslookup google.fr 192.168.1.1&lt;/span&gt; fonctionnera en local et ne doit pas fonctionner depuis une autre ip du reseau&lt;br /&gt;un &lt;span style="font-style: italic;"&gt;nslookup test.com 192.168.1.1&lt;/span&gt; doit dans les 2 cas (reseau &amp;amp; local) retourner 192.168.1.1&lt;br /&gt;&lt;br /&gt;Ensuite nous pouvons proteger un peu plus Bind avec fail2ban contre une attaque DDOS (Distributed Denial of Service). Il faut que fail2ban soit déjà installé.&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt; /etc/bind/bind/named.conf.local&lt;/span&gt; ajouter ceci&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;logging {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     channel security_file {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;         file "/var/log/named/security.log" versions 3 size 30m;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;         severity dynamic;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;         print-time yes;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     };&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     category security {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;         security_file;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     };&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;};&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis dans &lt;span style="font-weight: bold;"&gt; /etc/fail2ban/jail.conf&lt;/span&gt; ou &lt;span style="font-weight: bold;"&gt;jail.local&lt;/span&gt; selon votre configuration, modifier les lignes suivantes&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[named-refused-udp]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;enabled  = true&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[named-refused-tcp]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;enabled  = true&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; Enfin pour terminer on reboote le tout&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/bind9 restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/fail2ban restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour en savoir un peu plus sur la configuration de Bind:&lt;br /&gt;&lt;br /&gt;http://www.cgsecurity.org/Articles/dns_bind.html&lt;br /&gt;http://www.linux-kheops.com/doc/redhat72/rhl-rg-fr-7.2/s1-bind-configuration.html&lt;br /&gt;http://www.alsacreations.com/tuto/lire/623-Bind-dns-chroot.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-2069253096128226189?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/2069253096128226189/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/configuration-dun-serveur-bind.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/2069253096128226189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/2069253096128226189'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/configuration-dun-serveur-bind.html' title='Configuration d&apos;un serveur bind'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-1502248012239011830</id><published>2009-03-03T16:08:00.002+01:00</published><updated>2009-03-03T16:13:47.601+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Configurer correctement le SSH</title><content type='html'>Le ssh étant le seul moyen d'accès complet au serveur dédié (normalement...), il est important de le configurer correctement et de la manière la plus sécurisée possible.&lt;br /&gt;&lt;br /&gt;La majeur partie des options se modifient dans le fichier &lt;span style="font-weight: bold;"&gt;/etc/ssh/sshd_config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ListenAddress 192.168.0.1&lt;/span&gt;&lt;br /&gt;On doit indiquer ici une seule adresse où ssh écoute (le plus souvent sur eth0)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;PermitRootLogin no&lt;/span&gt;&lt;br /&gt;Il ne faut pas autoriser le root à se logguer directement, cela favoriserait encore plus les attaques par bruteforce. Avant d'interdire le root, assurez vous que vous avez un autre utilisateur qui pourra executer la commande su.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Port 666&lt;/span&gt; (ou eventuellement ListenAddress 192.168.0.1:666)&lt;br /&gt;Il est preferable de changer le port par defaut. Cela compliquera un peu la vie à ceux qui veulent rentrer dans votre machine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;PermitEmptyPasswords no &lt;/span&gt;&lt;br /&gt;Les mots de passe vides sont un affront au système de sécurité.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;AllowUsers alex@host.com jeff &lt;/span&gt;&lt;br /&gt;Autorise alex seulement depuis tel domaine et jeff depuis partout. Evite que tous vos utilisateurs FTP aient un accès SSH par exemple. Nous verrons plus bas que cette fonction est également possible avec l'utilisation de l'authentification PAM.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;AllowGroups wheel admin&lt;/span&gt;&lt;br /&gt;Comme pour les utilisateurs, on peut autoriser seulement certains groupes.&lt;br /&gt;&lt;br /&gt;Il existe aussi leurs pendants &lt;span style="font-style: italic;"&gt;DenyUsers&lt;/span&gt; et &lt;span style="font-style: italic;"&gt;DenyGroups&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;PasswordAuthentication yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il vous appartient complètement de décider ce que vous voulez faire. Il est plus sûr d’autoriser l’accès à la machine uniquement aux utilisateurs avec des clés ssh placées dans le fichier  ~/.ssh/authorized_keys. Si c’est ce que vous voulez, positionnez cette option à “no”.&lt;br /&gt;&lt;br /&gt;Désactiver toute forme d’autorisation dont vous n’avez pas réellement besoin si vous n’utilisez pas, par exemple, RhostsRSAAuthentication, HostbasedAuthentication, KerberosAuthentication ou RhostsAuthentication, vous devriez les désactiver même s’ils le sont déjà par défaut.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Protocol 2&lt;/span&gt;&lt;br /&gt;Désactiver le protocole version 1, car il a des défauts de conception qui facilite le crack.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Passer cette étape nous pouvons nous occuper de l'authentification PAM. Pam permet permet des authentification plus restrictives.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nous allons commencer par créer le fichier &lt;span style="font-weight: bold;"&gt;/etc/.sshusers-allowed&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;touch /etc/.sshusers-allowed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nous allons mettre dedans tous les utilisateurs autorisés à se connecter, séparés par des sauts de ligne. On voit ici la double-utilisation avec le parametre &lt;span style="font-style: italic;"&gt;AllowUsers&lt;/span&gt; de &lt;span style="font-weight: bold;"&gt;sshd_config&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Ensuite à la fin du fichier &lt;span style="font-weight: bold;"&gt;/etc/pam.d/sshd&lt;/span&gt; nous allons ajouter ces 2 lignes&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auth    required pam_listfile.so onerr=fail item=user sense=allow file=/etc/.sshusers-allowed&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;password required pam_cracklib.so retry=3 minlen=6 difok=3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;La premiere ligne fait que le serveur SSH exigera que l'utilisateur soint indiqué dans &lt;span style="font-weight: bold;"&gt;/etc/.sshusers-allowed&lt;/span&gt; pour pouvoir se connecter.&lt;br /&gt;&lt;br /&gt;La seconde ligne fait que l'utilisateur ne pourra tenter plus de 3 mots de passes differents en cas d'erreur, et que les mots de passe devront faire au minimum 6 caracteres. Pour que cette methode soit efficace il sera bon de la coupler à fail2ban.&lt;br /&gt;&lt;br /&gt;Si vous n'avez pas beaucoup d'utilisateurs ssh distants, ce qui normalement doit etre le cas, vous pouvez augmenter la securité en realisant un&lt;span style="font-weight: bold;"&gt; script d'authentification&lt;/span&gt; qui fera plusieurs choses:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.-Ouvrir le firewall (iptables)&lt;/span&gt; seulement pour ces ip. Exemple si l'ip 192.168.1.250 est autorisée à se connecter.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A INPUT -p tcp -s 192.168.1.250 --dport 666 -i eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables -A OUTPUT -p tcp -d 192.168.1.250 --sport 666 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ne pas utiliser ces commandes si vous ne connaissez pas iptables et son utilisation!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2-Autoriser seulement ces ip dans le tcpwrapper. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans &lt;span style="font-weight: bold;"&gt;/hosts.deny&lt;/span&gt; indiquer quelque chose qui ressemblerai à ceci&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sshd : ALL EXCEPT 111.111.111.111, 222.222.222.222 : SPAWN echo "test %c" &gt;&gt; /var/log/test.txt &amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Si l'ip n'est pas 111.111.111.111 ou 222.222.222.222 l'adresse ip sera logguée dans &lt;span style="font-weight: bold;"&gt;/var/log/test.txt&lt;/span&gt;. On peut imaginer à la place de&lt;span style="font-style: italic;"&gt; echo "test %c" &gt;&gt; /var/log/test.txt &amp;amp;&lt;/span&gt; l'appel à un script iptables qui blacklisterait les indesirables (l'ip étant %c)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.Autoriser seulement toto@111.111.111.111 dans AllowUsers de sshd_config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Avec fail2ban et portsentry le SSH devrait être suffisamment sécurisé pour décourager les petits malins si vous n'êtes pas la CIA ;) Pensez à faire le script qui fera l'inverse, cad qui dés-authentifiera un utilisateur pour une ip donnée.&lt;br /&gt;&lt;br /&gt;Enfin, pour logguer tout ce qui se passe au niveau des logins, vous pouvez modifier dans le fichier fichier &lt;span style="font-weight: bold;"&gt;/etc/login.defs &lt;/span&gt;ces 2 lignes:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;FAILLOG_ENAB=YES&lt;/span&gt; //loggue les erreurs&lt;br /&gt;&lt;span style="font-style: italic;"&gt;LOG_OK_LOGIN=YES&lt;/span&gt; //loggue les logins ok&lt;br /&gt;&lt;br /&gt;et n'hesitez pas à utiliser la commande&lt;span style="font-style: italic;"&gt; makepasswd&lt;/span&gt; pour generer vos mots de passe.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-1502248012239011830?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/1502248012239011830/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/configurer-correctement-le-ssh.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1502248012239011830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1502248012239011830'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/configurer-correctement-le-ssh.html' title='Configurer correctement le SSH'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-3355183195737222886</id><published>2009-03-02T16:54:00.004+01:00</published><updated>2009-03-02T17:07:03.688+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Les quotas utilisateurs sous Debian</title><content type='html'>Pour faire fonctionner les quotas, installer l'utilitaire adequat:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install quota&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ensuite dans &lt;span style="font-weight: bold;"&gt;/etc/fstab&lt;/span&gt; pour les partitions où l'on veut activer les quota, il faut renommer defaults en usrquota,grpquota&lt;br /&gt;&lt;br /&gt;Puis creer ces 2 fichiers:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;touch /&lt;partition&gt;[partition]/aquota.user&lt;/partition&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;touch /&lt;partition&gt;&lt;/partition&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;[partition]&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;partition&gt;/aquota.group&lt;/partition&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Si vous avez une seule et unique partition, c'est&lt;span style="font-weight: bold;"&gt; /aquota.user&lt;/span&gt; par exemple. Si c'est la partition /home, il faut creer le fichier &lt;span style="font-weight: bold;"&gt;/home/aquota.user&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Donner les autorisations adequates à ces fichiers:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod 600 /&lt;/span&gt;&lt;span style="font-style: italic;"&gt;[partition]&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;partition&gt;/aquota.user&lt;/partition&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod 600 /&lt;/span&gt;&lt;span style="font-style: italic;"&gt;[partition]&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;partition&gt;/aquota.group&lt;/partition&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis un petit reboot&lt;br /&gt;&lt;span style="font-style: italic;"&gt;reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour afficher un rapport complet par utilisateur et par groupe:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;repquota -a&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Normalement tout est vierge     &lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Pour definir un quota de 200Mb à l'utilisateur &lt;span style="font-style: italic;"&gt;user&lt;/span&gt; en ligne de commande (remplacer hda2 par rapport à la ligne dans /etc/fstab où les quotas ont été activés)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/usr/sbin/setquota -u user  0 200000 0 0 /dev/hda2 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Important, il faut ensuite redemarrer le service des quotas&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/quota off&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/quota on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;Pour voir les quotas d'un utilisateur&lt;br /&gt;&lt;span style="font-style: italic;"&gt;quota -v toto &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour editer le quota d'un utilisateur (sous vi si c'est l'editeur par defaut)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;edquota -u toto&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour dupliquer les quotas d'un utilisateur à une liste de nouveaux utilisateurs&lt;br /&gt;&lt;span style="font-style: italic;"&gt;edquota -p toto liste   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour modifier la durée de la" grace" pour la limite soft&lt;br /&gt;&lt;span style="font-style: italic;"&gt;edquota -t &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;pour verifier les quotas&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/quota stop&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;quotacheck -avugm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/quota start&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-3355183195737222886?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/3355183195737222886/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/03/les-quotas-utilisateurs-sous-debian.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3355183195737222886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3355183195737222886'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/03/les-quotas-utilisateurs-sous-debian.html' title='Les quotas utilisateurs sous Debian'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-7896520142602057667</id><published>2009-02-26T16:11:00.003+01:00</published><updated>2009-03-06T15:15:12.799+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Sécurité Debian : Quelques bons reflexes</title><content type='html'>Voici en vrac quelques bons reflexes pour securiser son serveur Debian. Attention cette liste est loin d'etre exhaustive et ne constitue que quelques "trucs &amp;amp; astuces".&lt;br /&gt;&lt;br /&gt;Après une installation, faire du menage dans &lt;span style="font-weight: bold;"&gt;/etc/inetd.conf&lt;/span&gt; pour ne demarrer que les services essentiels. Ne les demarrer qu'après leur securisation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installer logcheck&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install logcheck&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans /etc/logcheck/logcheck.conf : mettre votre adresse email et reportlevel "paranoid" au debut. Vous pourrez passer en "server" une fois que tout tournera correctement.&lt;br /&gt;&lt;br /&gt;Mettre les fichiers de logs que l'on veut checker dans /etc/logcheck/logcheck.logfiles&lt;br /&gt;&lt;br /&gt;Utiliser et configurer correctement l'&lt;span style="font-weight: bold;"&gt;authentification PAM&lt;/span&gt;. J'approfondirais le sujet dans un prochain article.&lt;br /&gt;&lt;br /&gt;Generer les mots de passe avec &lt;span style="font-weight: bold;"&gt;makepasswd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Utiliser et configurer correctement les &lt;span style="font-weight: bold;"&gt;quotas&lt;/span&gt;. J'approfondirais le sujet dans un prochain article.&lt;br /&gt;&lt;br /&gt;Utiliser &lt;span style="font-weight: bold;"&gt;lsattr/chattr&lt;/span&gt; avec le systeme de fichiers ext2/ext3. Permet de definir des droits plus stricts sur certains fichiers dont seul le root pourra modifier les attributs.&lt;br /&gt;&lt;br /&gt;N'autoriser l'execution des compilateurs et installeurs que pour root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod o-x /usr/bin/gcc*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod o-x /usr/bin/make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod o-x /usr/bin/apt-get&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chmod o-x /usr/bin/dpkg &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Utiliser&lt;span style="font-weight: bold;"&gt; Nessus&lt;/span&gt; pour rechercher les failles sur un serveur et faire un audit&lt;br /&gt;&lt;br /&gt;Et ce n'est qu'un début, je prevois plusieurs autres articles à ce sujet ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-7896520142602057667?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/7896520142602057667/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/securite-debian-quelques-bons-reflexes.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7896520142602057667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7896520142602057667'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/securite-debian-quelques-bons-reflexes.html' title='Sécurité Debian : Quelques bons reflexes'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-8814263430912534259</id><published>2009-02-25T16:41:00.008+01:00</published><updated>2009-02-25T16:59:49.381+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Sécurité: Partionnement sous Debian</title><content type='html'>La sécurité sur un serveur doit être pensée dès le schéma de partionnement. Bien souvent on résume la sécurité à la mise en place d'un pare-feu, pourtant elle doit se penser bien plus en amont, avant même l'installation du systeme. Un peu à la manière du referencement qui doit se penser avant la création d'un site, après il sera trop tard.&lt;br /&gt;&lt;br /&gt;Il est bon par exemple de penser à faire une partition pour les logs &lt;span style="font-weight: bold;"&gt;/var/log&lt;/span&gt; car si les logs venaient à gonfler de maniere excessive, ils pourraient entrainer un disfonctionnement des programmes ayant besoin d'espace disque (apache et /tmp, mysql etc...) et entrainer une indisponibilité de votre site web.&lt;br /&gt;&lt;br /&gt;Une autre partition pourra être &lt;span style="font-weight: bold;"&gt;/var/cache/apt/archives&lt;/span&gt; pour conserver les archives des upgrade.&lt;br /&gt;&lt;br /&gt;On pourrait choisir de mettre tous les binaires "hors package" dans une partition &lt;span style="font-weight: bold;"&gt;/usr/local&lt;/span&gt;. Ce repertoire est conservé en cas de re-installation et vous pourrez ainsi retrouver facilement tous vos programmes.&lt;br /&gt;&lt;br /&gt;Il est judicieux egalement de creer une partition&lt;span style="font-weight: bold;"&gt; /var/mail&lt;/span&gt; ou &lt;span style="font-weight: bold;"&gt;/var/spool/mail&lt;/span&gt; selon votre serveur de mails. En cas de reception d'un nombre important d'emails cela evitera que tout le disque dur sature. ils pourraient entrainer un disfonctionnement des programmes ayant besoin d'espace disque (apache et /tmp, mysql etc...) et entrainer une indisponibilité de votre site web.&lt;br /&gt;&lt;br /&gt;Créer   seulement une partition general&lt;span style="font-weight: bold;"&gt;e /var &lt;/span&gt;pourrait poser des problemes car on retrouve dedans le repertoire /var/run necessaire à certains programmes pour fonctionner correctement. Si les mails ou les logs venaient à remplir&lt;span style="font-weight: bold;"&gt; /var&lt;/span&gt;, ces programmes ne fonctionneraient plus.&lt;br /&gt;&lt;br /&gt;Pour les partitions pour lesquelles vous ne pouvez pas être certain de la place nécessaire, ins-&lt;br /&gt;tallez Logical Volume Manager (lvm-common et les binaires nécessaires pour votre noyau qui&lt;br /&gt;peuvent être soit lvm10, soit lvm6 ou encore lvm5). En utilisant lvm, vous pouvez créer des&lt;br /&gt;groupes de volumes répartis sur plusieurs volumes physiques.&lt;br /&gt;&lt;br /&gt;Pour installer lvm&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install lvm2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour en savoir plus sur l'utilisation de lvm&lt;br /&gt;&lt;a href="http://www.wearegeeks.info/Utilisation-de-LVM"&gt;http://www.wearegeeks.info/Utilisation-de-LVM&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Quelques commandes pratiques&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cfdisk (ou fdisk -l)&lt;/span&gt;  vous indiquera le type de fichier.&lt;br /&gt;&lt;br /&gt;Il est plus judicieux d'utiliser un&lt;span style="font-weight: bold;"&gt; systeme de fichiers du type ext3&lt;/span&gt; qui est plus à même de gerer une coupure inopinée (reboot hard, coupure electrique) sans corrompre ou perdre trop de données.&lt;br /&gt;&lt;br /&gt;Pour obtenir des infos sur le filesystem de votre partition (dans notre cas /dev/hda1)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;tune2fs -l /dev/hda1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour modifier l'intervalle de fsck à 1 semaine:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;tune2fs -i 1w /dev/hda1&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Ainsi à chaque reboot si le dernier fsck (file system check) date de plus d'une semaine, la verification s'effectuera.  &lt;/span&gt;&lt;span&gt;Attention dans le cas de grosses partitions le fsck peut durer assez longtemps. Dans le cadre d'un serveur en production, il vaudra mieux lui faire faire un reboot automatique 1 fois par semaine vers 3H du matin afin de faire cette verification sans generer une indisponibilité importante du site web.&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-8814263430912534259?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/8814263430912534259/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/securite-partionnement-sous-debian.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8814263430912534259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/8814263430912534259'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/securite-partionnement-sous-debian.html' title='Sécurité: Partionnement sous Debian'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-1954074571420128115</id><published>2009-02-20T15:30:00.002+01:00</published><updated>2009-02-20T15:30:01.211+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dev. Web.'/><title type='text'>Revue de presse de la semaine</title><content type='html'>&gt;Sur smashing magazine on retrouve&lt;a href="http://www.smashingmagazine.com/2009/02/18/9-common-usability-blunders/"&gt; les 9 erreurs les plus courantes dans le Web Design&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&gt;Vous voulez tout savoir sur les caracteres speciaux et leurs equivalents html et xhtml? rendez-vous sur &lt;a href="http://gdumas.developpez.com/articles/xhtml/caracteres-speciaux/"&gt;Developpez.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&gt;Antivir propose un &lt;a href="http://www.libellules.ch/dotclear/index.php?post/2009/02/12/Avira-Antivir-RescueCD"&gt;rescueCD gratuit &lt;/a&gt;qui pourra sauver nombre d'ordinateurs&lt;br /&gt;&lt;br /&gt;&gt;Le module de paiement en ligne Atos qui donne des sueurs froides aux developpeurs web : &lt;a href="http://www.j0k3r.net/news-atos-et-son-autoresponse-fragilise-...-2013.html"&gt;L'autoresponse fragilisée!&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-1954074571420128115?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/1954074571420128115/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/revue-de-presse-de-la-semaine_20.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1954074571420128115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1954074571420128115'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/revue-de-presse-de-la-semaine_20.html' title='Revue de presse de la semaine'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-3373735900334784448</id><published>2009-02-16T14:15:00.005+01:00</published><updated>2009-02-16T17:13:37.831+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Upgrade de Debian Etch 4.0 vers Lenny 5.0</title><content type='html'>J'ai passé aujourd'hui 2 serveurs Debian Etch 4.0 vers Lenny 5.0&lt;br /&gt;&lt;br /&gt;Le premier était un serveur debian standard de test, le second était un RPS de chez OVH, en production et loin d'être dans le moule...&lt;br /&gt;&lt;br /&gt;En premier, un petit nettoyage s'impose&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get clean&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis on mets à jour le Etch&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get update&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get upgrade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans le fichier &lt;span style="font-style: italic;"&gt;/etc/apt/sources.list &lt;/span&gt;on&lt;span style="font-style: italic;"&gt;  remplace etch par stable&lt;/span&gt; partout où etch est indiqué. Sur le serveur de test j'ai dû commenter également tout ce qui était non-free.&lt;br /&gt;&lt;br /&gt;On update&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get-update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il y a un problème de signature, mais ce n'est pas grave&lt;br /&gt;&lt;br /&gt;On upgrade&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get upgrade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On refait un update&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get update &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et là le problème de signature a disparu. Ouf!&lt;br /&gt;&lt;br /&gt;Maitenant on mets à jour la distribution. C'est long et on a parfois des sueurs froides&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get dist-upgrade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pour le serveur OVH, le systeme me demandais confirmation pour modifier des parametres de Lilo, là il y a la petite goutte de sueur avant de cliquer sur OK, quand on sait la complexité du systeme RPS :)&lt;br /&gt;&lt;br /&gt;Idem quand il y avait des "failed" suivis d'un arret inopiné du &lt;span style="font-style: italic;"&gt;dist-upgrade. &lt;/span&gt;Mais avec la commande &lt;span style="font-style: italic;"&gt;dpkg --configure -a&lt;/span&gt; j'ai toujours réussi à relancer l'installation.&lt;br /&gt;&lt;br /&gt;Une fois le dist-upgrade terminé, on remet les non-free si besoin dans le &lt;span style="font-style: italic;"&gt;/etc/apt/sources.list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On refait un update puis un upgrade histoire de s'assurer que tout est ok&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-apt-get update&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-apt-get upgrade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis un dernier pour la route&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get dist-upgrade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Qui vous dira qu'il n'y a plus rien à faire.&lt;br /&gt;&lt;br /&gt;Personnellement pour le serveur en production j'ai dû recompiler le module phpEAccelerator et j'ai rencontré des soucis d'incompatibilité avec snort entre l'ancienne et la nouvelle version.&lt;br /&gt;&lt;br /&gt;Donc on reboot:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/sbin/reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et si tout va bien le systeme redemarre correctement. Sur le OVH, le /etc/issue est incorrecte et signale toujours une debian 4.0, mais le fichier /etc/debian_version lui nous donne bien 5.0.&lt;br /&gt;&lt;br /&gt;Le principale soucis qui peut être rencontré c'est quand on commence à toucher la config d'un paquet, qu'on doit autoriser l'écrasement ou non par exemple. Réfléchir à 2 fois à ce que l'on fait. J'ai autorisé l'écrasement du syslog mais pas du snort par exemple.&lt;br /&gt;&lt;br /&gt;Enfin, en relation avec le précdent article, vsftpd a été mis à jour: Vous pouvez modifier la ligne suivante:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;force_local_logins_ssl=&lt;span style="font-weight: bold;"&gt;YES&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis vous connecter sans probleme avec Filezilla et le chiffrement explicite.&lt;br /&gt;&lt;br /&gt;Il faut compter environ 1H pour cet upgrade.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-3373735900334784448?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/3373735900334784448/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/upgrade-de-debian-etch-40-vers-lenny-50.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3373735900334784448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3373735900334784448'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/upgrade-de-debian-etch-40-vers-lenny-50.html' title='Upgrade de Debian Etch 4.0 vers Lenny 5.0'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-6376813229033057421</id><published>2009-02-13T14:55:00.003+01:00</published><updated>2009-02-13T14:59:24.780+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>VSFTPD + SSL sur Debian Etch 4.0</title><content type='html'>Nous allons installer vsftpd avec support du SSL sur une debian etch 4.0.&lt;br /&gt;Le serveur ftp n'autorisera que les utilisateurs Linux et refusera systematiquement toute connection anonyme.&lt;br /&gt;Les utilisateurs Linux seront chrootés dans leur repertoire et ne verrons pas les fichiers cachés commençant par un point.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;On considere que OpenSSL est déjà correctement installé&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On va faire l'habituel update&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis on installe les paquets vsftp et ftp-ssl&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install vsftpd ftp-ssl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On stoppe aussitot vsftp car il est configuré par défaut&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/vsftpd stop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On supprime le repertoire ftp qui a été créé&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rmdir /home/ftp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On copie /etc/vsftpd.conf vers /root/vsftpd.old&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp /etc/vsftpd.conf /root/vsftpd.old&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On supprime /etc/vsftpd.conf&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rm /etc/vsftpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On edite /etc/vsftpd.conf&lt;br /&gt;&lt;span style="font-style: italic;"&gt;vim /etc/vsftpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On mets ceci dans le vsftpd.conf&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#=======GENERAL===========================================================&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On ne l'utilise pas avec inetd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;listen=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On interdit les acces anonymes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;anonymous_enable=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On autorise les utilisateurs linux à se connecter&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;local_enable=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On autorise les utilisateurs à écrire là où ils ont le droit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;write_enable=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Tout fichier creer par ftp aura les droits 022 (-rw-r--r--)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;local_umask=022&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Affiche les messages quand l'utilisateur va dans certains repertoires&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dirmessage_enable=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Activer les logs pour uploads/dowloads&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;xferlog_enable=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Fichier de logs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;xferlog_file=/var/log/vsftpd.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Logs dans le format standard&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;xferlog_std_format=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Timout de session&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;idle_session_timeout=300&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Data timeout&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;data_connection_timeout=30&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Le texte qui s'affiche à chaque connection ftp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ftpd_banner=Bienvenue sur le serveur test-local.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On chroot l'utilisateur dans son repertoire&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;chroot_local_user=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On definit le nombre maximum d'utilisateurs connectés&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;max_clients=20&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Nombre maximum d'utilisateurs par IP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;max_per_ip=5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On cache l'affichage des fichiers cachés commençant par un point&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;force_dot_files=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On cache les noms d'utilisateurs des fichiers&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;hide_ids=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#On utilise l'horloge locale&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;use_localtime=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Activer le mode de connection passif&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;pasv_enable=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Quand = NO, oblige à verifier qu'il n'y a pas d'usurpation d'ip&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;pasv_promiscuous=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Plage de ports utilisés pour le mode passif&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;pasv_min_port=65000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;pasv_max_port=65099&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#L'adresse ip du serveur&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;pasv_address=192.168.1.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Controle qu'on utilise bien le port 20&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#disabling this option enables vsftpd to run with slightly less privilege&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;connect_from_port_20=NO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#=======SSL=============================================================&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Chemin du certificat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#rsa_cert_file=/etc/ssl/certs/vsftpd.pem&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Activer l'authentification SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#ssl_enable=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Autoriser les anonymes à utiliser ssl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#allow_anon_ssl=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Obliger le SSL pour envoyer et recevoir des données&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#force_local_data_ssl=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Obliger le login uniquement par SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#force_local_logins_ssl=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Utiliser uniquement tlsv1, le protocole le plus securisé&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#ssl_sslv2=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#ssl_sslv3=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#ssl_tlsv1=YES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#======DEBIAN CUSTOMISATION=============================================&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;secure_chroot_dir=/var/run/vsftpd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;pam_service_name=vsftpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On notera que toute la partie SSL est désactivée pour l'instant.&lt;br /&gt;&lt;br /&gt;Redemarrer le serveur&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/vsftpd stop&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/vsftpd start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nous allons verifier que nous pouvons nous connecter ni en utilisateur anonyme ni en root&lt;br /&gt;&lt;br /&gt;Tentative en anonyme (user anonyme, mettre une adresse email en mot passe)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;local-deb:/etc# ftp localhost&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Connected to localhost.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;220 Bienvenue sur le serveur test-local.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Name (localhost:test): anonymous&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;530 Please login with USER and PASS.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;530 Please login with USER and PASS.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSL not available&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;331 Please specify the password.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Password:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;530 Login incorrect.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Login failed.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ftp&gt; quit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;221 Goodbye.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Tentative en root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;local-deb:/etc# ftp localhost&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Connected to localhost.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;220 Bienvenue sur le serveur test-local.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Name (localhost:test): root&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;530 Please login with USER and PASS.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;530 Please login with USER and PASS.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SSL not available&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;331 Please specify the password.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Password:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;530 Login incorrect.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Login failed.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ftp&gt; quit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;221 Goodbye.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Maitenant tentez avec un utilisateur Linux, cela devrait fonctionner.&lt;br /&gt;Profitons-en si besoin pour tester les droits sur les fichiers avec filezilla depuis l'exterieur.&lt;br /&gt;&lt;br /&gt;Une fois que tout est ok sans SSL - c'est à dire que les utilisateurs, les droits, les connexions depuis l'exterieur fonctionnent - nous allons activer le SSL&lt;br /&gt;&lt;br /&gt;Créons un certificat - Créer les repertoires adéquats si besoin&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cd /etc/ssl/certs &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openssl req -x509 -nodes -days 730 -newkey rsa:1024 -keyout vsftpd.pem -out vsftpd.pem&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Décommenter la section SSL comme suit dans le fichier /etc/vsftpd.conf&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Chemin du certificat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rsa_cert_file=/etc/ssl/certs/vsftpd.pem&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Activer l'authentification SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ssl_enable=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Autoriser les anonymes à utiliser ssl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;allow_anon_ssl=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Obliger le SSL pour envoyer et recevoir des données&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;force_local_data_ssl=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Obliger le login uniquement par SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;force_local_logins_ssl=YES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Utiliser uniquement tlsv1, le protocole le plus securisé&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ssl_sslv2=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ssl_sslv3=NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ssl_tlsv1=YES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Redemarrer le serveur&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/vsftpd stop&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/vsftpd start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On test en local (ou en distant depuis une autre distribution Linux ayant ftp-ssl)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;test@test-local:~$ ftp 192.168.1.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Connected to 192.168.1.5.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;220 Bienvenue sur le serveur test-local.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Name (192.168.1.5:test): test&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;234 Proceed with negotiation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[SSL Cipher DES-CBC3-SHA]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;331 Please specify the password.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Password:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;230 Login successful.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Remote system type is UNIX.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Using binary mode to transfer files.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ftp&gt; ls&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;200 PORT command successful. Consider using PASV.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;150 Here comes the directory listing.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-rw-------    1 ftp      ftp          5499 Feb 12 18:15 vsftpd.old&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;226 Directory send OK.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ftp&gt; quit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;221 Goodbye.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;La chaine &lt;span style="font-weight: bold;"&gt;[SSL Cipher DES-CBC3-SHA]&lt;/span&gt; indique que l'on est bien en crypté SSL. Plus haut avant que l'on active le SSL il était indiqué &lt;span style="font-weight: bold;"&gt;SSL not available&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Maintenant si nous essayons cela avec Filezilla (FTPES / Chiffrement explicite) vous aurez une erreur:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Statut :    Connexion à 192.168.1.5:21 en cours...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Statut :    Connexion établie. Attente du message d'accueil...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    220 Bienvenue sur le serveur test-local.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    AUTH TLS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    234 Proceed with negotiation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Statut :    Initialisation TLS...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Statut :    Vérification du certificat...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    USER test&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Statut :    Connexion TLS/SSL établie.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    331 Please specify the password.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    PASS ******&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    230 Login successful.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    SYST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    215 UNIX Type: L8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    FEAT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    211-Features:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     AUTH SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     AUTH TLS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     EPRT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     EPSV&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     MDTM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     PASV&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     PBSZ&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     PROT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     REST STREAM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     SIZE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :     TVFS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    211 End&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    PBSZ 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    200 PBSZ set to 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    PROT P&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    200 PROT now Private.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Statut :    Connecté&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Statut :    Récupération du contenu du répertoire...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    PWD&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    257 "/"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    TYPE I&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    200 Switching to Binary mode.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    PASV&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    227 Entering Passive Mode (192,168,1,5,254,3)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Commande :    LIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    150 Here comes the directory listing.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Statut :    Le serveur n'a pas fermé correctement la connection TLS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Erreur :    Connexion interrompue : ECONNABORTED - Connection aborted&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Réponse :    226 Directory send OK.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Erreur :    Échec à la lecture du contenu du répertoire&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ceci est dû à une&lt;span style="font-weight: bold;"&gt; incompatibilité entre Filezilla et Vsftpd SSL&lt;/span&gt;. Le paquet 2.0.7-1 de VsFTPD est censé résoudre le probleme mais il est actuellement en "testing" et donc indisponible dans les paquets debian stables.&lt;br /&gt;&lt;br /&gt;En attendant nous n'avons d'autres choix de supprimer l'obligation de connection par SSL de nos utilisateur. Ainsi ceux qui ont Filezilla se connecterons de maniere classique, et ceux qui le peuvent ou le veulent pourront utiliser le FTP over SSL.&lt;br /&gt;&lt;br /&gt;Pour cela il faut changer cette ligne:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Obliger le login uniquement par SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;force_local_logins_ssl=YES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;En&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#Obliger le login uniquement par SSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;force_local_logins_ssl=NO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et quand VSFTD 2.0.7-1 sera publié on pourra retenter une connection Filezilla&lt;-&gt;VsFTPD SSL&lt;br /&gt;&lt;br /&gt;Une autre solution consisterait à utiliser le SFTP qui n'est autre que du SCP (Utilisant SSH). Bien que le protocole soit sécurisé, je ne l'adopte pas pour deux raison:&lt;br /&gt;-Le port SSH est fermé au public pour plus de sécurité sur le serveur&lt;br /&gt;-Le SSH ne permet pas de CHROOT est plus permissif au niveau de la manipulation des fichiers.&lt;br /&gt;&lt;br /&gt;Sur ce, bonne installation!&lt;br /&gt;&lt;br /&gt;Liens&lt;br /&gt;Toutes les options de vsFTPD : &lt;a href="http://vsftpd.beasts.org/vsftpd_conf.html"&gt;http://vsftpd.beasts.org/vsftpd_conf.html&lt;/a&gt;&lt;br /&gt;Installer vsFTPD sur une debian :&lt;a href="http://www.paradoxal.org/blog/post/2007/06/02/Serveur-Debian-vsftpd"&gt; http://www.paradoxal.org/blog/post/2007/06/02/Serveur-Debian-vsftpd&lt;/a&gt;&lt;br /&gt;L'etat du paquet 2.0.7-1 qui devrait supporter Filezilla/SSL : &lt;a href="http://packages.qa.debian.org/v/vsftpd.html"&gt;http://packages.qa.debian.org/v/vsftpd.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-6376813229033057421?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/6376813229033057421/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/vsftpd-ssl-sur-debian-etch-40.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6376813229033057421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6376813229033057421'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/vsftpd-ssl-sur-debian-etch-40.html' title='VSFTPD + SSL sur Debian Etch 4.0'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-1837810462351901798</id><published>2009-02-13T13:30:00.000+01:00</published><updated>2009-02-13T13:39:49.441+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dev. Web.'/><title type='text'>Revue de presse de la semaine</title><content type='html'>&gt;&gt;Smashing magazine publie un comparatif des PHP IDE: &lt;a href="http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-use-oneand-which-to-choose/"&gt;Comparatifs PHP IDE&lt;/a&gt; .Je ne suis pas fan de ces usines à gaz, très lourdes à l'utilisation. Je prefere SciTE Editor.&lt;br /&gt;&lt;br /&gt;&gt;&gt;Decouvrez &lt;a href="http://www.phplivedocx.org/"&gt;PhpLiveDocx &lt;/a&gt;qui permet des transformer des .doc et .docx en PDF en un clin d'oeil sous Linux/PHP.&lt;br /&gt;&lt;br /&gt;&gt;&gt;On continue dans la série PHP&lt;-&gt;MS Office avec ce tutoriel pour &lt;a href="http://g-ernaelsten.developpez.com/tutoriels/excel2007/"&gt;PHPExcel sur Developpez.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&gt;&gt;Les robots Google qui ont du mal avec le reseau Ovh, particulierement sur les mutualisés : On en parle ici sur&lt;a href="http://forum.webrankinfo.com/ovh-90plan-googlebot-again-t106651-75.html"&gt; Webrankinfo&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-1837810462351901798?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/1837810462351901798/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/revue-de-presse-de-la-semaine.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1837810462351901798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/1837810462351901798'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/revue-de-presse-de-la-semaine.html' title='Revue de presse de la semaine'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-3172873717790865301</id><published>2009-02-10T17:02:00.005+01:00</published><updated>2009-02-10T17:09:38.383+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dev. Web.'/><title type='text'>Module Apache 2 de Geolocalisation sous Debian</title><content type='html'>Developpez.com nous propose un excellent tutoriel pour intégrer la géolocalisation sur Apache 2 sous debian Etch.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Voilà le tutoriel&lt;/span&gt;&lt;br /&gt;&lt;a href="http://apache.developpez.com/cours/geolocalisation/"&gt;http://apache.developpez.com/cours/geolocalisation/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Le sommaire:&lt;br /&gt;1. Présentation&lt;br /&gt;2. Mise en place&lt;br /&gt;2.1. A partir des sources&lt;br /&gt;2.2. Exemple de Debian Etch pour une installation à partir des paquets binaires prévus&lt;br /&gt;3. Utilisation&lt;br /&gt;3.1. Par l'usage d'un langage de programmation côté serveur&lt;br /&gt;3.1.1. PHP&lt;br /&gt;3.1.2. Ruby&lt;br /&gt;3.1.3. Perl&lt;br /&gt;3.1.4. Autres langages&lt;br /&gt;3.2. Dans le cadre de la configuration du serveur seul&lt;br /&gt;3.2.1. Première application : interdire l'accès à certains utilisateurs étrangers&lt;br /&gt;3.2.2. Deuxième application : redirection suivant le lieu de connexion&lt;br /&gt;4. Epilogue&lt;br /&gt;5. Remerciements&lt;br /&gt;&lt;br /&gt;Ayant utilisé des solutions basées sur la geolocalisation Maxmind, je peux vous dire que même avec la version gratuite vous pourrez geolocaliser jusqu'à la ville de vos visiteurs, avec plus ou moins de succès ;)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://apache.developpez.com/cours/geolocalisation/"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-3172873717790865301?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/3172873717790865301/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/module-apache-2-de-geolocalisation-sous.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3172873717790865301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3172873717790865301'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/module-apache-2-de-geolocalisation-sous.html' title='Module Apache 2 de Geolocalisation sous Debian'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-4980803047307316948</id><published>2009-02-09T16:16:00.006+01:00</published><updated>2009-02-09T16:49:54.111+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Mysql 5.0 avec support du SSL sous Debian Etch</title><content type='html'>Voici comment installer un server mysql 5 avec support du SSL sous Debian Etch 4.0&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install mysql-server-5.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Si il y a des erreurs du genre "libperl paquet defectueux", verifier son /etc/apt/sources.list qui doit ressembler à ça:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#GENERAL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;deb http://ftp.fr.debian.org/debian/ etch main&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;deb-src http://ftp.fr.debian.org/debian/ etch main&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#SECURITY&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;deb http://security.debian.org/ etch/updates main contrib&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;deb-src http://security.debian.org/ etch/updates main contrib&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#NON-FREE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;deb http://ftp.fr.debian.org/debian stable main contrib non-free&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;deb-src http://ftp.fr.debian.org/debian stable main contrib non-free&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Une fois le package installé, modifier ensuite le mot de passe root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mysql -u root&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&gt;SET PASSWORD FOR 'root'@'localhost'=PASSWORD('lemotdepasse');&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#Par mesure de securité on vire les utilisateurs anonymes si il y a&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&gt;DELETE FROM mysql.user WHERE user='';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis on modifie le fichier /etc/mysql/my.cnf comme suit&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#PARAMETRES AJOUTES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;wait_timeout    = 60&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;connect_timeout = 10&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;interactive_timeout = 120&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;join_buffer_size=1M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sort_buffer_size=8M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;read_buffer_size=2M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;read_rnd_buffer_size=2M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;key_buffer_size=64M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;skip-networking&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# * Fine Tuning&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;key_buffer              = 256M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;max_allowed_packet      = 16M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;thread_stack            = 128K&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;thread_cache_size       = 8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;max_connections        = 100&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;table_cache            = 1024&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;query-cache-type = 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;query_cache_limit       = 2M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;query_cache_size        = 128M&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et on redemarre mysql pour appliquer les changements&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/etc/init.d/mysql restart&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Maintenant nous allons apporter le support SSL&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Par défaut, le paquet Debian n'est pas configuré avec le SSL. Il faut le recompiler.&lt;br /&gt;&lt;br /&gt;Installer les paquetages suivants necessaires à la compilation:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install dpkg-dev&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install devscripts&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install gcc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install libtool&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install debhelper&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install libncurses5-dev&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install libwrap0-dev&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install zlib1g-dev&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install libreadline5-dev&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install chrpath&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install automake1.9&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install doxygen&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install tetex-bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install tetex-extra&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install gs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install dpatch&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install gawk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install bison&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install openssl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get install libssl-dev&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Puis on recupere les sources&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cd /usr/src&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get build-dep mysql-server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;apt-get source mysql-server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nous allons apporter la modification necessaire puis re-creer le paquet&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cd mysql-dfsg-*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;nano debian/rules&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Remplacer la ligne 'without-openssl' par 'with-openssl'&lt;br /&gt;Remplacer la ligne 'with-yassl' par 'without-yassl'&lt;br /&gt;&lt;br /&gt;On indique le changement de version du paquet&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;debchange -v 5.0.32-7etch1+ssl-1 "Added SSL"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Puis&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;taper&lt;span style="font-weight: bold;"&gt; dpkg-buildpackage&lt;/span&gt; qui va reconstruire le paquet. Cela dure un certain temps.&lt;br /&gt;&lt;br /&gt;Ensuite, nous allons installer ce paquet&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cd..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;dpkg -i *.deb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il peut y avoir des erreurs, dans ce cas là, recommencer &lt;span style="font-weight: bold;"&gt;dpkg -i *.deb&lt;/span&gt; et normalement ça passe.&lt;br /&gt;&lt;br /&gt;Nous allons demander à Debian de ne plus mettre à jours ces paquets lors de l'apt-get upgrade. Attention à bien vous informer si une faille venait à etre decouverte...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "libmysqlclient15-dev hold"|dpkg --set-selections&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "libmysqlclient15off hold"|dpkg --set-selections&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "mysql-client hold"|dpkg --set-selections&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "mysql-client-5.0 hold"|dpkg --set-selections&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "mysql-server hold"|dpkg --set-selections&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "mysql-server-5.0 hold"|dpkg --set-selections&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "mysql-common hold"|dpkg --set-selections&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Remplacer "hold" par "install" pour que Debian re-active les mises à jours automatiques si besoin.&lt;br /&gt;&lt;br /&gt;Maintenant nous allons creer les certificats SSL pour le serveur&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mkdir /etc/mysql/openssl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cd /etc/mysql/openssl/&lt;br /&gt;&lt;br /&gt;openssl req -x509 -new -days 9999 -newkey rsa:2048 -nodes -keyout ca-key.pem -out ca-cert.pem&lt;br /&gt;openssl req -new -newkey rsa:2048 -nodes -keyout server-key.pem -out server-csr.pem&lt;br /&gt;openssl rsa -in server-key.pem -out server-key.pem&lt;br /&gt;openssl x509 -req -days 9999 -in server-csr.pem -signkey server-key.pem -out server-crt.pem&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Laissez vide pour la question `challenge password` et `suivante` s’il y a lieu.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Nous allons maintenant modifier le fichier de configuration mysql :&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;nano /etc/mysql/my.cnf&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Repérez, modifiez et décommentez les 3 ssl dans la section [mysqld]&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;ssl-ca=/etc/mysql/openssl/ca-cert.pem&lt;br /&gt;ssl-key=/etc/mysql/openssl/server-key.pem&lt;br /&gt;ssl-cert=/etc/mysql/openssl/server-cert.pem&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Redémarrer MySQL&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;/etc/init.d/mysql restart&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Puis pour se connecter en SSL, taper:&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;mysql --ssl -u root -p --ssl-ca=/dev/null&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Pour verifier que le SSL est bien activé, saisir la requete suivante&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;SHOW VARIABLES LIKE 'have_openssl';&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Et voilà c'est tout! Pour activer les accès depuis l'exterieur il faudra commenter la ligne "skip-networking" et mettre pour bind-address l'adresse du serveur dans le fichier /etc/my.cnf.&lt;br /&gt;&lt;br /&gt;On pourra autorisé l'acces seulement depuis certaines IP en jouant avec iptables et les droits d'acces de mysql, par exemple : &lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;mysql&gt; GRANT ALL PRIVILEGES ON test.* TO test@192.168.1.5  IDENTIFIED BY "goodsecret" REQUIRE SSL;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;REQUIRE SSL indique que la connexion doit etre imperativement chiffrée.&lt;br /&gt;&lt;br /&gt;Pour aller plus loin : &lt;a href="http://www.lokris.net/doc/mysql/secure-grant.html"&gt;http://www.lokris.net/doc/mysql/secure-grant.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sources :&lt;br /&gt;&lt;a href="http://momocello.com/connexion-ssl-mysql-openssl-sur-debian-etch-ou-lenny/"&gt;http://momocello.com/connexion-ssl-mysql-openssl-sur-debian-etch-ou-lenny/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://talkingcode.co.uk/2007/11/12/error-2026-hy000-ssl-connection-error-the-joy-of-mysql-ssl-on-debian/"&gt;http://talkingcode.co.uk/2007/11/12/error-2026-hy000-ssl-connection-error-the-joy-of-mysql-ssl-on-debian/&lt;/a&gt;&lt;br /&gt;&lt;span class="body"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-4980803047307316948?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/4980803047307316948/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/mysql-50-avec-support-du-ssl-sous.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4980803047307316948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/4980803047307316948'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/mysql-50-avec-support-du-ssl-sous.html' title='Mysql 5.0 avec support du SSL sous Debian Etch'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-614252198740544687</id><published>2009-02-06T09:51:00.004+01:00</published><updated>2009-02-06T10:00:14.585+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Admin serveurs'/><title type='text'>Le Raid Soft chez OVH</title><content type='html'>Ayant loué un nouveau serveur dédié chez OVH, j'ai cherché une manière de vérifier que le RAID 1 (mirroring) ne se désynchronise pas sur la debian 32 bits. Ce serait balo que le systeme plante à un moment où le raid n'est plus operationnel ;)&lt;br /&gt;&lt;br /&gt;Il existe la commande &lt;span style="font-weight:bold;"&gt;cat /proc/mdstat&lt;/span&gt; mais elle n'est pas très explicite. Quand elle indique "UU" c'est que les deux disques sont synchro.&lt;br /&gt;&lt;br /&gt;Le mieux est d'installer le package &lt;span style="font-weight:bold;"&gt;mdadm&lt;/span&gt; pour gerer son raid.&lt;br /&gt;&lt;br /&gt;Pour afficher l'état de md1 par exemple, il suffit de taper &lt;span style="font-weight:bold;"&gt;mdadm --misc --detail /dev/md1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/dev/md1:&lt;br /&gt;        Version : 00.90.03&lt;br /&gt;  Creation Time : Mon Jan 26 11:10:11 2009&lt;br /&gt;     Raid Level : raid1&lt;br /&gt;     Array Size : 5245120 (5.00 GiB 5.37 GB)&lt;br /&gt;    Device Size : 5245120 (5.00 GiB 5.37 GB)&lt;br /&gt;   Raid Devices : 2&lt;br /&gt;  Total Devices : 2&lt;br /&gt;Preferred Minor : 1&lt;br /&gt;    Persistence : Superblock is persistent&lt;br /&gt;&lt;br /&gt;    Update Time : Tue Jan 27 10:03:52 2009&lt;br /&gt;          State : clean&lt;br /&gt; Active Devices : 2&lt;br /&gt;Working Devices : 2&lt;br /&gt; Failed Devices : 0&lt;br /&gt;  Spare Devices : 0&lt;br /&gt;&lt;br /&gt;           UUID : 74932def:e8eba4a6:3d8cc965:69f71135&lt;br /&gt;         Events : 0.2&lt;br /&gt;&lt;br /&gt;    Number   Major   Minor   RaidDevice State&lt;br /&gt;       0       8        1        0      active sync   /dev/sda1&lt;br /&gt;       1       8       17        1      active sync   /dev/sdb1&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Ideme pour md2.&lt;br /&gt;&lt;br /&gt;En bas si vous voyez &lt;span style="font-weight:bold;"&gt;active sync&lt;/span&gt; c'est que c'est ok.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-614252198740544687?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/614252198740544687/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/le-raid-soft-chez-ovh.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/614252198740544687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/614252198740544687'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/le-raid-soft-chez-ovh.html' title='Le Raid Soft chez OVH'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-6408583971528613849</id><published>2009-02-02T19:21:00.011+01:00</published><updated>2009-02-02T19:32:22.892+01:00</updated><title type='text'>Galerie photo sur un site web</title><content type='html'>Vous avez besoin d'un diaporama en flash vite fait bien fait pour votre site internet? &lt;a href="http://www.joomeo.fr"&gt;Joomeo&lt;/a&gt; est fait pour ça! Je l'ai découvert sur le site Ouest-France aujourd'hui et je trouve ce service vraiment pratique pour creer un diaporama en quelques clics.&lt;br /&gt;&lt;br /&gt;Voici un exemple :&lt;br /&gt;&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="showcase" height="300" width="450"&gt;&lt;br&gt; &lt;param name="allowfullscreen" value="true"&gt;&lt;embed type="application/x-shockwave-flash" name="showcase" src="http://joomeo.fr/showcase.swf?id=c9204dbd89cd26570efb76ee98012dce&amp;amp;ps=3&amp;amp;sc=1&amp;amp;fs=1&amp;amp;type=1" height="300" width="450"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-6408583971528613849?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/6408583971528613849/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/galerie-photo-sur-un-site-web.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6408583971528613849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/6408583971528613849'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/galerie-photo-sur-un-site-web.html' title='Galerie photo sur un site web'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-5675567562246494801</id><published>2009-02-02T19:08:00.003+01:00</published><updated>2009-02-02T19:20:12.886+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PC Linux'/><title type='text'>Virtualbox : le réseau et l'USB</title><content type='html'>J'ai été amené aujourd'hui à installé un système Debian sur une virtualbox Ubuntu. Probleme : J'avais bien le réseau pour aller sur le net, mais impossible de me connecter à cette debian depuis le réseau. J'avais une ip en 10.xx.xx.xx au lieu du 192.168.1.xx servie par le DHCP. &lt;br /&gt;&lt;br /&gt;Pour que ca fonctionne et que j'obtienne une adresse du DHCP j'ai dû utiliser ce script &lt;a href="http://www.taltan.fr/post/2008/03/24/VirtualBox-simplifer-la-gestion-du-reseau-avec-un-hote-Ubuntu"&gt;bridging_vb_tap&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;puis dans la configuration réseau de VM :&lt;br /&gt;&lt;br /&gt;cocher Activer l'adaptateur réseau&lt;br /&gt;choisir Adaptateur réseau hôte&lt;br /&gt;laisser l'adresse MAC par défaut&lt;br /&gt;cocher câble relié&lt;br /&gt;nom de l'interface : tap1 (ou tap0)&lt;br /&gt;laisser blanc application d'installation et de désinstallation&lt;br /&gt;&lt;br /&gt;Et voilà le reseau fonctionne pour ma debian virtualisée!&lt;br /&gt;&lt;br /&gt;Autre problème : J'avais un soucis pour faire fonctionner l'USB sur mon XP virtualisé sur cette meme Ubuntu. J'ai essayé plusieurs astuces avant de voir que l'USB est desactivé sur le virtualbox OSE livré avec ubuntu. Il faut telecharger la version non-free sur le site de l'editeur &lt;a href="http://www.virtualbox.org"&gt;www.virtualbox.org&lt;/a&gt; mais il y a ensuite 2/3 bidouilles à faire disponibles dans la &lt;a href="http://doc.ubuntu-fr.org/virtualbox"&gt;doc ubuntu en ligne &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-5675567562246494801?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/5675567562246494801/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/02/virtualbox-le-reseau-et-lusb.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/5675567562246494801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/5675567562246494801'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/02/virtualbox-le-reseau-et-lusb.html' title='Virtualbox : le réseau et l&apos;USB'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-3923017548948474646</id><published>2009-01-30T17:57:00.015+01:00</published><updated>2009-01-31T10:43:37.739+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PC Linux'/><title type='text'>Ubuntu 8.10 débarque au bureau</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.ubuntu.com/themes/ubuntu07/images/ubuntulogo.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 202px; height: 55px;" src="http://www.ubuntu.com/themes/ubuntu07/images/ubuntulogo.png" alt="" border="0" /&gt;&lt;/a&gt;Il y a un mois je me suis fait à titre personnel un nouveau PC Ubuntu 8.10 64bits. Pourquoi Ubuntu? Parce que Vista ne me conquis vraiment pas, surtout dans le mode 64 bits. Et pourquoi 64 bits? Pour pouvoir exploiter mes 4Go de RAM, le 32bits ne le supportant pas. De plus je trouve ça bête de faire tourner un système 32 bits sur un processeur 64 bits.&lt;br /&gt;&lt;br /&gt;Conquis par la vitesse d'exécution des différents logiciels (open-office, gimp) et la facilité d'utilisation, j'ai décidé de me faire le même pour le bureau. J'ai repris la même carte mere, une gigabyte supportant le dual-core à chipset nvidia avec GeForce 7100 intégrée ( qui répond au doux nom barbare de GA-73PVM-S2H, environ 50€ chez Rueducommerce). Ajoutez à cela un Dual Core E7300 (2x2.66Ghz), 4Go de RAM et 2x Western digital Caviar SE16 de 640Go en Raid 1 (Mirroring).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Premier piege : faire fonctionner le raid. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Après avoir configurer la CM comme il se doit pour faire fonctionner le RAID, je lance, confiant, mon CD Ubuntu 8.10 classique. Mais ubuntu voit les deux disques distinctement sans RAID. Je continue l'installation, je redémarre le système et toujours pas de RAID. J'essaie 2 ou 3 trucs trouvés sur Google qui me font perdre mon temps avant de découvrir qu'il fallait utiliser la version &lt;span style="font-style: italic;"&gt;Alternate &lt;/span&gt; lorsque l'on veut utiliser du RAID Soft. (A ce prix on a rarement du Raid Hard, la CM a besoin du système pour gérer le RAID)&lt;br /&gt;&lt;br /&gt;Je re-installe la version Alternate et là bizarre il n'aime pas toujours pas mon RAID. Reboot, démarrage du systeme, et comme précédemment je ne parviens toujours pas à exploiter le RAID. Je retourne le probleme dans tous les sens, re-tente plusieurs installation et rien n'y fait, meme quand on demande à l'installation d'écraser les données.&lt;br /&gt;&lt;br /&gt;Après  2H de bidouillages dans tous les sens je trouve enfin la solution : A partir de la version Live CD, avec fdisk il fallait re-partionner / formater les 2 disques. J'ai choisit l'option Sun/solaris car il n'y avait pas Linux puis relancer une installation de la version Alternate. Et là Ô miracle le raid mirroring fonctionne.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;L'export des paquets, c'est genial&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ou comment re-créer un environnement identique à mon PC perso (hors documents) en 3 lignes de commandes?&lt;br /&gt;&lt;br /&gt;Sur le PC HOME : #dpkg --get-selections &gt; mes_paquets &lt;span style="font-style: italic;"&gt;exporte la liste dans le fichier mes_paquets&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sur le PC Bureau :&lt;br /&gt;#ddpkg --set-selections  &lt; mes_paquets&lt;br /&gt;#apt-get upgrade&lt;br /&gt;&lt;br /&gt;Et tout tout sera importé : Programmes mais également les plugins (java, flash 64), les polices, les fichiers de langues (FF en Français avec polices microsoft) etc... Beaucoup de temps gagné.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Et ensuite?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Après le rapatriement de mes documents, la prochaine étape va être de me créer 2 virtuabox : Une sous debian "netinstall" qui va me servir de plateforme de test pour le prochain serveur de production, et une sous winXP, pour pouvoir tester mes développements sous IE...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-3923017548948474646?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/3923017548948474646/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/01/ubuntu-810-debarque-au-bureau.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3923017548948474646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/3923017548948474646'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/01/ubuntu-810-debarque-au-bureau.html' title='Ubuntu 8.10 débarque au bureau'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9149396046087736923.post-7787662869166400835</id><published>2009-01-30T12:51:00.001+01:00</published><updated>2009-01-31T10:10:56.271+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Temps libre'/><title type='text'>Ouverture officielle</title><content type='html'>Ouverture officielle d'un énième blog technologique, encore un! Mais ce blog n'aura pas vocation de vous parler du dernier petit logiciel Iphone sans aucune utilité ou du dernier service Web 2.0 dernier cri qui au final ne servira qu'à 200 personnes sur la planète.&lt;br /&gt;&lt;br /&gt;Ce blog essaiera de parler de la vrai vie d'un développeur informatique dans le monde du web, qui aime son métier mais ne se définit pas comme un geek assoiffé de code. J'aurais pour principal objectif d'écrire des articles sur ce que je fais lorsque je suis au bureau (développement PHP, administration Linux, référencement etc...) mais aussi de publier quelques astuces et trucs utiles que je trouve ici ou là. Le blog me servira ainsi de mémo, à vous et à moi! Quelques billets "temps libre" seront également écrit mais se limiteront au week-end dans la mesure du possible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9149396046087736923-7787662869166400835?l=lifolife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lifolife.blogspot.com/feeds/7787662869166400835/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://lifolife.blogspot.com/2009/01/ouverture-officielle.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7787662869166400835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9149396046087736923/posts/default/7787662869166400835'/><link rel='alternate' type='text/html' href='http://lifolife.blogspot.com/2009/01/ouverture-officielle.html' title='Ouverture officielle'/><author><name>Gaylord Hue</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
