{"id":310,"date":"2009-09-04T23:02:07","date_gmt":"2009-09-04T21:02:07","guid":{"rendered":"http:\/\/www.netexpertise.eu\/fr\/?p=310"},"modified":"2021-10-16T07:46:33","modified_gmt":"2021-10-16T06:46:33","slug":"configurer-wpa-sur-linux-howto","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html","title":{"rendered":"Configurer WPA sur Linux Howto"},"content":{"rendered":"<div style=\"float:left; margin-right:15px; margin-top:0px;\">\n<script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- 200x200, Netexpertise --><br \/>\n<ins class=\"adsbygoogle\" style=\"display:inline-block;width:200px;height:200px\" data-ad-client=\"ca-pub-6495750100906580\" data-ad-slot=\"1946825373\"><\/ins><br \/>\n<script><br \/>\n(adsbygoogle = window.adsbygoogle || []).push({});<br \/>\n<\/script><\/div>\n<p>L&rsquo;encryption WPA n&rsquo;est pas tr\u00e8s compliqu\u00e9 \u00e0 mettre en oeuvre et a l&rsquo;avantage d&rsquo;\u00eatre beaucoup plus s\u00e9curis\u00e9 que le WEP en utilisqnt une cl\u00e9 forte.<br \/>\n&nbsp;<br \/>\nPour nous lancer, nous disposons d&rsquo;une interface wifi que l&rsquo;on peut afficher avec iwconfig (fourni dans les wireless tools):<\/p>\n<pre>[root@db ~]# iwconfig\nlo        no wireless extensions.\n\neth0      no wireless extensions.\n\nath0      IEEE 802.11g  ESSID:\"\"\n          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated\n          Bit Rate:0 kb\/s   Tx-Power:13 dBm   Sensitivity=1\/1\n          Retry:off   RTS thr:off   Fragment thr:off\n          Encryption key:off\n          Power Management:off\n          Link Quality=0\/70  Signal level=-95 dBm  Noise level=-95 dBm\n          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0\n          Tx excessive retries:0  Invalid misc:0   Missed beacon:0\n<\/pre>\n<p>&nbsp;<br \/>\nSi l&rsquo;interface n&rsquo;est pas visible, installer d&rsquo;abord les <a href=\"http:\/\/hostap.epitest.fi\/wpa_supplicant\/\">drivers<\/a>, ou v\u00e9rifier les logs pour s&rsquo;assurer que la carte a bien \u00e9t\u00e9 d\u00e9tect\u00e9e.<br \/>\n&nbsp;<\/p>\n<h3>Fichier de configuration de wpa_supplicant<\/h3>\n<p>Installer le package wpa_supplicant. C&rsquo;est la seule chose dont vous avez besoin et c&rsquo;est fourni dans la plupart des distributions Linux.<br \/>\nSi ce n&rsquo;est pas le cas, vous pouvez t\u00e9l\u00e9charger la derni\u00e8re version du code source depuis <a href=\"http:\/\/hostap.epitest.fi\/wpa_supplicant\/\">http:\/\/hostap.epitest.fi\/wpa_supplicant\/<\/a> et le compiler.<br \/>\n&nbsp;<br \/>\nUne fois install\u00e9, g\u00e9n\u00e9rer le passphrase<\/p>\n<pre>WPA_Linux# wpa_passphrase myssid mypassphrase\nnetwork={\n        ssid=\"myssid\"\n        #psk=\"mypassphrase\"\n        psk=c22c1e6febc7875af85d033bbf15f5ca836633bac8eb16693fd58bff66fcb66c\n}\n<\/pre>\n<p>&nbsp;<br \/>\nEditer \/etc\/wpa_supplicant\/wpa_supplicant.conf (Redhat\/Fedora) ou le cr\u00e9er (Debian\/Ubuntu) en ajoutant ces param\u00e8tres.<br \/>\nLa ligne comment\u00e9e #psk&#8230; peut \u00eatre supprim\u00e9e d\u00e8s que ca fonctionne pour plus de s\u00e9curit\u00e9.<br \/>\n&nbsp;<\/p>\n<h3>Association avec la borne wifi<\/h3>\n<p>Se connecter manuellement pour s&rsquo;assurer que tout va bien:<br \/>\n&nbsp;<\/p>\n<pre>WPA_linux# wpa_supplicant -iath0 -c \/etc\/wpa_supplicant\/wpa_supplicant.conf\nAssociated with 00:00:00:00:00:00\nCTRL-EVENT-DISCONNECTED - Disconnect event - remove keys\nCTRL-EVENT-SCAN-RESULTS\nTrying to associate with 00:a0:c5:ff:84:72 (SSID='myssid' freq=2412 MHz)\nAssociated with 00:a0:c5:ff:84:72\n<\/pre>\n<p>&nbsp;<br \/>\nA noter qu&rsquo;il faut sp\u00e9cifier le driver avec l&rsquo;option -D dans certain cas.<br \/>\n&nbsp;<\/p>\n<h3>Configurer les fichiers de d\u00e9marrage<\/h3>\n<p>Sur Redhat\/Fedora, configurer \/etc\/sysconfig\/network-scripts\/ifcfg-ath0 (remplacer ath0 avec le nom d&rsquo;interface ad\u00e9quate bien s\u00fbr) comme pour toute interface classique ainsi que \/etc\/sysconfig\/wpa_supplicant en l&rsquo;adaptant avec ses param\u00e8tres<\/p>\n<pre>INTERFACES=\"-iath0\"\nDRIVERS=\"-Dmadwifi\"\n<\/pre>\n<p>&nbsp;<br \/>\nPuis red\u00e9marrer le service:<\/p>\n<pre>\/etc\/init.d\/wpa_supplicant restart<\/pre>\n<p>&nbsp;<br \/>\nSur Debian\/Ubuntu, \u00e9diter \/etc\/network\/interfaces<\/p>\n<pre>auto ath0\n        iface ath0 inet dhcp\n        pre-up wpa_supplicant -iath0 -c\/etc\/wpa_supplicant\/wpa_supplicant.conf -B\n        post-down killall wpa_supplicant\n<\/pre>\n<p>&nbsp;<br \/>\nEt r\u00e9activer l&rsquo;interface wifi ou rebooter<\/p>\n<pre>ifdown ath0\nifup ath0\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>L&rsquo;encryption WPA n&rsquo;est pas tr\u00e8s compliqu\u00e9 \u00e0 mettre en oeuvre et a l&rsquo;avantage d&rsquo;\u00eatre beaucoup plus s\u00e9curis\u00e9 que le WEP en utilisqnt une cl\u00e9 forte. &nbsp; Pour nous lancer, nous disposons d&rsquo;une interface wifi que l&rsquo;on peut afficher avec iwconfig (fourni dans les wireless tools): [root@db ~]# iwconfig lo no wireless extensions. eth0 no wireless [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[10,31],"tags":[183,103,407,92,184,106],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Configurer WPA sur Linux Howto<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Configurer WPA sur Linux Howto\" \/>\n<meta property=\"og:description\" content=\"L&rsquo;encryption WPA n&rsquo;est pas tr\u00e8s compliqu\u00e9 \u00e0 mettre en oeuvre et a l&rsquo;avantage d&rsquo;\u00eatre beaucoup plus s\u00e9curis\u00e9 que le WEP en utilisqnt une cl\u00e9 forte. &nbsp; Pour nous lancer, nous disposons d&rsquo;une interface wifi que l&rsquo;on peut afficher avec iwconfig (fourni dans les wireless tools): [root@db ~]# iwconfig lo no wireless extensions. eth0 no wireless [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2009-09-04T21:02:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-16T06:46:33+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html\",\"url\":\"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html\",\"name\":\"Netexpertise - Configurer WPA sur Linux Howto\",\"isPartOf\":{\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/#website\"},\"datePublished\":\"2009-09-04T21:02:07+00:00\",\"dateModified\":\"2021-10-16T06:46:33+00:00\",\"author\":{\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/e398f0307e2b167f6b884c4953be2632\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"http:\/\/www.netexpertise.eu\/fr\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configurer WPA sur Linux Howto\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/#website\",\"url\":\"http:\/\/www.netexpertise.eu\/fr\/\",\"name\":\"Netexpertise\",\"description\":\"Syst\u00e8mes \/ R\u00e9seaux \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.netexpertise.eu\/fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/e398f0307e2b167f6b884c4953be2632\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"http:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Configurer WPA sur Linux Howto","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html","og_locale":"fr_FR","og_type":"article","og_title":"Netexpertise - Configurer WPA sur Linux Howto","og_description":"L&rsquo;encryption WPA n&rsquo;est pas tr\u00e8s compliqu\u00e9 \u00e0 mettre en oeuvre et a l&rsquo;avantage d&rsquo;\u00eatre beaucoup plus s\u00e9curis\u00e9 que le WEP en utilisqnt une cl\u00e9 forte. &nbsp; Pour nous lancer, nous disposons d&rsquo;une interface wifi que l&rsquo;on peut afficher avec iwconfig (fourni dans les wireless tools): [root@db ~]# iwconfig lo no wireless extensions. eth0 no wireless [&hellip;]","og_url":"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html","og_site_name":"Netexpertise","article_published_time":"2009-09-04T21:02:07+00:00","article_modified_time":"2021-10-16T06:46:33+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html","url":"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html","name":"Netexpertise - Configurer WPA sur Linux Howto","isPartOf":{"@id":"http:\/\/www.netexpertise.eu\/fr\/#website"},"datePublished":"2009-09-04T21:02:07+00:00","dateModified":"2021-10-16T06:46:33+00:00","author":{"@id":"http:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/e398f0307e2b167f6b884c4953be2632"},"breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/fr\/systeme\/linux\/configurer-wpa-sur-linux-howto.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"http:\/\/www.netexpertise.eu\/fr"},{"@type":"ListItem","position":2,"name":"Configurer WPA sur Linux Howto"}]},{"@type":"WebSite","@id":"http:\/\/www.netexpertise.eu\/fr\/#website","url":"http:\/\/www.netexpertise.eu\/fr\/","name":"Netexpertise","description":"Syst\u00e8mes \/ R\u00e9seaux \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.netexpertise.eu\/fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"http:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/e398f0307e2b167f6b884c4953be2632","name":"dave","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"http:\/\/www.netexpertise.eu\/fr\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/posts\/310"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/fr\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}