<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; OpenVpn & Debian]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=15136&amp;type=atom" />
	<updated>2011-07-18T07:03:03Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=15136</id>
		<entry>
			<title type="html"><![CDATA[Re: OpenVpn & Debian]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=195761#p195761" />
			<content type="html"><![CDATA[<p>спс пробну. Закройте тему &quot;Решено&quot;</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-07-18T07:03:03Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=195761#p195761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVpn & Debian]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=195737#p195737" />
			<content type="html"><![CDATA[<p>Давайте жить дружно! <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br />Я сказал что он СВЯЗАН. Не?<br />Это не часть пакета а команда.</p><p>Смотрим содержимое build-dh</p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"># cat build-dh<br />#!/bin/bash</p><p># Build Diffie-Hellman parameters for the server side<br /># of an SSL/TLS connection.</p><p>if [ -d $KEY_DIR ] &amp;&amp; [ $KEY_SIZE ]; then<br />&nbsp; &nbsp; $OPENSSL dhparam -out ${KEY_DIR}/dh${KEY_SIZE}.pem ${KEY_SIZE}<br />else<br />&nbsp; &nbsp; echo &#039;Please source the vars script first (i.e. &quot;source ./vars&quot;)&#039;<br />&nbsp; &nbsp; echo &#039;Make sure you have edited it to reflect your configuration.&#039;<br />fi<br /></div></p><p>Видим что скрипт просто не находит первую часть команды (путь (или имя которое уже в PATH) к OPENSSL) и пытается исполнить вместо openssl dhparam просто dhparam где и справедливо обламывается.</p><p>где он берет переменную? в файлике vars </p><p>его часть </p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">#<br /># This variable should point to<br /># the requested executables<br />#<br />export OPENSSL=&quot;openssl&quot;<br />export PKCS11TOOL=&quot;pkcs11-tool&quot;<br />export GREP=&quot;grep&quot;<br /></div></p><br /><p>Чтобы проверить делаем </p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">[root@centos 2.0]# echo $OPENSSL</div></p><p>Пусто! Тогда <br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />[root@centos 2.0]# cd /etc/openvpn/2.0<br />[root@centos 2.0]# source vars<br />NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/keys<br />[root@centos 2.0]# echo $OPENSSL<br />openssl<br /></div></p><p>О как ) теперь все на месте! (Так же провряем что именно у нас на месте <img src="https://linuxforum.ru/img/smilies/bx.gif" alt="bx" /> Может там у нас вовсе не то чтобы нам хотелось видеть, тогда меняем все в&nbsp; vars&nbsp; и снова делаем &quot;source vars&quot;)</p><p>далее чистим ключи если надо </p><p>./clean-all</p><br /><p>И генеряем все остальное.</p><br /><p>Если ВДРУГ не получится можно так же узнать порядок действий после установки? (ставили из пакета или сами собирали?) <br />Что вы делали до выполнения ./build-dh (операции с .vars и пр.)</p><br /><p>Прошу прощения что не смог отписать все это вчера т.к. выходил с коммуникатора <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[ufomen]]></name>
				<uri>https://linuxforum.ru/profile.php?id=4863</uri>
			</author>
			<updated>2011-07-18T04:53:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=195737#p195737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVpn & Debian]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=195713#p195713" />
			<content type="html"><![CDATA[<p>перед тем как слать в google установите данный пакет и посмотрите его содержимое.<br />Гуглить не учите. Хотите показаться умным лучше промолчите.</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-07-17T21:17:30Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=195713#p195713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVpn & Debian]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=195708#p195708" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>./build-dh<br />./build-dh: line 7: dhparam: команда не найдена</p><p>Что не до установил?</p></blockquote></div><p>Ну раз Вас на гугле забанили... <br />Погуглил за Вас и выяснил, что эта команда тесно связана с пакетом openSSL.</p>]]></content>
			<author>
				<name><![CDATA[ufomen]]></name>
				<uri>https://linuxforum.ru/profile.php?id=4863</uri>
			</author>
			<updated>2011-07-17T20:29:33Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=195708#p195708</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OpenVpn & Debian]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=195124#p195124" />
			<content type="html"><![CDATA[<p>./build-dh<br />./build-dh: line 7: dhparam: команда не найдена</p><p>Что не до установил?</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-07-15T09:31:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=195124#p195124</id>
		</entry>
</feed>
