Configure server functioning as VPN so that client is able to use internet











up vote
1
down vote

favorite












I'm doing this tutorial on how to set up an OpenVPN Server on Ubuntu. I have followed all the steps and I have managed to connect to the VPN from my local computer using tunnelblick. Since I want to reroute all the client's traffic through the VPN, I used the following settings in the server.conf file on the OpenVPN server (explained in step 5 of the tutorial):



push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"


However when I use these settings, I'm not able to connect to the internet. When I change these settings to



;push "redirect-gateway def1 bypass-dhcp"
;push "dhcp-option DNS 208.67.222.222"
;push "dhcp-option DNS 208.67.220.220"


I am able to connect the internet after connecting to the VPN, but I'm not redirecting my traffic through the VPN (which is, again, what I want). I'm sure that traffic is not redirected through the VPN, since https://www.dnsleaktest.com/ gives the same ip address when I'm logged in to the VPN as when I'm not. The VPN's log in tunnelblick looks like this:



2018-11-21 12:58:46 Initialization Sequence Completed
2018-11-21 12:58:46 MANAGEMENT: >STATE:1542801526,CONNECTED,SUCCESS,10.8.0.6,my_server_ip,1194,,
2018-11-21 12:59:26 *Tunnelblick: After 30.0 seconds, gave up trying to fetch IP address information using the ipInfo host's name after connecting.
2018-11-21 13:00:01 *Tunnelblick: An error occured fetching IP address information using the ipInfo host's IP address after connecting


I don't think my issues have something to do with firewall, although I'm not sure. I'm using an amazon server to function as OpenVPN server and I have the following inbound settings:



enter image description here



and the following outbound settings:



enter image description here



Question: How do I configure the OpenVPN server correctly so that the client's traffic will be redirected through the VPN and the client is able to use the internet?










