<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>19445</bug_id>
          
          <creation_ts>2009-04-02 12:42:32 +0400</creation_ts>
          <short_desc>Не позволяет поднять сервер openvpn в ряде случаев</short_desc>
          <delta_ts>2016-04-08 12:04:45 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>etcnet</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Farygin">rider</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>ldv</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88552</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-04-02 12:42:32 +0400</bug_when>
    <thetext>Запись в логах:
Apr  2 12:36:44 salto openvpn[1201]: Options error: --server and --secret cannot be used together (you must use SSL/TLS keys)
Apr  2 12:36:44 salto openvpn[1201]: Use --help for more information.

Конфиг:
port 1129
proto tcp
dev-type tap
server 10.11.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir /etc/net/ifaces/maltavpn/ccd/
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3


Предлагается расширить условие 
if egrep &apos;^(tls-client|tls-server|client)$&apos; &quot;$PROF_CONFFILE&quot; &gt;/dev/null; then

ключём server, ибо согласно man openvpn - ключ server раскрывается в tls-server</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88554</commentid>
    <comment_count>1</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2009-04-02 12:58:20 +0400</bug_when>
    <thetext>Выглядит полезным.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88555</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-04-02 13:21:55 +0400</bug_when>
    <thetext>Там есть ещё один нюанс - сервер поднимается только в случае наличия dh файла:
 - в конфиге это выглядит как dh /etc/net/ifaces/maltavpn/ovpndh

Видимо, надо --dh etc/net/ifaces/&lt;имя&gt;/ovpndh сделать умолчательным в случае наличия опции server или tls-server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156001</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2016-04-08 12:04:45 +0300</bug_when>
    <thetext>Всё работает</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>