OpenVPN Server inside VM + VM VPN












0















How to setup OpenVPN Server inside VirtualboxVM running Debian on Debian Host?
At Guest System OpenVPN is running to tunnel all internet Traffic to another VPN-Server.



Now I want to setup an OpenVPN Server on that Guest System to get access on NFS running there. (NFS over VPN)



PS: Which Cipher to prefer to get best performance on Raspberry Pi VPN Client?



--
Initial OpenVPN Server Setup is up, and I can connect to VPN but no Traffic forwarded and no ICMP Pings.
Ipv4 Forward in sysctl is enabled.



On Client Side Error:



Tue Jan  8 16:08:38 2019 /sbin/ip route add *SERVERIP*/32 via 192.168.188.1
RTNETLINK answers: File exists
Tue Jan 8 16:08:38 2019 ERROR: Linux route add command failed: external program exited with error status: 2
Tue Jan 8 16:08:38 2019 /sbin/ip route add 0.0.0.0/1 via 10.8.0.5
Tue Jan 8 16:08:38 2019 /sbin/ip route add 128.0.0.0/1 via 10.8.0.5
Tue Jan 8 16:08:38 2019 /sbin/ip route add 10.8.0.1/32 via 10.8.0.5


After Disconnect:



^CTue Jan  8 16:09:16 2019 event_wait : Interrupted system call (code=4)
Tue Jan 8 16:09:16 2019 /sbin/ip route del 10.8.0.1/32
RTNETLINK answers: Operation not permitted
Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
Tue Jan 8 16:09:16 2019 /sbin/ip route del *SERVERIP*/32
RTNETLINK answers: Operation not permitted
Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
Tue Jan 8 16:09:16 2019 /sbin/ip route del 0.0.0.0/1
RTNETLINK answers: Operation not permitted
Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
Tue Jan 8 16:09:16 2019 /sbin/ip route del 128.0.0.0/1
RTNETLINK answers: Operation not permitted
Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
Tue Jan 8 16:09:16 2019 Closing TUN/TAP interface
Tue Jan 8 16:09:16 2019 /sbin/ip addr del dev tun0 local 10.8.0.6 peer 10.8.0.5
RTNETLINK answers: Operation not permitted
Tue Jan 8 16:09:16 2019 Linux ip addr del failed: external program exited with error status: 2









