{"id":1397,"date":"2024-11-05T13:56:04","date_gmt":"2024-11-05T12:56:04","guid":{"rendered":"https:\/\/artheodoc.fr\/?page_id=1397"},"modified":"2024-12-11T06:23:31","modified_gmt":"2024-12-11T05:23:31","slug":"vpn-wireguard","status":"publish","type":"page","link":"https:\/\/artheodoc.fr\/index.php\/vpn-wireguard\/","title":{"rendered":"VPN WireGuard"},"content":{"rendered":"\n<div class=\"wp-block-group has-pale-ocean-gradient-background has-background is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"107\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/11\/Logo_of_WireGuard.svg_.png\" alt=\"\" class=\"wp-image-1452\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/11\/Logo_of_WireGuard.svg_.png 600w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/11\/Logo_of_WireGuard.svg_-300x54.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><br>Page consacr\u00e9e \u00e0 l\u2019installation du serveur VPN WireGuard sous Alpine Linux.<\/p>\n\n\n\n<p><em>Un <strong>VPN<\/strong> (<strong>V<\/strong>irtual <strong>P<\/strong>rivate <strong>N<\/strong>etwork), pour quoi faire\u00a0? Il s\u2019agit ici d\u2019une solution pour \u00e9tablir un lien s\u00e9curis\u00e9 (tunnel) entre une machine et un r\u00e9seau, par exemple pour acc\u00e9der \u00e0 un serveur install\u00e9 derri\u00e8re sa box lorsqu\u2019on est en d\u00e9placement ou en vacances. Ce qui permet de se connecter \u00e0 distance \u00e0 son serveur domotique, \u00e0 un serveur de fichiers, \u00e0 une phototh\u00e8que, etc. Avec cette technique, on peut ouvrir les acc\u00e8s \u00e0 des personnes de confiance clairement identifi\u00e9es, amis ou famille. Sans avoir \u00e0 ouvrir de nombreux ports sur sa box, qui sont autant de risques d\u2019intrusion. Il suffira de param\u00e9trer plusieurs postes de travail avec un tunnel.<br>A r\u00e9aliser dans le cadre des ateliers de l&rsquo;association niortaise <a href=\"http:\/\/memoirevive79informatique.com\/\" data-type=\"link\" data-id=\"http:\/\/memoirevive79informatique.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">M\u00e9moire Vive<\/a> du<strong> lundi apr\u00e8s-midi, entre 14h et 18h<\/strong>.<\/em><\/p>\n\n\n\n<div class=\"wp-block-columns has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background-color:#faf2e2\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center has-large-font-size\">Serveur<\/p>\n\n\n\n<p>Installation d&rsquo;Alpine Linux :<\/p>\n\n\n\n<p><a href=\"https:\/\/artheodoc.fr\/index.php\/alpine-linux\/\" data-type=\"page\" data-id=\"1365\" target=\"_blank\" rel=\"noreferrer noopener\">Alpine Linux<\/a><\/p>\n\n\n\n<p>Installation du serveur VPN WireGuard sous Alpine Linux :<\/p>\n\n\n\n<p><a href=\"https:\/\/artheodoc.fr\/index.php\/installation-sous-alpine-linux-du-serveur-vpn-wireguard\/\" data-type=\"page\" data-id=\"1392\" target=\"_blank\" rel=\"noreferrer noopener\">Installation sous Alpine Linux du serveur VPN WireGuard<\/a><\/p>\n\n\n\n<p>Configurer le lancement automatique de WireGuard<\/p>\n\n\n\n<p><a href=\"https:\/\/artheodoc.fr\/index.php\/lancement-automatique-de-wireguard-au-demarrage-dun-serveur-sous-alpinelinux\/\" data-type=\"page\" data-id=\"1506\" target=\"_blank\" rel=\"noreferrer noopener\">Lancement automatique de WireGuard au d\u00e9marrage d\u2019un serveur sous AlpineLinux<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center has-large-font-size\">Clients<\/p>\n\n\n\n<p>Installation du client pour VPN WireGuard sous Linux Mint :<\/p>\n\n\n\n<p><a href=\"https:\/\/artheodoc.fr\/index.php\/installer-wireguard-vpn-client-sur-linux-mint\/\" data-type=\"page\" data-id=\"1466\" target=\"_blank\" rel=\"noreferrer noopener\">Installer WireGuard VPN Client sur Linux Mint<\/a><\/p>\n\n\n\n<p>Installation du client pour VPN WireGuard sous Windows 11 :<\/p>\n\n\n\n<p><a href=\"https:\/\/artheodoc.fr\/index.php\/installer-et-configurer-le-client-wireguard-sous-windows-11\/\" data-type=\"page\" data-id=\"1485\" target=\"_blank\" rel=\"noreferrer noopener\">Installer et configurer le client WireGuard sous Windows 11<\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-background is-layout-flow wp-block-column-is-layout-flow\" style=\"background-color:#d9ecf7\">\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-text-align-center has-large-font-size\">Cl\u00e9s priv\u00e9es et publiques<\/p>\n\n\n\n<p class=\"has-text-align-center\">       On doit g\u00e9n\u00e9rer une paire de cl\u00e9s (priv\u00e9e et publique) sur le serveur et le client.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dans le fichier de configuration du serveur, on trouve sa cl\u00e9 priv\u00e9e ainsi que la cl\u00e9 publique du client.<\/li>\n\n\n\n<li>Dans le fichier de configuration du client, on trouve sa cl\u00e9 priv\u00e9e ainsi que la cl\u00e9 publique du serveur.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-center\"><em>Si l\u2019on a plusieurs clients, chacun a une section [Peer] dans le fichier de configuration du serveur.<\/em><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<\/div>\n<\/div>\n\n\n\n<p class=\"has-background\" style=\"background-color:#d9ecf7\"><em>Si l\u2019on veut tester simultan\u00e9ment plusieurs installations de VPN, on utilise un port diff\u00e9rent 518**. La cl\u00e9 publique du serveur est bien s\u00fbr diff\u00e9rente ainsi que l\u2019adresse et le r\u00e9seau IP du VPN.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p class=\"has-large-font-size\">Conclusion<\/p>\n\n\n\n<p>J\u2019ai r\u00e9alis\u00e9 l\u2019installation du serveur WireGuard sur Alpine Linux dans <strong>une machine virtuelle<\/strong> sous <a href=\"https:\/\/artheodoc.fr\/index.php\/proxmox\/\" data-type=\"page\" data-id=\"120\" target=\"_blank\" rel=\"noreferrer noopener\">Proxmox<\/a>. Le paquet wireguard-virt recommand\u00e9 pour les machines virtuelles (surtout si vous configurez Wireguard dans un conteneur LXC) n\u2019\u00e9tait pas disponible, cependant tout a bien fonctionn\u00e9. Je n\u2019ai pas utilis\u00e9 la commande umask 077 que l\u2019on trouve dans des tutoriels traitant du sujet. <strong>Cela n\u2019a pas fonctionn\u00e9 dans un conteneur LXC sous Proxmox.<\/strong><\/p>\n\n\n\n<p>Dominique Renaudeau<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-background is-layout-flow wp-block-column-is-layout-flow\" style=\"background-color:#faf2e2\">\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-text-align-center has-large-font-size\">\u00c0 voir \u00e9galement<\/p>\n\n\n\n<p class=\"has-text-align-center has-ast-global-color-1-color has-text-color has-link-color has-large-font-size wp-elements-6bb04a35190833bd5e774c61d76c2755\">Domotique<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/artheodoc.fr\/index.php\/installation-et-configuration-de-wireguard-dans-home-assistant\/\" data-type=\"page\" data-id=\"1589\" target=\"_blank\" rel=\"noreferrer noopener\">Installation et configuration de WireGuard dans Home Assistant<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"188\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/11\/Pi_HA_WireGuard.png\" alt=\"\" class=\"wp-image-1637\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/11\/Pi_HA_WireGuard.png 600w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/11\/Pi_HA_WireGuard-300x94.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<\/div>\n<\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Page consacr\u00e9e \u00e0 l\u2019installation du serveur VPN WireGuard sous Alpine Linux. Un VPN (Virtual Private Network), pour quoi faire\u00a0? Il s\u2019agit ici d\u2019une solution pour \u00e9tablir un lien s\u00e9curis\u00e9 (tunnel) entre une machine et un r\u00e9seau, par exemple pour acc\u00e9der \u00e0 un serveur install\u00e9 derri\u00e8re sa box lorsqu\u2019on est en d\u00e9placement ou en vacances. Ce [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1397","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/1397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1397"}],"version-history":[{"count":33,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/1397\/revisions"}],"predecessor-version":[{"id":1766,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/1397\/revisions\/1766"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}