Extending a Wireless Network with Linux (the simple way)
Categories
Tags
Recent articles
Ubuntu 16.10 LXC host on ZFS Root, with EFI and Time Machine
How to connect any serial device to the internet
The walls in my house, like most walls, are unfriendly to wireless. I was expecting this so I ran a wired network, and have a couple of computers dotted around the house plugged into the LAN. However I also want to be able to connect to wireless from anywhere in the house, seamlessly.
There are a lot of over-complex guides describing how to do this but most are missing some key points:
To that end here's what I did to turn a computer with two network connections (eth0
, a
wired connection, and wlan0
, a wireless one) into a "wireless extender" - packets received
on its wireless network are (essentially) re-broadcast on the wired network to the
appropriate device.
This is on Ubuntu but there's nothing distribution-specific here.
That's it. There's no DHCP, no DNS forwarding, no sysctl
settings, no
iptables
, no half-baked
WDS.
The two interfaces will simply forward packets between eachother as required - this
includes DHCP
broadcast requests from the any devices which connect to the wireless network created
on
wlan0
by hostapd
, so your IP address will remain the same as you move
around the network. I've confirmed this by switching off one of the routers, my
Mac didn't even blink - network connections were uninterrupted.
There's no limit that I'm aware of on the number of access points - so long as they all have the same SSID and Password (and, I suspect, encryption) then it should work, although putting them all on different wireless channels seems like a good idea.