No network access through PPTP












3















I would like to be able to connect to the office network and access the internet through that network and the servers within the network. I use a server running Ubuntu Server (fully updated) behind a router which acts as pptp server.



It is setup like this:



Office



Router delivers IP's in the range of 192.168.1.1-253, the router has IP 192.168.1.254. The Ubuntu Server running PPTP server has IP 192.168.1.102 (static, delivered by the router).



Home



A network using the same range (192.168.1.1-255). I tried to connect through Ubuntu and MacOSX, both give the same result.



PPTP Settings



/etc/pptpd.conf

localip 192.168.1.102

remoteip 192.168.1.110-200



/etc/sysctl.conf

net.ipv4.ip_forward=1



/etc/rc.local

sysctl -w net.ipv4.ip_forward=1

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE



/etc/ppp/pptpd-options

ms-dns 8.8.8.8

ms-dns 8.8.4.4

(not really necessary I guess, but just to be sure)



Of course I forwarded port 1723 to 192.168.1.102 and opened the port on the ubuntu server (ufw allow pptp)



Current situation

I could connect to the VPN and also access the internet. According to www.whatismyip.com I do have the office IP, so that part works. I am able to ping 192.168.1.102, but not any of the other addresses within the network. I just don't know what to do anymore. I have followed all steps in many tutorials, but that doesn't change anything. One suggestion I also tried:

sudo iptables -A FORWARD -o ppp+ -i eth0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT

sudo iptables -A FORWARD -i ppp+ -o eth0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT



I don't know exactly what that does, but it didn't work anyways. Hopefully somebody can help me out here :). Thanks for reading so far :).