share|improve this question




























    up vote
    1
    down vote

    favorite












    I'm doing this tutorial on how to set up an OpenVPN Server on Ubuntu. I have followed all the steps and I have managed to connect to the VPN from my local computer using tunnelblick. Since I want to reroute all the client's traffic through the VPN, I used the following settings in the server.conf file on the OpenVPN server (explained in step 5 of the tutorial):



    push "redirect-gateway def1 bypass-dhcp"
    push "dhcp-option DNS 208.67.222.222"
    push "dhcp-option DNS 208.67.220.220"


    However when I use these settings, I'm not able to connect to the internet. When I change these settings to



    ;push "redirect-gateway def1 bypass-dhcp"
    ;push "dhcp-option DNS 208.67.222.222"
    ;push "dhcp-option DNS 208.67.220.220"


    I am able to connect the internet after connecting to the VPN, but I'm not redirecting my traffic through the VPN (which is, again, what I want). I'm sure that traffic is not redirected through the VPN, since https://www.dnsleaktest.com/ gives the same ip address when I'm logged in to the VPN as when I'm not. The VPN's log in tunnelblick looks like this:



    2018-11-21 12:58:46 Initialization Sequence Completed
    2018-11-21 12:58:46 MANAGEMENT: >STATE:1542801526,CONNECTED,SUCCESS,10.8.0.6,my_server_ip,1194,,
    2018-11-21 12:59:26 *Tunnelblick: After 30.0 seconds, gave up trying to fetch IP address information using the ipInfo host's name after connecting.
    2018-11-21 13:00:01 *Tunnelblick: An error occured fetching IP address information using the ipInfo host's IP address after connecting


    I don't think my issues have something to do with firewall, although I'm not sure. I'm using an amazon server to function as OpenVPN server and I have the following inbound settings:



    enter image description here



    and the following outbound settings:



    enter image description here



    Question: How do I configure the OpenVPN server correctly so that the client's traffic will be redirected through the VPN and the client is able to use the internet?










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm doing this tutorial on how to set up an OpenVPN Server on Ubuntu. I have followed all the steps and I have managed to connect to the VPN from my local computer using tunnelblick. Since I want to reroute all the client's traffic through the VPN, I used the following settings in the server.conf file on the OpenVPN server (explained in step 5 of the tutorial):



      push "redirect-gateway def1 bypass-dhcp"
      push "dhcp-option DNS 208.67.222.222"
      push "dhcp-option DNS 208.67.220.220"


      However when I use these settings, I'm not able to connect to the internet. When I change these settings to



      ;push "redirect-gateway def1 bypass-dhcp"
      ;push "dhcp-option DNS 208.67.222.222"
      ;push "dhcp-option DNS 208.67.220.220"


      I am able to connect the internet after connecting to the VPN, but I'm not redirecting my traffic through the VPN (which is, again, what I want). I'm sure that traffic is not redirected through the VPN, since https://www.dnsleaktest.com/ gives the same ip address when I'm logged in to the VPN as when I'm not. The VPN's log in tunnelblick looks like this:



      2018-11-21 12:58:46 Initialization Sequence Completed
      2018-11-21 12:58:46 MANAGEMENT: >STATE:1542801526,CONNECTED,SUCCESS,10.8.0.6,my_server_ip,1194,,
      2018-11-21 12:59:26 *Tunnelblick: After 30.0 seconds, gave up trying to fetch IP address information using the ipInfo host's name after connecting.
      2018-11-21 13:00:01 *Tunnelblick: An error occured fetching IP address information using the ipInfo host's IP address after connecting


      I don't think my issues have something to do with firewall, although I'm not sure. I'm using an amazon server to function as OpenVPN server and I have the following inbound settings:



      enter image description here



      and the following outbound settings:



      enter image description here



      Question: How do I configure the OpenVPN server correctly so that the client's traffic will be redirected through the VPN and the client is able to use the internet?










      share|improve this question















      I'm doing this tutorial on how to set up an OpenVPN Server on Ubuntu. I have followed all the steps and I have managed to connect to the VPN from my local computer using tunnelblick. Since I want to reroute all the client's traffic through the VPN, I used the following settings in the server.conf file on the OpenVPN server (explained in step 5 of the tutorial):



      push "redirect-gateway def1 bypass-dhcp"
      push "dhcp-option DNS 208.67.222.222"
      push "dhcp-option DNS 208.67.220.220"


      However when I use these settings, I'm not able to connect to the internet. When I change these settings to



      ;push "redirect-gateway def1 bypass-dhcp"
      ;push "dhcp-option DNS 208.67.222.222"
      ;push "dhcp-option DNS 208.67.220.220"


      I am able to connect the internet after connecting to the VPN, but I'm not redirecting my traffic through the VPN (which is, again, what I want). I'm sure that traffic is not redirected through the VPN, since https://www.dnsleaktest.com/ gives the same ip address when I'm logged in to the VPN as when I'm not. The VPN's log in tunnelblick looks like this:



      2018-11-21 12:58:46 Initialization Sequence Completed
      2018-11-21 12:58:46 MANAGEMENT: >STATE:1542801526,CONNECTED,SUCCESS,10.8.0.6,my_server_ip,1194,,
      2018-11-21 12:59:26 *Tunnelblick: After 30.0 seconds, gave up trying to fetch IP address information using the ipInfo host's name after connecting.
      2018-11-21 13:00:01 *Tunnelblick: An error occured fetching IP address information using the ipInfo host's IP address after connecting


      I don't think my issues have something to do with firewall, although I'm not sure. I'm using an amazon server to function as OpenVPN server and I have the following inbound settings:



      enter image description here



      and the following outbound settings:



      enter image description here



      Question: How do I configure the OpenVPN server correctly so that the client's traffic will be redirected through the VPN and the client is able to use the internet?







      ubuntu server openvpn






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 21 at 15:52

























      asked Nov 21 at 12:20









      Mr. President

      3949




      3949





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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',
          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%2fstackoverflow.com%2fquestions%2f53411909%2fconfigure-server-functioning-as-vpn-so-that-client-is-able-to-use-internet%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • 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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2fstackoverflow.com%2fquestions%2f53411909%2fconfigure-server-functioning-as-vpn-so-that-client-is-able-to-use-internet%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

          Berounka

          Sphinx de Gizeh

          Different font size/position of beamer's navigation symbols template's content depending on regular/plain...