xl2tpd redial doesn't work












2















/etc/xl2tpd/xl2tpd.conf:



redial = yes
redial timeout = 1
autodial = yes


Version of xl2tpd default, latest Ubuntu 14.04 ( Trusty ):



xl2tpd  1.3.6+dfsg-1 amd64  layer 2 tunneling protocol implementation


I'm always pinging some host like Google, default DNS - 8.8.8.8.



From time to time I'm losing the connection, ping is silent and xl2tpd doesn't reconnect.



Seems like xl2tpd doesn't know that the connection is broken.



Is there any option to keep an internet connection alive, to keep xl2tpd redial automatically?



Now, I use a raw and dirty bash script wrapper around ping and also service xl2tpd restart to redial xl2tpd.



Is there a more program (xl2tpd) friendly way?










share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    2















    /etc/xl2tpd/xl2tpd.conf:



    redial = yes
    redial timeout = 1
    autodial = yes


    Version of xl2tpd default, latest Ubuntu 14.04 ( Trusty ):



    xl2tpd  1.3.6+dfsg-1 amd64  layer 2 tunneling protocol implementation


    I'm always pinging some host like Google, default DNS - 8.8.8.8.



    From time to time I'm losing the connection, ping is silent and xl2tpd doesn't reconnect.



    Seems like xl2tpd doesn't know that the connection is broken.



    Is there any option to keep an internet connection alive, to keep xl2tpd redial automatically?



    Now, I use a raw and dirty bash script wrapper around ping and also service xl2tpd restart to redial xl2tpd.



    Is there a more program (xl2tpd) friendly way?










    share|improve this question
















    bumped to the homepage by Community 2 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      2












      2








      2








      /etc/xl2tpd/xl2tpd.conf:



      redial = yes
      redial timeout = 1
      autodial = yes


      Version of xl2tpd default, latest Ubuntu 14.04 ( Trusty ):



      xl2tpd  1.3.6+dfsg-1 amd64  layer 2 tunneling protocol implementation


      I'm always pinging some host like Google, default DNS - 8.8.8.8.



      From time to time I'm losing the connection, ping is silent and xl2tpd doesn't reconnect.



      Seems like xl2tpd doesn't know that the connection is broken.



      Is there any option to keep an internet connection alive, to keep xl2tpd redial automatically?



      Now, I use a raw and dirty bash script wrapper around ping and also service xl2tpd restart to redial xl2tpd.



      Is there a more program (xl2tpd) friendly way?










      share|improve this question
















      /etc/xl2tpd/xl2tpd.conf:



      redial = yes
      redial timeout = 1
      autodial = yes


      Version of xl2tpd default, latest Ubuntu 14.04 ( Trusty ):



      xl2tpd  1.3.6+dfsg-1 amd64  layer 2 tunneling protocol implementation


      I'm always pinging some host like Google, default DNS - 8.8.8.8.



      From time to time I'm losing the connection, ping is silent and xl2tpd doesn't reconnect.



      Seems like xl2tpd doesn't know that the connection is broken.



      Is there any option to keep an internet connection alive, to keep xl2tpd redial automatically?



      Now, I use a raw and dirty bash script wrapper around ping and also service xl2tpd restart to redial xl2tpd.



      Is there a more program (xl2tpd) friendly way?







      vpn xl2tpd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 5 '14 at 16:37









      polym

      6,69643158




      6,69643158










      asked Jul 4 '14 at 11:42









      unixlinuxuserunixlinuxuser

      33115




      33115





      bumped to the homepage by Community 2 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 2 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          A couple of things to try. I would set the max redial to a high number so that it will attempt to redial for more tries. Perhaps it's exhausting redial attempts and no longer trying. Also I'd set the redial timeout to something like 2.



          excerpt from the xl2tpd man page




          • redial - If set to yes, xl2tpd will attempts to redial if the call get disconected.

          • redial timeout - Wait X seconds before redial. The redial option must be set to yes to use this option.

          • max redial - Will give up redial tries after X attempts.


          Also you might want to take a look at this example script here in this Gist titled: vpn_dorm.sh. It might shed some light on alternatives.






          share|improve this answer
























          • Great. I'm on the way. Say, 7 days without hand re-connections, and your answer - is my.

            – unixlinuxuser
            Jul 4 '14 at 19:40











          • @unixlinuxuser - sorry didn't understand your comment.

            – slm
            Jul 4 '14 at 19:41











          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%2f140732%2fxl2tpd-redial-doesnt-work%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          A couple of things to try. I would set the max redial to a high number so that it will attempt to redial for more tries. Perhaps it's exhausting redial attempts and no longer trying. Also I'd set the redial timeout to something like 2.



          excerpt from the xl2tpd man page




          • redial - If set to yes, xl2tpd will attempts to redial if the call get disconected.

          • redial timeout - Wait X seconds before redial. The redial option must be set to yes to use this option.

          • max redial - Will give up redial tries after X attempts.


          Also you might want to take a look at this example script here in this Gist titled: vpn_dorm.sh. It might shed some light on alternatives.






          share|improve this answer
























          • Great. I'm on the way. Say, 7 days without hand re-connections, and your answer - is my.

            – unixlinuxuser
            Jul 4 '14 at 19:40











          • @unixlinuxuser - sorry didn't understand your comment.

            – slm
            Jul 4 '14 at 19:41
















          0














          A couple of things to try. I would set the max redial to a high number so that it will attempt to redial for more tries. Perhaps it's exhausting redial attempts and no longer trying. Also I'd set the redial timeout to something like 2.



          excerpt from the xl2tpd man page




          • redial - If set to yes, xl2tpd will attempts to redial if the call get disconected.

          • redial timeout - Wait X seconds before redial. The redial option must be set to yes to use this option.

          • max redial - Will give up redial tries after X attempts.


          Also you might want to take a look at this example script here in this Gist titled: vpn_dorm.sh. It might shed some light on alternatives.






          share|improve this answer
























          • Great. I'm on the way. Say, 7 days without hand re-connections, and your answer - is my.

            – unixlinuxuser
            Jul 4 '14 at 19:40











          • @unixlinuxuser - sorry didn't understand your comment.

            – slm
            Jul 4 '14 at 19:41














          0












          0








          0







          A couple of things to try. I would set the max redial to a high number so that it will attempt to redial for more tries. Perhaps it's exhausting redial attempts and no longer trying. Also I'd set the redial timeout to something like 2.



          excerpt from the xl2tpd man page




          • redial - If set to yes, xl2tpd will attempts to redial if the call get disconected.

          • redial timeout - Wait X seconds before redial. The redial option must be set to yes to use this option.

          • max redial - Will give up redial tries after X attempts.


          Also you might want to take a look at this example script here in this Gist titled: vpn_dorm.sh. It might shed some light on alternatives.






          share|improve this answer













          A couple of things to try. I would set the max redial to a high number so that it will attempt to redial for more tries. Perhaps it's exhausting redial attempts and no longer trying. Also I'd set the redial timeout to something like 2.



          excerpt from the xl2tpd man page




          • redial - If set to yes, xl2tpd will attempts to redial if the call get disconected.

          • redial timeout - Wait X seconds before redial. The redial option must be set to yes to use this option.

          • max redial - Will give up redial tries after X attempts.


          Also you might want to take a look at this example script here in this Gist titled: vpn_dorm.sh. It might shed some light on alternatives.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 4 '14 at 16:55









          slmslm

          251k69529685




          251k69529685













          • Great. I'm on the way. Say, 7 days without hand re-connections, and your answer - is my.

            – unixlinuxuser
            Jul 4 '14 at 19:40











          • @unixlinuxuser - sorry didn't understand your comment.

            – slm
            Jul 4 '14 at 19:41



















          • Great. I'm on the way. Say, 7 days without hand re-connections, and your answer - is my.

            – unixlinuxuser
            Jul 4 '14 at 19:40











          • @unixlinuxuser - sorry didn't understand your comment.

            – slm
            Jul 4 '14 at 19:41

















          Great. I'm on the way. Say, 7 days without hand re-connections, and your answer - is my.

          – unixlinuxuser
          Jul 4 '14 at 19:40





          Great. I'm on the way. Say, 7 days without hand re-connections, and your answer - is my.

          – unixlinuxuser
          Jul 4 '14 at 19:40













          @unixlinuxuser - sorry didn't understand your comment.

          – slm
          Jul 4 '14 at 19:41





          @unixlinuxuser - sorry didn't understand your comment.

          – slm
          Jul 4 '14 at 19:41


















          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%2f140732%2fxl2tpd-redial-doesnt-work%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

          Loup dans la culture

          How to solve the problem of ntp “Unable to contact time server” from KDE?

          ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux