Need help on pppd default route configuration

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm running pppd in a Ubuntu VM. When it's connected the ip route is like this



# ip route
default via 192.168.154.2 dev eth0 onlink
XX.XX.250.5 dev ppp0 proto kernel scope link src XX.XX.250.43
172.16.177.0/24 dev eth1 proto kernel scope link src 172.16.177.200
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.154.0/24 dev eth0 proto kernel scope link src 192.168.154.200


The eth0 is the default route out



# ip route get 8.8.8.8
8.8.8.8 via 192.168.154.2 dev eth0 src 192.168.154.200
cache


Now, I need to route everything through ppp0 (except for the remote PPP server), any ideas?



P.S I've tried the following and it just cut all internet connections,



route add default gw XX.XX.250.5






share|improve this question























    up vote
    0
    down vote

    favorite












    I'm running pppd in a Ubuntu VM. When it's connected the ip route is like this



    # ip route
    default via 192.168.154.2 dev eth0 onlink
    XX.XX.250.5 dev ppp0 proto kernel scope link src XX.XX.250.43
    172.16.177.0/24 dev eth1 proto kernel scope link src 172.16.177.200
    172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
    192.168.154.0/24 dev eth0 proto kernel scope link src 192.168.154.200


    The eth0 is the default route out



    # ip route get 8.8.8.8
    8.8.8.8 via 192.168.154.2 dev eth0 src 192.168.154.200
    cache


    Now, I need to route everything through ppp0 (except for the remote PPP server), any ideas?



    P.S I've tried the following and it just cut all internet connections,



    route add default gw XX.XX.250.5






    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm running pppd in a Ubuntu VM. When it's connected the ip route is like this



      # ip route
      default via 192.168.154.2 dev eth0 onlink
      XX.XX.250.5 dev ppp0 proto kernel scope link src XX.XX.250.43
      172.16.177.0/24 dev eth1 proto kernel scope link src 172.16.177.200
      172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
      192.168.154.0/24 dev eth0 proto kernel scope link src 192.168.154.200


      The eth0 is the default route out



      # ip route get 8.8.8.8
      8.8.8.8 via 192.168.154.2 dev eth0 src 192.168.154.200
      cache


      Now, I need to route everything through ppp0 (except for the remote PPP server), any ideas?



      P.S I've tried the following and it just cut all internet connections,



      route add default gw XX.XX.250.5






      share|improve this question











      I'm running pppd in a Ubuntu VM. When it's connected the ip route is like this



      # ip route
      default via 192.168.154.2 dev eth0 onlink
      XX.XX.250.5 dev ppp0 proto kernel scope link src XX.XX.250.43
      172.16.177.0/24 dev eth1 proto kernel scope link src 172.16.177.200
      172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
      192.168.154.0/24 dev eth0 proto kernel scope link src 192.168.154.200


      The eth0 is the default route out



      # ip route get 8.8.8.8
      8.8.8.8 via 192.168.154.2 dev eth0 src 192.168.154.200
      cache


      Now, I need to route everything through ppp0 (except for the remote PPP server), any ideas?



      P.S I've tried the following and it just cut all internet connections,



      route add default gw XX.XX.250.5








      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 6 at 11:32









      daisy

      27.3k45157289




      27.3k45157289




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          Problem resolved.



          Simply instruct sstpc to save server route by adding the --save-server-route parameter and let pppd replace the default route by enabling the replacedefaultroute option.






          share|improve this answer





















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f448169%2fneed-help-on-pppd-default-route-configuration%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            Problem resolved.



            Simply instruct sstpc to save server route by adding the --save-server-route parameter and let pppd replace the default route by enabling the replacedefaultroute option.






            share|improve this answer

























              up vote
              0
              down vote



              accepted










              Problem resolved.



              Simply instruct sstpc to save server route by adding the --save-server-route parameter and let pppd replace the default route by enabling the replacedefaultroute option.






              share|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                Problem resolved.



                Simply instruct sstpc to save server route by adding the --save-server-route parameter and let pppd replace the default route by enabling the replacedefaultroute option.






                share|improve this answer













                Problem resolved.



                Simply instruct sstpc to save server route by adding the --save-server-route parameter and let pppd replace the default route by enabling the replacedefaultroute option.







                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jun 20 at 7:15









                daisy

                27.3k45157289




                27.3k45157289






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448169%2fneed-help-on-pppd-default-route-configuration%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?