Hey. Instead of another instruction on “how to make a router from Raspberry Pi”, we decided to make a special Raspbian assembly for the tasks of the home router. It is enough to deploy this assembly on the SD card, insert it into the RPi - and the router is ready.
The main features of such a solution are as with any home router. Distribution of addresses to devices within the network, port forwarding, DDNS and other usual things. There are some nice differences - support for Pandora and Netflix, increased performance when working through a VPN, and almost unlimited customization options.
Few details
At the heart of everything is Raspbian - a special Debian build for RPi. On it are pre-installed and configured those packages that provide the system as a router, that is, provide dhcp, dns, ddns, ppp, pptp and other services.
')
Since some providers use VPN to provide access to the network, the l2tp_ * modules are added separately and reassembled with nuclear support for xl2tpd. This allows you to reduce the load on the processor when working with a VPN tunnel at times (consider if you decide to build a router on the old hardware), which is very noticeable on such a small processor like the RPi.
Over this is written a set of scripts that perform the necessary actions to connect to the network, configure the routing table and monitor the connection status.
There is a simple web interface for managing the basic settings of the router and monitoring its state. Now through it, you can configure an Internet connection, select services through which you access Netflix and Pandora, configure port forwarding to computers within the network, and connect your DynDNS account.
In the current build, work is supported only with Corbina / Beeline networks in Moscow. If you want to add support for another provider or throw some new pens into the interface - welcome, the project is available on
github.com/alardus/candybox .
Project page lives at -
candyboxrouter.comThe image is available on Yandex.Disk -
yadi.sk/d/q5keVtXo7dtGo