share|improve this question



























    3















    I would like to be able to connect to the office network and access the internet through that network and the servers within the network. I use a server running Ubuntu Server (fully updated) behind a router which acts as pptp server.



    It is setup like this:



    Office



    Router delivers IP's in the range of 192.168.1.1-253, the router has IP 192.168.1.254. The Ubuntu Server running PPTP server has IP 192.168.1.102 (static, delivered by the router).



    Home



    A network using the same range (192.168.1.1-255). I tried to connect through Ubuntu and MacOSX, both give the same result.



    PPTP Settings



    /etc/pptpd.conf

    localip 192.168.1.102

    remoteip 192.168.1.110-200



    /etc/sysctl.conf

    net.ipv4.ip_forward=1



    /etc/rc.local

    sysctl -w net.ipv4.ip_forward=1

    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE



    /etc/ppp/pptpd-options

    ms-dns 8.8.8.8

    ms-dns 8.8.4.4

    (not really necessary I guess, but just to be sure)



    Of course I forwarded port 1723 to 192.168.1.102 and opened the port on the ubuntu server (ufw allow pptp)



    Current situation

    I could connect to the VPN and also access the internet. According to www.whatismyip.com I do have the office IP, so that part works. I am able to ping 192.168.1.102, but not any of the other addresses within the network. I just don't know what to do anymore. I have followed all steps in many tutorials, but that doesn't change anything. One suggestion I also tried:

    sudo iptables -A FORWARD -o ppp+ -i eth0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT

    sudo iptables -A FORWARD -i ppp+ -o eth0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT



    I don't know exactly what that does, but it didn't work anyways. Hopefully somebody can help me out here :). Thanks for reading so far :).










    share|improve this question

























      3












      3








      3


      1






      I would like to be able to connect to the office network and access the internet through that network and the servers within the network. I use a server running Ubuntu Server (fully updated) behind a router which acts as pptp server.



      It is setup like this:



      Office



      Router delivers IP's in the range of 192.168.1.1-253, the router has IP 192.168.1.254. The Ubuntu Server running PPTP server has IP 192.168.1.102 (static, delivered by the router).



      Home



      A network using the same range (192.168.1.1-255). I tried to connect through Ubuntu and MacOSX, both give the same result.



      PPTP Settings



      /etc/pptpd.conf

      localip 192.168.1.102

      remoteip 192.168.1.110-200



      /etc/sysctl.conf

      net.ipv4.ip_forward=1



      /etc/rc.local

      sysctl -w net.ipv4.ip_forward=1

      iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE



      /etc/ppp/pptpd-options

      ms-dns 8.8.8.8

      ms-dns 8.8.4.4

      (not really necessary I guess, but just to be sure)



      Of course I forwarded port 1723 to 192.168.1.102 and opened the port on the ubuntu server (ufw allow pptp)



      Current situation

      I could connect to the VPN and also access the internet. According to www.whatismyip.com I do have the office IP, so that part works. I am able to ping 192.168.1.102, but not any of the other addresses within the network. I just don't know what to do anymore. I have followed all steps in many tutorials, but that doesn't change anything. One suggestion I also tried:

      sudo iptables -A FORWARD -o ppp+ -i eth0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT

      sudo iptables -A FORWARD -i ppp+ -o eth0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT



      I don't know exactly what that does, but it didn't work anyways. Hopefully somebody can help me out here :). Thanks for reading so far :).










      share|improve this question














      I would like to be able to connect to the office network and access the internet through that network and the servers within the network. I use a server running Ubuntu Server (fully updated) behind a router which acts as pptp server.



      It is setup like this:



      Office



      Router delivers IP's in the range of 192.168.1.1-253, the router has IP 192.168.1.254. The Ubuntu Server running PPTP server has IP 192.168.1.102 (static, delivered by the router).



      Home



      A network using the same range (192.168.1.1-255). I tried to connect through Ubuntu and MacOSX, both give the same result.



      PPTP Settings



      /etc/pptpd.conf

      localip 192.168.1.102

      remoteip 192.168.1.110-200



      /etc/sysctl.conf

      net.ipv4.ip_forward=1



      /etc/rc.local

      sysctl -w net.ipv4.ip_forward=1

      iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE



      /etc/ppp/pptpd-options

      ms-dns 8.8.8.8

      ms-dns 8.8.4.4

      (not really necessary I guess, but just to be sure)



      Of course I forwarded port 1723 to 192.168.1.102 and opened the port on the ubuntu server (ufw allow pptp)



      Current situation

      I could connect to the VPN and also access the internet. According to www.whatismyip.com I do have the office IP, so that part works. I am able to ping 192.168.1.102, but not any of the other addresses within the network. I just don't know what to do anymore. I have followed all steps in many tutorials, but that doesn't change anything. One suggestion I also tried:

      sudo iptables -A FORWARD -o ppp+ -i eth0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT

      sudo iptables -A FORWARD -i ppp+ -o eth0 -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT



      I don't know exactly what that does, but it didn't work anyways. Hopefully somebody can help me out here :). Thanks for reading so far :).







      vpn pptp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 11 '13 at 20:28









      FrankFrank

      1612




      1612






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Using the same address range for both networks is a great misconfiguration.



          I suggest:




          • Use 192.168.1.0/24 (that means 192.168.1.0 - 192.168.1.255) for your
            office.

          • Use 192.168.2.0/24 (or any other private network, but not 192.168.1.0/24) at home.

          • Check that the address range your PPTP-server manages (192.168.1.110-200) is NOT managed by the DHCP servers (if any) on your networks.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f240081%2fno-network-access-through-pptp%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














            Using the same address range for both networks is a great misconfiguration.



            I suggest:




            • Use 192.168.1.0/24 (that means 192.168.1.0 - 192.168.1.255) for your
              office.

            • Use 192.168.2.0/24 (or any other private network, but not 192.168.1.0/24) at home.

            • Check that the address range your PPTP-server manages (192.168.1.110-200) is NOT managed by the DHCP servers (if any) on your networks.






            share|improve this answer




























              0














              Using the same address range for both networks is a great misconfiguration.



              I suggest:




              • Use 192.168.1.0/24 (that means 192.168.1.0 - 192.168.1.255) for your
                office.

              • Use 192.168.2.0/24 (or any other private network, but not 192.168.1.0/24) at home.

              • Check that the address range your PPTP-server manages (192.168.1.110-200) is NOT managed by the DHCP servers (if any) on your networks.






              share|improve this answer


























                0












                0








                0







                Using the same address range for both networks is a great misconfiguration.



                I suggest:




                • Use 192.168.1.0/24 (that means 192.168.1.0 - 192.168.1.255) for your
                  office.

                • Use 192.168.2.0/24 (or any other private network, but not 192.168.1.0/24) at home.

                • Check that the address range your PPTP-server manages (192.168.1.110-200) is NOT managed by the DHCP servers (if any) on your networks.






                share|improve this answer













                Using the same address range for both networks is a great misconfiguration.



                I suggest:




                • Use 192.168.1.0/24 (that means 192.168.1.0 - 192.168.1.255) for your
                  office.

                • Use 192.168.2.0/24 (or any other private network, but not 192.168.1.0/24) at home.

                • Check that the address range your PPTP-server manages (192.168.1.110-200) is NOT managed by the DHCP servers (if any) on your networks.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 13 '13 at 13:57









                k-bielkek-bielke

                1314




                1314






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f240081%2fno-network-access-through-pptp%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 send String Array data to Server using php in android

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Is anime1.com a legal site for watching anime?