<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1191371&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Allocation IP via openvpn défaillante]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1191371</link>
		<description><![CDATA[Les sujets les plus récents dans Allocation IP via openvpn défaillante.]]></description>
		<lastBuildDate>Thu, 07 Feb 2013 13:20:58 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12496711#p12496711</link>
			<description><![CDATA[<p>Ça marche! :-D <br />Bon par contre j&#039;aurais du lire la doc au lieu de croire tout ce qui est dit sur ce page, car l&#039;utilisation du cdd-exclusive a carrément ruiné la connexion VPN de tous mes autres clients. Je dois les redémarrer à la main... Mais bon, ça me donne une méthode pour donner une IP fixe, et ça a l&#039;air de marcher! Merci bien! <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>PS: en fait pour être très précis, ça a carrément fait crasher les instances clientes openvpn qui tournaient et qui n&#039;avaient pas de fichier dans le dossier cdd. Le fichier pid est là mais le process ne tourne pas. :-/</p>]]></description>
			<author><![CDATA[dummy@example.com (Amarokk)]]></author>
			<pubDate>Thu, 07 Feb 2013 13:20:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12496711#p12496711</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495981#p12495981</link>
			<description><![CDATA[<p>Ok c&#039;est tes clients qui se retrouvent avec des IP aléatoires, j&#039;étais parti à l&#039;envers....<br />Tu utilises ipp.txt mais je viens de trouver un tuto (en français) qui se base sur un autre système d&#039;attribution d&#039;IP statique pour les clients.<br /><a href="http://15minutesoffame.be/nico/blog2/index.php?article21/configuration-openvpn-ip-statiques-et-redirection-de-ports">http://15minutesoffame.be/nico/blog2/in … n-de-ports</a><br />Je ne sais pas ce que ça vaut...</p>]]></description>
			<author><![CDATA[dummy@example.com (Maisondouf)]]></author>
			<pubDate>Thu, 07 Feb 2013 12:03:37 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495981#p12495981</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495711#p12495711</link>
			<description><![CDATA[<p>Par serveurs, tu parles des serveurs dont je parle dans mon message d&#039;avant? J&#039;ai utilisé le mot serveur mais cela reste des clients, hein <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> Et donc ils ont eux une configuration fixe et statique. Et quand je redémarre openvpn sur ces postes serveurs (clients openvpn), j&#039;ai ça:</p><div class="codebox"><pre><code>Thu Feb  7 12:25:04 2013 us=465248 SENT CONTROL [xxxx]: &#039;PUSH_REQUEST&#039; (status=1)
Thu Feb  7 12:25:04 2013 us=465988 PUSH: Received control message: &#039;PUSH_REPLY,dhcp-option DNS 192.168.1.5,ping 8,ping-restart 20,ifconfig 192.168.1.23 255.255.255.0&#039;
Thu Feb  7 12:25:04 2013 us=466075 OPTIONS IMPORT: timers and/or timeouts modified
Thu Feb  7 12:25:04 2013 us=466092 OPTIONS IMPORT: --ifconfig/up options modified
Thu Feb  7 12:25:04 2013 us=466160 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Feb  7 12:25:04 2013 us=466514 TUN/TAP device tap0 opened
Thu Feb  7 12:25:04 2013 us=466539 TUN/TAP TX queue length set to 100
Thu Feb  7 12:25:04 2013 us=466589 /etc/openvpn/bridge-start tap0 1500 1574 192.168.1.23 255.255.255.0 init
Thu Feb  7 12:25:04 2013 Note: Cannot ioctl TUNSETIFF tap0: Device or resource busy (errno=16)
Thu Feb  7 12:25:04 2013 Cannot ioctl TUNSETPERSIST(1) tap0: File descriptor in bad state (errno=77)
Thu Feb  7 12:25:04 2013 Exiting</code></pre></div><p>Ce serveur a une configuration statique configurée en 192.168.1.101, et il essaye tout de même de s&#039;allouer 192.168.1.23... Bien sûr, il n&#039;y arrive pas, car l&#039;interface est déjà settée en static. Mais le comportement est exactement le même que sur mon laptop client.</p>]]></description>
			<author><![CDATA[dummy@example.com (Amarokk)]]></author>
			<pubDate>Thu, 07 Feb 2013 11:29:51 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495711#p12495711</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495651#p12495651</link>
			<description><![CDATA[<p>Ton serveur se prend peut-être pour un client et il s&#039;auto-alloue une IP.<br />Pour tester, fait lui une config client avec son IP en statique et son hostname</p>]]></description>
			<author><![CDATA[dummy@example.com (Maisondouf)]]></author>
			<pubDate>Thu, 07 Feb 2013 11:22:56 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495651#p12495651</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495411#p12495411</link>
			<description><![CDATA[<p>Non, personne n&#039;avait fait de modification sur la configuration OpenVPN... Enfin je pense. Du coup là je suis un peu embêté car j&#039;ai des services internes qui se retrouvent aléatoirement inaccessibles dès que j&#039;allume mon poste. Concernant les serveurs, ils essayent eux aussi de chopper une IP aléatoire, mais vu que pour eux la conf est mise &quot;en dur&quot;, ils n&#039;y arrivent pas, fort heureusement. Si seulement j&#039;avais une manière de comprendre ce qu&#039;il se passe... :-/</p>]]></description>
			<author><![CDATA[dummy@example.com (Amarokk)]]></author>
			<pubDate>Thu, 07 Feb 2013 10:59:57 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495411#p12495411</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495211#p12495211</link>
			<description><![CDATA[<p>Donc il n&#039;y a pas de dhcp sur le réseau, mais c&#039;est lui qui s&#039;attribue cette IP arbitrairement sans tenir compte de ton fichier.<br />Il n&#039;y a pas eu de changement de syntaxe ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Maisondouf)]]></author>
			<pubDate>Thu, 07 Feb 2013 10:37:08 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495211#p12495211</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495021#p12495021</link>
			<description><![CDATA[<p>Alors j&#039;ai tenté un dhclient, et il ne trouve rien du tout...</p><div class="codebox"><pre><code>gui@GuiHome:~$ sudo dhclient -v tap0
(...)
Listening on LPF/tap0/8a:27:46:fb:a0:83
Sending on   LPF/tap0/8a:27:46:fb:a0:83
Sending on   Socket/fallback
DHCPDISCOVER on tap0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on tap0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on tap0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on tap0 to 255.255.255.255 port 67 interval 16
(...)</code></pre></div><p>Après, j&#039;ai renommé le binaire pour être sûr, et après un redémarrage d&#039;openvpn, je me retape encore une fois une adresse au pif (elle encore, déjà utilisée par quelqu&#039;un d&#039;autre... :-/ )</p><div class="codebox"><pre><code>Thu Feb  7 11:10:12 2013 [xxxxx] Peer Connection Initiated with [AF_INET]46.105.121.10:1194
Thu Feb  7 11:10:14 2013 SENT CONTROL [xxxxx]: &#039;PUSH_REQUEST&#039; (status=1)
Thu Feb  7 11:10:14 2013 PUSH: Received control message: &#039;PUSH_REPLY,dhcp-option DNS 192.168.1.5,ping 8,ping-restart 20,ifconfig 192.168.1.25 255.255.255.0&#039;</code></pre></div><p>Donc apparemment, ce n&#039;est pas ça. De plus, j&#039;imagine que le Push_reply est directement renvoyé par le serveur OpenVPN, et que c&#039;est donc lui qui décide de l&#039;IP à m&#039;envoyer! (J&#039;ai aussi essayé dhclient depuis le serveur, rien n&#039;a répondu non plus sur le réseau local). En tout cas je te remercie d&#039;accepter de me filer un coup de main :-)</p><p>J&#039;ai aussi essayé d&#039;accroitre la verbosité d&#039;OpenVPN pour essayer de comprendre d&#039;où il tenait cette IP, mais ça devient vite illisible et on peut plus rien tirer des logs ^^</p>]]></description>
			<author><![CDATA[dummy@example.com (Amarokk)]]></author>
			<pubDate>Thu, 07 Feb 2013 10:15:23 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12495021#p12495021</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12494871#p12494871</link>
			<description><![CDATA[<div class="quotebox"><cite>Amarokk a écrit&#160;:</cite><blockquote><div><p>il n&#039;y aucun serveur dhcp dans tout le réseau privé, du moins pas à ma connaissance</p></div></blockquote></div><p>C&#039;est là qu&#039;il faut que tu regardes, parce dhclient par lui même n&#039;est pas génant si il n&#039;y a personne qui lui répond.<br />De plus, si le problème est apparu brutalement, c&#039;est peut-être une explication.<br />Il y a eu un serveur DHCP installé quelque part.<br />Pour mettre en évidence le phénomène, tu peux temporairement renommer &quot;dhclient&quot; en autre chose.</p>]]></description>
			<author><![CDATA[dummy@example.com (Maisondouf)]]></author>
			<pubDate>Thu, 07 Feb 2013 10:00:46 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12494871#p12494871</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12493911#p12493911</link>
			<description><![CDATA[<p>Salut Maisondouf et merci pour ta réponse!</p><p>J&#039;avais bien vu le Push_Request mais alors j&#039;ai aucune idée d&#039;où il vient. Il se passe la même chose sur les serveurs de mon réseau, mais heureusement ils n&#039;ont pas la possibilité de changer d&#039;adresse via &quot;ifconfig&quot; seul, car sinon ça serait un beau bordel.<br />Et je sais pas qui active dhclient, car de toute façon il n&#039;y aucun serveur dhcp dans tout le réseau privé, du moins pas à ma connaissance. Comment puis-je m&#039;en assurer? Je vois pas d&#039;information sur qui fourni cette IP, alors j&#039;imagine que c&#039;est mon serveur openvpn... :-/ Mais dans ce cas là, on revient sur la question: pourquoi le fichier ipp.txt n&#039;est pas pris en compte? (je vois bien que mon nom de client vpn dans ce fichier est bien reconnu par OpenVPN, qui du coup devrait se référer à ce fichier)</p>]]></description>
			<author><![CDATA[dummy@example.com (Amarokk)]]></author>
			<pubDate>Thu, 07 Feb 2013 08:01:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12493911#p12493911</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12492391#p12492391</link>
			<description><![CDATA[<p>En gros il y a un PUSH_REPLY parce qu&#039;il y a un PUSH_REQUEST.</p><p>Qui c&#039;est qui active &quot;dhclient&quot; pour qu&#039;il réclame une IP ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Maisondouf)]]></author>
			<pubDate>Thu, 07 Feb 2013 00:26:47 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12492391#p12492391</guid>
		</item>
		<item>
			<title><![CDATA[Allocation IP via openvpn défaillante]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12483351#p12483351</link>
			<description><![CDATA[<p>Bonjour à tous,</p><p>J&#039;ai un réseau Openvpn avec une quinzaine de clients, dont mon laptop sous ubuntu. Sur le serveur, nous avons un fichier de type ipp.txt avec correspondance noms de domaine / IP. Cela a toujours marché jusqu&#039;ici, quand je redémarrais OpenVPN, celui-ci me créait bien l&#039;interface tap0 avec l&#039;IP 192.168.1.156 (celle renseignée dans le fichier ipp.txt). Mais depuis quelque jours, cela ne fonctionne plus, il me donne une autre IP, pour une raison que j&#039;ignore. Évidemment, il me prend une fois sur 2 une ip qui est déjà prise par un autre poste (en conf statique) et cela fous quelque peu la merde. :-D<br />Voici le début obtenu quand je redémarre OpenVPN:</p><div class="codebox"><pre><code>Wed Feb  6 12:36:29 2013 SENT CONTROL [xxx]: &#039;PUSH_REQUEST&#039; (status=1)
Wed Feb  6 12:36:29 2013 PUSH: Received control message: &#039;PUSH_REPLY,dhcp-option DNS 192.168.1.5,ping 8,ping-restart 20,ifconfig 192.168.1.24 255.255.255.0&#039;
Wed Feb  6 12:36:29 2013 OPTIONS IMPORT: timers and/or timeouts modified
Wed Feb  6 12:36:29 2013 OPTIONS IMPORT: --ifconfig/up options modified
Wed Feb  6 12:36:29 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Wed Feb  6 12:36:29 2013 TUN/TAP device tap0 opened
Wed Feb  6 12:36:29 2013 TUN/TAP TX queue length set to 100
Wed Feb  6 12:36:29 2013 do_ifconfig, tt-&gt;ipv6=0, tt-&gt;did_ifconfig_ipv6_setup=0
Wed Feb  6 12:36:29 2013 /sbin/ifconfig tap0 192.168.1.24 netmask 255.255.255.0 mtu 1500 broadcast 192.168.1.255</code></pre></div><p>Donc là on voit bien qu&#039;il vient de me filer l&#039;adresse 192.168.1.24. À chaque redémarrage, il me donne une IP différente.</p><p>Mon serveur a la configuration suivante dans sa conf (je paste que ce qui me semble utile à savoir):</p><div class="codebox"><pre><code>ifconfig-pool-persist ipp.txt
ifconfig-pool 192.168.1.1 192.168.1.254 255.255.255.0
#server-bridge 192.168.1.200 255.255.255.0 192.168.1.1 192.168.1.254
client-to-client

push &quot;dhcp-option DNS 192.168.1.5&quot;</code></pre></div><p>Et bien sûr le fichier ipp.txt:</p><div class="codebox"><pre><code>gfenollar.xxxxx.local,192.168.1.156</code></pre></div><p>Quelqu&#039;un pourrait-il m&#039;aiguiller sur la source de ce PUSH_REPLY qui m&#039;embête un peu? </p><p>Merci par avance!</p>]]></description>
			<author><![CDATA[dummy@example.com (Amarokk)]]></author>
			<pubDate>Wed, 06 Feb 2013 11:40:50 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12483351#p12483351</guid>
		</item>
	</channel>
</rss>
