Using a Pi 3 as a Ethernet to WiFi router

A Raspberry Pi 3
  • The software is designed to run on a Raspberry Pi
  • LinTo is connected to OpenPaaS, our awesome collaborative platform so that it can do nice things like adding events to your calendar, run video-conferences or check your emails.
  • The Pi has a microphone and a speaker, so that LinTo can receive voice commands are is able to give you answers
  • LinTo is aware of its environment, and is connected to a number of smart devices to interact with lights, printers, computer screens or TVs, cameras, etc.

Setting up

$ sudo vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
$ sudo sysctl -p

Serving DHCP requests from the Pi

$ sudo ifconfig eth0 netmask broadcast
$ sudo apt-get install isc-dhcp-server
$ sudo service isc-dhcp-server stop
$ sudo vi /etc/default/isc-dhcp-server
authoritative; # I will be the single DHCP server on this network, trust me authoritatively# subnet and netmask matches what you've defined on the network interface
subnet netmask {
interface eth0; # Maybe optional, I was not sure :o

range; # Hands addresses in this range
option broadcast-address; # Matches the broadcast address of the network interface
option routers; # The IP address of the Pi
option domain-name "local"; # You can pick what you want here
option domain-name-servers x.x.x.x, y.y.y.y; # Use your company DNS servers, or your home router, or any other DNS server
default-lease-time 600;
max-lease-time 7200;
$ sudo service isc-dhcp-server start

Routing traffic through the wireless interface

$ sudo iptables -t nat -A POSTROUTING -s -o wlan0 -j MASQUERADE



We are Open Source Engineers, Hacking Awesome Stuff

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store