Routing entire network's internet traffic through a VPN ,












0















I want to route all traffic in my home network through a vpn. I currently have a sagemcom FAST 5364 router provided by my ISP. I also have two previous routers, which I don't use, from my ISP (Huawei hg633 router and an old D-Link router).



My initial thought was to flash firmware onto my router so that I can set up a VPN connection on my router, which none of them support.
I've checked the dd-wrt and open-wrt websites if they support any of the three
routers and they don't support.



My current internet speeds is 40Mbit/s down and 10Mbit/s up. I'm on a really tight budget, so I was thinking that I could get a supported cheap router that I can connect my LAN to. This router wouldn't need anything greater than 100mbps ethernet, wouldn't require wireless capabilities, and would only require minimal amount of ethernet ports.



All devices on my LAN will be connected to the Sagemcom router, since it's pretty decent with support for dual band wifi, wireless AC, and has 4 gigabit ethernet ports. This would mean fast data transfer between devices on the LAN. However if I wanted to access the internet, the sagemcom router would forward any requests to the cheap router. Are there any issues in this? Would anyone recommend any cheap routers that has support for dd-wrt or open-wrt.



I'm open for any alternatives. Also, I don't mind purchasing used hardware. Btw, I have a high end PC connected one meter to the router, so is it possible to route all traffic through there so it can handle the encryption and decryption process. Also have a spare raspberry pi 3B+ not being used in any project.



Edit: I haven't chosen a VPN provider yet.










