<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://marmits.com/w/index.php?action=history&amp;feed=atom&amp;title=WSL_config</id>
	<title>WSL config - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://marmits.com/w/index.php?action=history&amp;feed=atom&amp;title=WSL_config"/>
	<link rel="alternate" type="text/html" href="https://marmits.com/w/index.php?title=WSL_config&amp;action=history"/>
	<updated>2026-04-29T17:19:44Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://marmits.com/w/index.php?title=WSL_config&amp;diff=3715&amp;oldid=prev</id>
		<title>Geo le 8 janvier 2026 à 08:34</title>
		<link rel="alternate" type="text/html" href="https://marmits.com/w/index.php?title=WSL_config&amp;diff=3715&amp;oldid=prev"/>
		<updated>2026-01-08T08:34:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 8 janvier 2026 à 10:34&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Personnaliser le comportement global de WSL2 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Configuration ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/ins&gt;== Personnaliser le comportement global de WSL2 ==&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Le fichier de configuration de WSL est généré dans le répertoire utilisateur de windows :&amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pour le générer : - Dans Windows, Rechercher “WLS Settings” - Dans &amp;lt;code&amp;gt;Gestion de réseau&amp;lt;/code&amp;gt; =&amp;amp;gt; &amp;lt;code&amp;gt;mode réseau&amp;lt;/code&amp;gt; =&amp;amp;gt; séléctionner &amp;lt;code&amp;gt;Mirrored&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== ✔️ Sur windows ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== ✔️ Sur windows ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki2025-mar_:diff:1.41:old-3714:rev-3715:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Geo</name></author>
	</entry>
	<entry>
		<id>https://marmits.com/w/index.php?title=WSL_config&amp;diff=3714&amp;oldid=prev</id>
		<title>Geo : Page créée avec « == Personnaliser le comportement global de WSL2 ==  === ✔️ Sur windows ===  &lt;syntaxhighlight lang=&quot;PowerShell&quot; line copy&gt;C:\Users\u.user\.wslconfig&lt;/syntaxhighlight&gt;  &lt;pre&gt;[wsl2] memory=16GB processors=8 swap=4GB networkingMode=mirrored dnsTunneling=true autoProxy=true&lt;/pre&gt; &lt;code&gt;networkingMode=mirrored&lt;/code&gt;  * Ce mode permet à WSL2 de partager le même réseau que l’hôte Windows, y compris les adresses IP, les ports ouverts, etc. * Cela facilite l’a... »</title>
		<link rel="alternate" type="text/html" href="https://marmits.com/w/index.php?title=WSL_config&amp;diff=3714&amp;oldid=prev"/>
		<updated>2026-01-08T08:29:33Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « == Personnaliser le comportement global de WSL2 ==  === ✔️ Sur windows ===  &amp;lt;syntaxhighlight lang=&amp;quot;PowerShell&amp;quot; line copy&amp;gt;C:\Users\u.user\.wslconfig&amp;lt;/syntaxhighlight&amp;gt;  &amp;lt;pre&amp;gt;[wsl2] memory=16GB processors=8 swap=4GB networkingMode=mirrored dnsTunneling=true autoProxy=true&amp;lt;/pre&amp;gt; &amp;lt;code&amp;gt;networkingMode=mirrored&amp;lt;/code&amp;gt;  * Ce mode permet à WSL2 de partager le même réseau que l’hôte Windows, y compris les adresses IP, les ports ouverts, etc. * Cela facilite l’a... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Personnaliser le comportement global de WSL2 ==&lt;br /&gt;
&lt;br /&gt;
=== ✔️ Sur windows ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;PowerShell&amp;quot; line copy&amp;gt;C:\Users\u.user\.wslconfig&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[wsl2]&lt;br /&gt;
memory=16GB&lt;br /&gt;
processors=8&lt;br /&gt;
swap=4GB&lt;br /&gt;
networkingMode=mirrored&lt;br /&gt;
dnsTunneling=true&lt;br /&gt;
autoProxy=true&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;networkingMode=mirrored&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Ce mode permet à WSL2 de partager le même réseau que l’hôte Windows, y compris les adresses IP, les ports ouverts, etc.&lt;br /&gt;
* Cela facilite l’accès aux services WSL depuis Windows et inversement, sans avoir à gérer des IP séparées comme dans le mode “default” (où WSL2 a sa propre interface réseau virtuelle).&lt;br /&gt;
* Ce mode est utile pour les développeurs qui veulent que leurs services Linux soient accessibles comme s’ils tournaient directement sur Windows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dnsTunneling=true&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Active le tunneling DNS entre WSL et Windows.&lt;br /&gt;
* Cela permet à WSL d’utiliser le résolveur DNS de Windows, ce qui peut résoudre certains problèmes de résolution de noms dans des environnements d’entreprise ou avec des VPN.&lt;br /&gt;
* Utile si tu rencontres des soucis de DNS dans WSL2, notamment avec des domaines internes ou des configurations réseau complexes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;autoProxy=true&amp;lt;/code&amp;gt; - Permet à WSL de &amp;#039;&amp;#039;&amp;#039;reprendre automatiquement la configuration proxy de Windows&amp;#039;&amp;#039;&amp;#039;. - Très pratique dans les environnements d’entreprise où un proxy est requis pour accéder à Internet. - Cela évite d’avoir à configurer manuellement le proxy dans chaque distribution Linux.&lt;br /&gt;
&lt;br /&gt;
=== ✔️ Backup du hosts de la debian ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; line copy&amp;gt;cp /etc/hosts /etc/hosts.bkp&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ✔️ Lien symbolique ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; line copy&amp;gt;ln -s /mnt/c/Windows/System32/drivers/etc/hosts /etc/hosts&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ✔️ Stopper et re-démarrer proprement WSL2 ===&lt;br /&gt;
&lt;br /&gt;
Dans PowerShell&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;PowerShell&amp;quot; line copy&amp;gt;wsl --shutdown&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;PowerShell&amp;quot; line copy&amp;gt;wsl -d Debian&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Catégorie:WSL2]]&lt;/div&gt;</summary>
		<author><name>Geo</name></author>
	</entry>
</feed>