Checking if VPN is working correctly












2















How to make sure, that all traffic (e.g. from web browser) is passing through VPN and no data is leaking through normal internet interface? Or how to check, what interface (VPN or other) is used by application? Is there any monitoring system tools, that could ensure me whether VPN is working correctly? I'm using OpenVPN client on Windows and Linux.










share|improve this question


















  • 1





    Wireshark is always useful in a situation like this.

    – Ramhound
    Apr 22 '14 at 13:45
















2















How to make sure, that all traffic (e.g. from web browser) is passing through VPN and no data is leaking through normal internet interface? Or how to check, what interface (VPN or other) is used by application? Is there any monitoring system tools, that could ensure me whether VPN is working correctly? I'm using OpenVPN client on Windows and Linux.










share|improve this question


















  • 1





    Wireshark is always useful in a situation like this.

    – Ramhound
    Apr 22 '14 at 13:45














2












2








2








How to make sure, that all traffic (e.g. from web browser) is passing through VPN and no data is leaking through normal internet interface? Or how to check, what interface (VPN or other) is used by application? Is there any monitoring system tools, that could ensure me whether VPN is working correctly? I'm using OpenVPN client on Windows and Linux.










share|improve this question














How to make sure, that all traffic (e.g. from web browser) is passing through VPN and no data is leaking through normal internet interface? Or how to check, what interface (VPN or other) is used by application? Is there any monitoring system tools, that could ensure me whether VPN is working correctly? I'm using OpenVPN client on Windows and Linux.







linux windows networking vpn openvpn






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 22 '14 at 12:46









NiegodziwyBeruNiegodziwyBeru

11115




11115








  • 1





    Wireshark is always useful in a situation like this.

    – Ramhound
    Apr 22 '14 at 13:45














  • 1





    Wireshark is always useful in a situation like this.

    – Ramhound
    Apr 22 '14 at 13:45








1




1





Wireshark is always useful in a situation like this.

– Ramhound
Apr 22 '14 at 13:45





Wireshark is always useful in a situation like this.

– Ramhound
Apr 22 '14 at 13:45










2 Answers
2






active

oldest

votes


















0














Basically if split tunneling is turned off, all traffic must flow over the vpn however try tracert command on both Windows and Linux and you should hopefully get a trace of the route that packets take to reach the destination then You'll be able to tell if it's passing through your VPN gateway.



e.g. tracert www.yahoo.com



You can also use an IP address instead of a DNS name.






share|improve this answer































    0














    First of all check your default gateway settings with route or ip route show command. If you want all ip packets from all applications use VPN tunnel your default gateway must be on the VPN server side (for most cases it's the VPN server's IP address).
    If your default gateway is the same before and after connecting to the VPN then you need to change it manually.



    If you have white IP address from your ISP on one of your network interfaces and you have a routing rule to your ISP network with network mask other then /32 then all your traffic for this particular network will pass through your network interface with a white address because connected routes has higher priority.






    share|improve this answer

























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      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: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      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%2fsuperuser.com%2fquestions%2f744584%2fchecking-if-vpn-is-working-correctly%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Basically if split tunneling is turned off, all traffic must flow over the vpn however try tracert command on both Windows and Linux and you should hopefully get a trace of the route that packets take to reach the destination then You'll be able to tell if it's passing through your VPN gateway.



      e.g. tracert www.yahoo.com



      You can also use an IP address instead of a DNS name.






      share|improve this answer




























        0














        Basically if split tunneling is turned off, all traffic must flow over the vpn however try tracert command on both Windows and Linux and you should hopefully get a trace of the route that packets take to reach the destination then You'll be able to tell if it's passing through your VPN gateway.



        e.g. tracert www.yahoo.com



        You can also use an IP address instead of a DNS name.






        share|improve this answer


























          0












          0








          0







          Basically if split tunneling is turned off, all traffic must flow over the vpn however try tracert command on both Windows and Linux and you should hopefully get a trace of the route that packets take to reach the destination then You'll be able to tell if it's passing through your VPN gateway.



          e.g. tracert www.yahoo.com



          You can also use an IP address instead of a DNS name.






          share|improve this answer













          Basically if split tunneling is turned off, all traffic must flow over the vpn however try tracert command on both Windows and Linux and you should hopefully get a trace of the route that packets take to reach the destination then You'll be able to tell if it's passing through your VPN gateway.



          e.g. tracert www.yahoo.com



          You can also use an IP address instead of a DNS name.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 23 '14 at 15:42









          Rose AbRose Ab

          23114




          23114

























              0














              First of all check your default gateway settings with route or ip route show command. If you want all ip packets from all applications use VPN tunnel your default gateway must be on the VPN server side (for most cases it's the VPN server's IP address).
              If your default gateway is the same before and after connecting to the VPN then you need to change it manually.



              If you have white IP address from your ISP on one of your network interfaces and you have a routing rule to your ISP network with network mask other then /32 then all your traffic for this particular network will pass through your network interface with a white address because connected routes has higher priority.






              share|improve this answer






























                0














                First of all check your default gateway settings with route or ip route show command. If you want all ip packets from all applications use VPN tunnel your default gateway must be on the VPN server side (for most cases it's the VPN server's IP address).
                If your default gateway is the same before and after connecting to the VPN then you need to change it manually.



                If you have white IP address from your ISP on one of your network interfaces and you have a routing rule to your ISP network with network mask other then /32 then all your traffic for this particular network will pass through your network interface with a white address because connected routes has higher priority.






                share|improve this answer




























                  0












                  0








                  0







                  First of all check your default gateway settings with route or ip route show command. If you want all ip packets from all applications use VPN tunnel your default gateway must be on the VPN server side (for most cases it's the VPN server's IP address).
                  If your default gateway is the same before and after connecting to the VPN then you need to change it manually.



                  If you have white IP address from your ISP on one of your network interfaces and you have a routing rule to your ISP network with network mask other then /32 then all your traffic for this particular network will pass through your network interface with a white address because connected routes has higher priority.






                  share|improve this answer















                  First of all check your default gateway settings with route or ip route show command. If you want all ip packets from all applications use VPN tunnel your default gateway must be on the VPN server side (for most cases it's the VPN server's IP address).
                  If your default gateway is the same before and after connecting to the VPN then you need to change it manually.



                  If you have white IP address from your ISP on one of your network interfaces and you have a routing rule to your ISP network with network mask other then /32 then all your traffic for this particular network will pass through your network interface with a white address because connected routes has higher priority.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 5 '14 at 14:51

























                  answered May 5 '14 at 14:42









                  AlexAndersanAlexAndersan

                  42139




                  42139






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • 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%2fsuperuser.com%2fquestions%2f744584%2fchecking-if-vpn-is-working-correctly%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

                      How to make a Squid Proxy server?

                      Is this a new Fibonacci Identity?

                      19世紀