title: OpenSUSE 13.1 openvpn
body: <p>So I need to setup a openvpn connection for my work to get access to services etc. I used to work with a OpenSuse Virtual Machine to get things done, but now i set up a vagrant environment (<a href="https://github.com/tcdev0/openSUSE-13.1-vagrant-ansible" rel="nofollow">https://github.com/tcdev0/openSUSE-13.1-vagrant-ansible</a>) which provisions a virtual machine (OpenSUSE 13.1) and connects via openvpn to work, which must be done over cli.</p>
  
  <p>I noticed a difference in using the Networkmanager applet for openvpn and manually starting the openvpn connection with </p>
  
  <pre><code>     openvpn client.conf 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>     systemctl start openvpn@client.service
  </code></pre>
  
  <p>Using the applet everything works fine, i can access alles services like checking out repositories from our gitlab server over ssh, but starting the openvpn connection manually i cant do that. </p>
  
  <p>I checked the routes which are added while connecting to vpn</p>
  
  <pre><code>     /sbin/route
  </code></pre>
  
  <p>Connection over Networkmanager applet</p>
  
  <pre><code>    default         10.128.10.13    0.0.0.0         UG    0      0        0 tun0
      10.0.0.0        10.128.10.13    255.0.0.0       UG    0      0        0 tun0
      10.128.10.1     10.128.10.13    255.255.255.255 UGH   0      0        0 tun0
      10.128.10.13    *               255.255.255.255 UH    0      0        0 tun0
      172.16.63.0     *               255.255.255.0   U     1      0        0 eno16777736
      server          172.16.63.2     255.255.255.255 UGH   0      0        0 eno16777736
  </code></pre>
  
  <p>Manual Connection</p>
  
  <pre><code>    default         10.128.10.13    128.0.0.0       UG    0      0        0 tun0
      default         172.16.63.2     0.0.0.0         UG    0      0        0 eno16777736
      10.0.0.0        10.128.10.13    255.0.0.0       UG    0      0        0 tun0
      10.128.10.1     10.128.10.13    255.255.255.255 UGH   0      0        0 tun0
      10.128.10.13    *               255.255.255.255 UH    0      0        0 tun0
      128.0.0.0       10.128.10.13    128.0.0.0       UG    0      0        0 tun0
      172.16.63.0     *               255.255.255.0   U     1      0        0 eno16777736
      server          172.16.63.2     255.255.255.255 UGH   0      0        0 eno16777736
  </code></pre>
  
  <p>I should say that i did not configure any routes in the applet, all is set to auto.</p>
  
  <p>So the routes differ from each other but why, what does the networkmanager do or what do i have to configure in my client.conf to get the same result?</p>
  
  <p>Thanks</p>
  
  <hr>
  
  <p><strong><em>UPDATE</em></strong></p>
  
  <p>Thanks for your reply. One thing i noticed while VPN is up:</p>
  
  <pre><code>    ifconfig ...
  
      eno167777 Link encap:Ethernet  Hardware Adresse 00:0C:29:91:B4:1E  
                inet Adresse: 172.16.63.131  Bcast:172.16.63.255  Maske:255.255.255.0
  </code></pre>
  
  <p>For the <strong>Network manager connection:</strong></p>
  
  <p>If I do </p>
  
  <pre><code>    nslookup gitlab
  </code></pre>
  
  <p>it shows me the correct address </p>
  
  <pre><code>   Name:    gitlab
     Address: 10.32.1.1
  </code></pre>
  
  <p>But for the <strong>manual connection:</strong></p>
  
  <pre><code>    nslookup gitlab
  </code></pre>
  
  <p>i got</p>
  
  <pre><code>    Server:     172.16.63.2
      Address:    172.16.63.2#53
  
      Non-authoritative answer:
      ...
  </code></pre>
  
  <p>It seems he is asking the wrong dns server or am i wrong?</p>