share|improve this question























  • Of course DD-WRT supports VPN. The problem would be finding the right DD-WRT version for the router.

    – harrymc
    Feb 23 at 11:27













  • I looked on dd-wrt.com/support/router-database and none of the routers I own come up.

    – DavDaBomb21
    Feb 23 at 11:31











  • Sorry, I misread your question. You will need a better router, but as device recommendations are not allowed on this site, asking that will only get this post closed. You may start looking for a router that comes with DD-WRT or other firmware that supports it out of the box. This article might be useful.

    – harrymc
    Feb 23 at 11:45











  • Sorry if I was unclear, I'm also asking for alternative solutions to solve the issue, aside from getting a new router

    – DavDaBomb21
    Feb 23 at 11:54











  • There are cheap devices which might do the job, see Amazon list (I don't know any of them).

    – harrymc
    Feb 23 at 12:03
















0















I want to route all traffic in my home network through a vpn. I currently have a sagemcom FAST 5364 router provided by my ISP. I also have two previous routers, which I don't use, from my ISP (Huawei hg633 router and an old D-Link router).



My initial thought was to flash firmware onto my router so that I can set up a VPN connection on my router, which none of them support.
I've checked the dd-wrt and open-wrt websites if they support any of the three
routers and they don't support.



My current internet speeds is 40Mbit/s down and 10Mbit/s up. I'm on a really tight budget, so I was thinking that I could get a supported cheap router that I can connect my LAN to. This router wouldn't need anything greater than 100mbps ethernet, wouldn't require wireless capabilities, and would only require minimal amount of ethernet ports.



All devices on my LAN will be connected to the Sagemcom router, since it's pretty decent with support for dual band wifi, wireless AC, and has 4 gigabit ethernet ports. This would mean fast data transfer between devices on the LAN. However if I wanted to access the internet, the sagemcom router would forward any requests to the cheap router. Are there any issues in this? Would anyone recommend any cheap routers that has support for dd-wrt or open-wrt.



I'm open for any alternatives. Also, I don't mind purchasing used hardware. Btw, I have a high end PC connected one meter to the router, so is it possible to route all traffic through there so it can handle the encryption and decryption process. Also have a spare raspberry pi 3B+ not being used in any project.



Edit: I haven't chosen a VPN provider yet.










share|improve this question























  • Of course DD-WRT supports VPN. The problem would be finding the right DD-WRT version for the router.

    – harrymc
    Feb 23 at 11:27













  • I looked on dd-wrt.com/support/router-database and none of the routers I own come up.

    – DavDaBomb21
    Feb 23 at 11:31











  • Sorry, I misread your question. You will need a better router, but as device recommendations are not allowed on this site, asking that will only get this post closed. You may start looking for a router that comes with DD-WRT or other firmware that supports it out of the box. This article might be useful.

    – harrymc
    Feb 23 at 11:45











  • Sorry if I was unclear, I'm also asking for alternative solutions to solve the issue, aside from getting a new router

    – DavDaBomb21
    Feb 23 at 11:54











  • There are cheap devices which might do the job, see Amazon list (I don't know any of them).

    – harrymc
    Feb 23 at 12:03














0












0








0








I want to route all traffic in my home network through a vpn. I currently have a sagemcom FAST 5364 router provided by my ISP. I also have two previous routers, which I don't use, from my ISP (Huawei hg633 router and an old D-Link router).



My initial thought was to flash firmware onto my router so that I can set up a VPN connection on my router, which none of them support.
I've checked the dd-wrt and open-wrt websites if they support any of the three
routers and they don't support.



My current internet speeds is 40Mbit/s down and 10Mbit/s up. I'm on a really tight budget, so I was thinking that I could get a supported cheap router that I can connect my LAN to. This router wouldn't need anything greater than 100mbps ethernet, wouldn't require wireless capabilities, and would only require minimal amount of ethernet ports.



All devices on my LAN will be connected to the Sagemcom router, since it's pretty decent with support for dual band wifi, wireless AC, and has 4 gigabit ethernet ports. This would mean fast data transfer between devices on the LAN. However if I wanted to access the internet, the sagemcom router would forward any requests to the cheap router. Are there any issues in this? Would anyone recommend any cheap routers that has support for dd-wrt or open-wrt.



I'm open for any alternatives. Also, I don't mind purchasing used hardware. Btw, I have a high end PC connected one meter to the router, so is it possible to route all traffic through there so it can handle the encryption and decryption process. Also have a spare raspberry pi 3B+ not being used in any project.



Edit: I haven't chosen a VPN provider yet.










share|improve this question














I want to route all traffic in my home network through a vpn. I currently have a sagemcom FAST 5364 router provided by my ISP. I also have two previous routers, which I don't use, from my ISP (Huawei hg633 router and an old D-Link router).



My initial thought was to flash firmware onto my router so that I can set up a VPN connection on my router, which none of them support.
I've checked the dd-wrt and open-wrt websites if they support any of the three
routers and they don't support.



My current internet speeds is 40Mbit/s down and 10Mbit/s up. I'm on a really tight budget, so I was thinking that I could get a supported cheap router that I can connect my LAN to. This router wouldn't need anything greater than 100mbps ethernet, wouldn't require wireless capabilities, and would only require minimal amount of ethernet ports.



All devices on my LAN will be connected to the Sagemcom router, since it's pretty decent with support for dual band wifi, wireless AC, and has 4 gigabit ethernet ports. This would mean fast data transfer between devices on the LAN. However if I wanted to access the internet, the sagemcom router would forward any requests to the cheap router. Are there any issues in this? Would anyone recommend any cheap routers that has support for dd-wrt or open-wrt.



I'm open for any alternatives. Also, I don't mind purchasing used hardware. Btw, I have a high end PC connected one meter to the router, so is it possible to route all traffic through there so it can handle the encryption and decryption process. Also have a spare raspberry pi 3B+ not being used in any project.



Edit: I haven't chosen a VPN provider yet.







networking router vpn






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 23 at 11:24









DavDaBomb21DavDaBomb21

11




11













  • Of course DD-WRT supports VPN. The problem would be finding the right DD-WRT version for the router.

    – harrymc
    Feb 23 at 11:27













  • I looked on dd-wrt.com/support/router-database and none of the routers I own come up.

    – DavDaBomb21
    Feb 23 at 11:31











  • Sorry, I misread your question. You will need a better router, but as device recommendations are not allowed on this site, asking that will only get this post closed. You may start looking for a router that comes with DD-WRT or other firmware that supports it out of the box. This article might be useful.

    – harrymc
    Feb 23 at 11:45











  • Sorry if I was unclear, I'm also asking for alternative solutions to solve the issue, aside from getting a new router

    – DavDaBomb21
    Feb 23 at 11:54











  • There are cheap devices which might do the job, see Amazon list (I don't know any of them).

    – harrymc
    Feb 23 at 12:03



















  • Of course DD-WRT supports VPN. The problem would be finding the right DD-WRT version for the router.

    – harrymc
    Feb 23 at 11:27













  • I looked on dd-wrt.com/support/router-database and none of the routers I own come up.

    – DavDaBomb21
    Feb 23 at 11:31











  • Sorry, I misread your question. You will need a better router, but as device recommendations are not allowed on this site, asking that will only get this post closed. You may start looking for a router that comes with DD-WRT or other firmware that supports it out of the box. This article might be useful.

    – harrymc
    Feb 23 at 11:45











  • Sorry if I was unclear, I'm also asking for alternative solutions to solve the issue, aside from getting a new router

    – DavDaBomb21
    Feb 23 at 11:54











  • There are cheap devices which might do the job, see Amazon list (I don't know any of them).

    – harrymc
    Feb 23 at 12:03

















Of course DD-WRT supports VPN. The problem would be finding the right DD-WRT version for the router.

– harrymc
Feb 23 at 11:27







Of course DD-WRT supports VPN. The problem would be finding the right DD-WRT version for the router.

– harrymc
Feb 23 at 11:27















I looked on dd-wrt.com/support/router-database and none of the routers I own come up.

– DavDaBomb21
Feb 23 at 11:31





I looked on dd-wrt.com/support/router-database and none of the routers I own come up.

– DavDaBomb21
Feb 23 at 11:31













Sorry, I misread your question. You will need a better router, but as device recommendations are not allowed on this site, asking that will only get this post closed. You may start looking for a router that comes with DD-WRT or other firmware that supports it out of the box. This article might be useful.

– harrymc
Feb 23 at 11:45





Sorry, I misread your question. You will need a better router, but as device recommendations are not allowed on this site, asking that will only get this post closed. You may start looking for a router that comes with DD-WRT or other firmware that supports it out of the box. This article might be useful.

– harrymc
Feb 23 at 11:45













Sorry if I was unclear, I'm also asking for alternative solutions to solve the issue, aside from getting a new router

– DavDaBomb21
Feb 23 at 11:54





Sorry if I was unclear, I'm also asking for alternative solutions to solve the issue, aside from getting a new router

– DavDaBomb21
Feb 23 at 11:54













There are cheap devices which might do the job, see Amazon list (I don't know any of them).

– harrymc
Feb 23 at 12:03





There are cheap devices which might do the job, see Amazon list (I don't know any of them).

– harrymc
Feb 23 at 12:03










2 Answers
2






active

oldest

votes


















0














It is definately possible for a router running dd-wrt to support 40 megabits of traffic however due to CPU requirements for encryption its unlikely a low end router will gave the performance. You really need at least a mid-range router (I use ASUS RT-AC 68U touters which are arround the US$135 mark). I imagine a gigabit router with AC wifi support is likely to have the kind of power you need. While you can kerp this behind your Sageman router, any router running dd-wrt and capable of handling 40 megabits of traffic negates the need (and gas disadvantages like double NAT or complex routing) for a second router unless its needed to, for example, convert dsl to ethernet.



Alternatively if you can scrounge an old x86 computer (preferably with a CPU that supports AES) and use 2 network cards and quite a lot of (Linux) setup this.might work - I had a first gen I3 that did not raise a sweat. You dint need to much in the way of RAM or disk - but be aware that over time it may be more expensive then a mid range because it draws more power.



Alternatively you can indeed set up one pc to do dusl duty as a vpn router - I think this is messy and complex, and requires that pc to be on all the tome - which likely eats electricity.



Another option might be to set up individual VPNs from each PC.






share|improve this answer































    0














    I'll explain the big picture of how this is done. Once you figure out a plan, you can refer to the numerous guides on the Internet that tell you how to configure the device that you choose to serve as your VPN router. This is for a bare minimum configuration where you don't have VLAN support and you don't have additional network switches and/or wireless access points to use. You'll be creating two LANs on the same wire using separate IP address ranges.



    Find a computer that runs GNU/Linux, or a device with similar capabilities. You could even use Windows server or Windows with 3rd party software. If you want to install GNU/Linux on something, most anything should be fine for 50mbps total traffic. Whether you're trying to get the most out of old hardware, or you're tying to run a full speed 1000mbps connection through a VPN, it's hard to beat the efficiency of GNU/Linux. I did a test and a 1MB/sec (8Mb) download of random data consumed only about 20% of a Pentium III 1GHz CPU, using openvpn with compresssion and a static key. A second generation Pentium III (socket 370) uses only 25 to 30 Watts idle with the hard drive spun down. Second generation Pentium 4 Northwood (socket 478) computers are cheap and use about 35 to 45 Watts idle, and can give you at least 10MB/sec through openvpn. Avoid the 3rd generation Prescott Pentium 4 (anything with SSE3 or socket 775). They consume 90 Watts idle! Most everything newer has good idle power consumption. You can even use a laptop for this. You only need one Ethernet port. A Raspberry PI can be used for this, but all networking goes through a single USB2 port which can't quite handle a full duplex 100Mb NIC (200Mb total). Your setup will be close the limits for a Raspberry PI as it would be for the 1GHz Pentium III as well.



    Configure you current router and your VPN server for static IP. You can use an address range like 192.168.5.0/24. Disable the DHCP server in your router. Connect your VPN server directly to the router. It is the only thing that will access the Internet through your current router from this point on.



    Once Internet access through VPN is working on your new GNU/Linux router box, you can configure it as a home router, with packet forwarding and a DHCP server. Unless you have an unusual VPN that gives you multiple IP addresses to use, you'll want to enable NAT on your router. The DHCP server can be set to serve 192.168.1.0/24 or such with your new router set as the gateway. Your existing devices will continue to connect to your wireless router in the same way, and your wired connections can still plug in to the Ethernet switch ports in the back, but your new DHCP server will have taken over the network and replaced your existing home router with itself as the new default gateway for the LAN. Now everything goes though your new router box, and none of the other devices are even aware of the static IP connection between your old router and your new router. Technically they could be configured for static IP and bypass your new router box, connecting to the Internet in the same way that your new router does, but that wouldn't happen by accident.






    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%2f1408741%2frouting-entire-networks-internet-traffic-through-a-vpn%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














      It is definately possible for a router running dd-wrt to support 40 megabits of traffic however due to CPU requirements for encryption its unlikely a low end router will gave the performance. You really need at least a mid-range router (I use ASUS RT-AC 68U touters which are arround the US$135 mark). I imagine a gigabit router with AC wifi support is likely to have the kind of power you need. While you can kerp this behind your Sageman router, any router running dd-wrt and capable of handling 40 megabits of traffic negates the need (and gas disadvantages like double NAT or complex routing) for a second router unless its needed to, for example, convert dsl to ethernet.



      Alternatively if you can scrounge an old x86 computer (preferably with a CPU that supports AES) and use 2 network cards and quite a lot of (Linux) setup this.might work - I had a first gen I3 that did not raise a sweat. You dint need to much in the way of RAM or disk - but be aware that over time it may be more expensive then a mid range because it draws more power.



      Alternatively you can indeed set up one pc to do dusl duty as a vpn router - I think this is messy and complex, and requires that pc to be on all the tome - which likely eats electricity.



      Another option might be to set up individual VPNs from each PC.






      share|improve this answer




























        0














        It is definately possible for a router running dd-wrt to support 40 megabits of traffic however due to CPU requirements for encryption its unlikely a low end router will gave the performance. You really need at least a mid-range router (I use ASUS RT-AC 68U touters which are arround the US$135 mark). I imagine a gigabit router with AC wifi support is likely to have the kind of power you need. While you can kerp this behind your Sageman router, any router running dd-wrt and capable of handling 40 megabits of traffic negates the need (and gas disadvantages like double NAT or complex routing) for a second router unless its needed to, for example, convert dsl to ethernet.



        Alternatively if you can scrounge an old x86 computer (preferably with a CPU that supports AES) and use 2 network cards and quite a lot of (Linux) setup this.might work - I had a first gen I3 that did not raise a sweat. You dint need to much in the way of RAM or disk - but be aware that over time it may be more expensive then a mid range because it draws more power.



        Alternatively you can indeed set up one pc to do dusl duty as a vpn router - I think this is messy and complex, and requires that pc to be on all the tome - which likely eats electricity.



        Another option might be to set up individual VPNs from each PC.






        share|improve this answer


























          0












          0








          0







          It is definately possible for a router running dd-wrt to support 40 megabits of traffic however due to CPU requirements for encryption its unlikely a low end router will gave the performance. You really need at least a mid-range router (I use ASUS RT-AC 68U touters which are arround the US$135 mark). I imagine a gigabit router with AC wifi support is likely to have the kind of power you need. While you can kerp this behind your Sageman router, any router running dd-wrt and capable of handling 40 megabits of traffic negates the need (and gas disadvantages like double NAT or complex routing) for a second router unless its needed to, for example, convert dsl to ethernet.



          Alternatively if you can scrounge an old x86 computer (preferably with a CPU that supports AES) and use 2 network cards and quite a lot of (Linux) setup this.might work - I had a first gen I3 that did not raise a sweat. You dint need to much in the way of RAM or disk - but be aware that over time it may be more expensive then a mid range because it draws more power.



          Alternatively you can indeed set up one pc to do dusl duty as a vpn router - I think this is messy and complex, and requires that pc to be on all the tome - which likely eats electricity.



          Another option might be to set up individual VPNs from each PC.






          share|improve this answer













          It is definately possible for a router running dd-wrt to support 40 megabits of traffic however due to CPU requirements for encryption its unlikely a low end router will gave the performance. You really need at least a mid-range router (I use ASUS RT-AC 68U touters which are arround the US$135 mark). I imagine a gigabit router with AC wifi support is likely to have the kind of power you need. While you can kerp this behind your Sageman router, any router running dd-wrt and capable of handling 40 megabits of traffic negates the need (and gas disadvantages like double NAT or complex routing) for a second router unless its needed to, for example, convert dsl to ethernet.



          Alternatively if you can scrounge an old x86 computer (preferably with a CPU that supports AES) and use 2 network cards and quite a lot of (Linux) setup this.might work - I had a first gen I3 that did not raise a sweat. You dint need to much in the way of RAM or disk - but be aware that over time it may be more expensive then a mid range because it draws more power.



          Alternatively you can indeed set up one pc to do dusl duty as a vpn router - I think this is messy and complex, and requires that pc to be on all the tome - which likely eats electricity.



          Another option might be to set up individual VPNs from each PC.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 23 at 18:39









          davidgodavidgo

          44.5k75292




          44.5k75292

























              0














              I'll explain the big picture of how this is done. Once you figure out a plan, you can refer to the numerous guides on the Internet that tell you how to configure the device that you choose to serve as your VPN router. This is for a bare minimum configuration where you don't have VLAN support and you don't have additional network switches and/or wireless access points to use. You'll be creating two LANs on the same wire using separate IP address ranges.



              Find a computer that runs GNU/Linux, or a device with similar capabilities. You could even use Windows server or Windows with 3rd party software. If you want to install GNU/Linux on something, most anything should be fine for 50mbps total traffic. Whether you're trying to get the most out of old hardware, or you're tying to run a full speed 1000mbps connection through a VPN, it's hard to beat the efficiency of GNU/Linux. I did a test and a 1MB/sec (8Mb) download of random data consumed only about 20% of a Pentium III 1GHz CPU, using openvpn with compresssion and a static key. A second generation Pentium III (socket 370) uses only 25 to 30 Watts idle with the hard drive spun down. Second generation Pentium 4 Northwood (socket 478) computers are cheap and use about 35 to 45 Watts idle, and can give you at least 10MB/sec through openvpn. Avoid the 3rd generation Prescott Pentium 4 (anything with SSE3 or socket 775). They consume 90 Watts idle! Most everything newer has good idle power consumption. You can even use a laptop for this. You only need one Ethernet port. A Raspberry PI can be used for this, but all networking goes through a single USB2 port which can't quite handle a full duplex 100Mb NIC (200Mb total). Your setup will be close the limits for a Raspberry PI as it would be for the 1GHz Pentium III as well.



              Configure you current router and your VPN server for static IP. You can use an address range like 192.168.5.0/24. Disable the DHCP server in your router. Connect your VPN server directly to the router. It is the only thing that will access the Internet through your current router from this point on.



              Once Internet access through VPN is working on your new GNU/Linux router box, you can configure it as a home router, with packet forwarding and a DHCP server. Unless you have an unusual VPN that gives you multiple IP addresses to use, you'll want to enable NAT on your router. The DHCP server can be set to serve 192.168.1.0/24 or such with your new router set as the gateway. Your existing devices will continue to connect to your wireless router in the same way, and your wired connections can still plug in to the Ethernet switch ports in the back, but your new DHCP server will have taken over the network and replaced your existing home router with itself as the new default gateway for the LAN. Now everything goes though your new router box, and none of the other devices are even aware of the static IP connection between your old router and your new router. Technically they could be configured for static IP and bypass your new router box, connecting to the Internet in the same way that your new router does, but that wouldn't happen by accident.






              share|improve this answer






























                0














                I'll explain the big picture of how this is done. Once you figure out a plan, you can refer to the numerous guides on the Internet that tell you how to configure the device that you choose to serve as your VPN router. This is for a bare minimum configuration where you don't have VLAN support and you don't have additional network switches and/or wireless access points to use. You'll be creating two LANs on the same wire using separate IP address ranges.



                Find a computer that runs GNU/Linux, or a device with similar capabilities. You could even use Windows server or Windows with 3rd party software. If you want to install GNU/Linux on something, most anything should be fine for 50mbps total traffic. Whether you're trying to get the most out of old hardware, or you're tying to run a full speed 1000mbps connection through a VPN, it's hard to beat the efficiency of GNU/Linux. I did a test and a 1MB/sec (8Mb) download of random data consumed only about 20% of a Pentium III 1GHz CPU, using openvpn with compresssion and a static key. A second generation Pentium III (socket 370) uses only 25 to 30 Watts idle with the hard drive spun down. Second generation Pentium 4 Northwood (socket 478) computers are cheap and use about 35 to 45 Watts idle, and can give you at least 10MB/sec through openvpn. Avoid the 3rd generation Prescott Pentium 4 (anything with SSE3 or socket 775). They consume 90 Watts idle! Most everything newer has good idle power consumption. You can even use a laptop for this. You only need one Ethernet port. A Raspberry PI can be used for this, but all networking goes through a single USB2 port which can't quite handle a full duplex 100Mb NIC (200Mb total). Your setup will be close the limits for a Raspberry PI as it would be for the 1GHz Pentium III as well.



                Configure you current router and your VPN server for static IP. You can use an address range like 192.168.5.0/24. Disable the DHCP server in your router. Connect your VPN server directly to the router. It is the only thing that will access the Internet through your current router from this point on.



                Once Internet access through VPN is working on your new GNU/Linux router box, you can configure it as a home router, with packet forwarding and a DHCP server. Unless you have an unusual VPN that gives you multiple IP addresses to use, you'll want to enable NAT on your router. The DHCP server can be set to serve 192.168.1.0/24 or such with your new router set as the gateway. Your existing devices will continue to connect to your wireless router in the same way, and your wired connections can still plug in to the Ethernet switch ports in the back, but your new DHCP server will have taken over the network and replaced your existing home router with itself as the new default gateway for the LAN. Now everything goes though your new router box, and none of the other devices are even aware of the static IP connection between your old router and your new router. Technically they could be configured for static IP and bypass your new router box, connecting to the Internet in the same way that your new router does, but that wouldn't happen by accident.






                share|improve this answer




























                  0












                  0








                  0







                  I'll explain the big picture of how this is done. Once you figure out a plan, you can refer to the numerous guides on the Internet that tell you how to configure the device that you choose to serve as your VPN router. This is for a bare minimum configuration where you don't have VLAN support and you don't have additional network switches and/or wireless access points to use. You'll be creating two LANs on the same wire using separate IP address ranges.



                  Find a computer that runs GNU/Linux, or a device with similar capabilities. You could even use Windows server or Windows with 3rd party software. If you want to install GNU/Linux on something, most anything should be fine for 50mbps total traffic. Whether you're trying to get the most out of old hardware, or you're tying to run a full speed 1000mbps connection through a VPN, it's hard to beat the efficiency of GNU/Linux. I did a test and a 1MB/sec (8Mb) download of random data consumed only about 20% of a Pentium III 1GHz CPU, using openvpn with compresssion and a static key. A second generation Pentium III (socket 370) uses only 25 to 30 Watts idle with the hard drive spun down. Second generation Pentium 4 Northwood (socket 478) computers are cheap and use about 35 to 45 Watts idle, and can give you at least 10MB/sec through openvpn. Avoid the 3rd generation Prescott Pentium 4 (anything with SSE3 or socket 775). They consume 90 Watts idle! Most everything newer has good idle power consumption. You can even use a laptop for this. You only need one Ethernet port. A Raspberry PI can be used for this, but all networking goes through a single USB2 port which can't quite handle a full duplex 100Mb NIC (200Mb total). Your setup will be close the limits for a Raspberry PI as it would be for the 1GHz Pentium III as well.



                  Configure you current router and your VPN server for static IP. You can use an address range like 192.168.5.0/24. Disable the DHCP server in your router. Connect your VPN server directly to the router. It is the only thing that will access the Internet through your current router from this point on.



                  Once Internet access through VPN is working on your new GNU/Linux router box, you can configure it as a home router, with packet forwarding and a DHCP server. Unless you have an unusual VPN that gives you multiple IP addresses to use, you'll want to enable NAT on your router. The DHCP server can be set to serve 192.168.1.0/24 or such with your new router set as the gateway. Your existing devices will continue to connect to your wireless router in the same way, and your wired connections can still plug in to the Ethernet switch ports in the back, but your new DHCP server will have taken over the network and replaced your existing home router with itself as the new default gateway for the LAN. Now everything goes though your new router box, and none of the other devices are even aware of the static IP connection between your old router and your new router. Technically they could be configured for static IP and bypass your new router box, connecting to the Internet in the same way that your new router does, but that wouldn't happen by accident.






                  share|improve this answer















                  I'll explain the big picture of how this is done. Once you figure out a plan, you can refer to the numerous guides on the Internet that tell you how to configure the device that you choose to serve as your VPN router. This is for a bare minimum configuration where you don't have VLAN support and you don't have additional network switches and/or wireless access points to use. You'll be creating two LANs on the same wire using separate IP address ranges.



                  Find a computer that runs GNU/Linux, or a device with similar capabilities. You could even use Windows server or Windows with 3rd party software. If you want to install GNU/Linux on something, most anything should be fine for 50mbps total traffic. Whether you're trying to get the most out of old hardware, or you're tying to run a full speed 1000mbps connection through a VPN, it's hard to beat the efficiency of GNU/Linux. I did a test and a 1MB/sec (8Mb) download of random data consumed only about 20% of a Pentium III 1GHz CPU, using openvpn with compresssion and a static key. A second generation Pentium III (socket 370) uses only 25 to 30 Watts idle with the hard drive spun down. Second generation Pentium 4 Northwood (socket 478) computers are cheap and use about 35 to 45 Watts idle, and can give you at least 10MB/sec through openvpn. Avoid the 3rd generation Prescott Pentium 4 (anything with SSE3 or socket 775). They consume 90 Watts idle! Most everything newer has good idle power consumption. You can even use a laptop for this. You only need one Ethernet port. A Raspberry PI can be used for this, but all networking goes through a single USB2 port which can't quite handle a full duplex 100Mb NIC (200Mb total). Your setup will be close the limits for a Raspberry PI as it would be for the 1GHz Pentium III as well.



                  Configure you current router and your VPN server for static IP. You can use an address range like 192.168.5.0/24. Disable the DHCP server in your router. Connect your VPN server directly to the router. It is the only thing that will access the Internet through your current router from this point on.



                  Once Internet access through VPN is working on your new GNU/Linux router box, you can configure it as a home router, with packet forwarding and a DHCP server. Unless you have an unusual VPN that gives you multiple IP addresses to use, you'll want to enable NAT on your router. The DHCP server can be set to serve 192.168.1.0/24 or such with your new router set as the gateway. Your existing devices will continue to connect to your wireless router in the same way, and your wired connections can still plug in to the Ethernet switch ports in the back, but your new DHCP server will have taken over the network and replaced your existing home router with itself as the new default gateway for the LAN. Now everything goes though your new router box, and none of the other devices are even aware of the static IP connection between your old router and your new router. Technically they could be configured for static IP and bypass your new router box, connecting to the Internet in the same way that your new router does, but that wouldn't happen by accident.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Feb 23 at 19:25

























                  answered Feb 23 at 19:13









                  Alex CannonAlex Cannon

                  1575




                  1575






























                      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%2f1408741%2frouting-entire-networks-internet-traffic-through-a-vpn%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 do I know what Microsoft account the skydrive app is syncing to?

                      When does type information flow backwards in C++?

                      Grease: Live!