share|improve this question





























    0















    How to setup OpenVPN Server inside VirtualboxVM running Debian on Debian Host?
    At Guest System OpenVPN is running to tunnel all internet Traffic to another VPN-Server.



    Now I want to setup an OpenVPN Server on that Guest System to get access on NFS running there. (NFS over VPN)



    PS: Which Cipher to prefer to get best performance on Raspberry Pi VPN Client?



    --
    Initial OpenVPN Server Setup is up, and I can connect to VPN but no Traffic forwarded and no ICMP Pings.
    Ipv4 Forward in sysctl is enabled.



    On Client Side Error:



    Tue Jan  8 16:08:38 2019 /sbin/ip route add *SERVERIP*/32 via 192.168.188.1
    RTNETLINK answers: File exists
    Tue Jan 8 16:08:38 2019 ERROR: Linux route add command failed: external program exited with error status: 2
    Tue Jan 8 16:08:38 2019 /sbin/ip route add 0.0.0.0/1 via 10.8.0.5
    Tue Jan 8 16:08:38 2019 /sbin/ip route add 128.0.0.0/1 via 10.8.0.5
    Tue Jan 8 16:08:38 2019 /sbin/ip route add 10.8.0.1/32 via 10.8.0.5


    After Disconnect:



    ^CTue Jan  8 16:09:16 2019 event_wait : Interrupted system call (code=4)
    Tue Jan 8 16:09:16 2019 /sbin/ip route del 10.8.0.1/32
    RTNETLINK answers: Operation not permitted
    Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
    Tue Jan 8 16:09:16 2019 /sbin/ip route del *SERVERIP*/32
    RTNETLINK answers: Operation not permitted
    Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
    Tue Jan 8 16:09:16 2019 /sbin/ip route del 0.0.0.0/1
    RTNETLINK answers: Operation not permitted
    Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
    Tue Jan 8 16:09:16 2019 /sbin/ip route del 128.0.0.0/1
    RTNETLINK answers: Operation not permitted
    Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
    Tue Jan 8 16:09:16 2019 Closing TUN/TAP interface
    Tue Jan 8 16:09:16 2019 /sbin/ip addr del dev tun0 local 10.8.0.6 peer 10.8.0.5
    RTNETLINK answers: Operation not permitted
    Tue Jan 8 16:09:16 2019 Linux ip addr del failed: external program exited with error status: 2









    share|improve this question



























      0












      0








      0








      How to setup OpenVPN Server inside VirtualboxVM running Debian on Debian Host?
      At Guest System OpenVPN is running to tunnel all internet Traffic to another VPN-Server.



      Now I want to setup an OpenVPN Server on that Guest System to get access on NFS running there. (NFS over VPN)



      PS: Which Cipher to prefer to get best performance on Raspberry Pi VPN Client?



      --
      Initial OpenVPN Server Setup is up, and I can connect to VPN but no Traffic forwarded and no ICMP Pings.
      Ipv4 Forward in sysctl is enabled.



      On Client Side Error:



      Tue Jan  8 16:08:38 2019 /sbin/ip route add *SERVERIP*/32 via 192.168.188.1
      RTNETLINK answers: File exists
      Tue Jan 8 16:08:38 2019 ERROR: Linux route add command failed: external program exited with error status: 2
      Tue Jan 8 16:08:38 2019 /sbin/ip route add 0.0.0.0/1 via 10.8.0.5
      Tue Jan 8 16:08:38 2019 /sbin/ip route add 128.0.0.0/1 via 10.8.0.5
      Tue Jan 8 16:08:38 2019 /sbin/ip route add 10.8.0.1/32 via 10.8.0.5


      After Disconnect:



      ^CTue Jan  8 16:09:16 2019 event_wait : Interrupted system call (code=4)
      Tue Jan 8 16:09:16 2019 /sbin/ip route del 10.8.0.1/32
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
      Tue Jan 8 16:09:16 2019 /sbin/ip route del *SERVERIP*/32
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
      Tue Jan 8 16:09:16 2019 /sbin/ip route del 0.0.0.0/1
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
      Tue Jan 8 16:09:16 2019 /sbin/ip route del 128.0.0.0/1
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
      Tue Jan 8 16:09:16 2019 Closing TUN/TAP interface
      Tue Jan 8 16:09:16 2019 /sbin/ip addr del dev tun0 local 10.8.0.6 peer 10.8.0.5
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 Linux ip addr del failed: external program exited with error status: 2









      share|improve this question
















      How to setup OpenVPN Server inside VirtualboxVM running Debian on Debian Host?
      At Guest System OpenVPN is running to tunnel all internet Traffic to another VPN-Server.



      Now I want to setup an OpenVPN Server on that Guest System to get access on NFS running there. (NFS over VPN)



      PS: Which Cipher to prefer to get best performance on Raspberry Pi VPN Client?



      --
      Initial OpenVPN Server Setup is up, and I can connect to VPN but no Traffic forwarded and no ICMP Pings.
      Ipv4 Forward in sysctl is enabled.



      On Client Side Error:



      Tue Jan  8 16:08:38 2019 /sbin/ip route add *SERVERIP*/32 via 192.168.188.1
      RTNETLINK answers: File exists
      Tue Jan 8 16:08:38 2019 ERROR: Linux route add command failed: external program exited with error status: 2
      Tue Jan 8 16:08:38 2019 /sbin/ip route add 0.0.0.0/1 via 10.8.0.5
      Tue Jan 8 16:08:38 2019 /sbin/ip route add 128.0.0.0/1 via 10.8.0.5
      Tue Jan 8 16:08:38 2019 /sbin/ip route add 10.8.0.1/32 via 10.8.0.5


      After Disconnect:



      ^CTue Jan  8 16:09:16 2019 event_wait : Interrupted system call (code=4)
      Tue Jan 8 16:09:16 2019 /sbin/ip route del 10.8.0.1/32
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
      Tue Jan 8 16:09:16 2019 /sbin/ip route del *SERVERIP*/32
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
      Tue Jan 8 16:09:16 2019 /sbin/ip route del 0.0.0.0/1
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
      Tue Jan 8 16:09:16 2019 /sbin/ip route del 128.0.0.0/1
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 ERROR: Linux route delete command failed: external program exited with error status: 2
      Tue Jan 8 16:09:16 2019 Closing TUN/TAP interface
      Tue Jan 8 16:09:16 2019 /sbin/ip addr del dev tun0 local 10.8.0.6 peer 10.8.0.5
      RTNETLINK answers: Operation not permitted
      Tue Jan 8 16:09:16 2019 Linux ip addr del failed: external program exited with error status: 2






      debian virtualbox openvpn route ufw






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 8 at 16:22







      Deetze

















      asked Jan 8 at 15:31









      DeetzeDeetze

      115




      115






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f493257%2fopenvpn-server-inside-vm-vm-vpn%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f493257%2fopenvpn-server-inside-vm-vm-vpn%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Morgemoulin

          Scott Moir

          Souastre