Exercise 5-5: Mid course project – “Kali Pi” Access Point

Topic Progress:
Raspberry Pi Access point

If you don't have a Raspberry Pi 3, you should really get one. They are super cool and relatively inexpensive. In this exercise, you will configure a Raspberry Pi 3 to run as a Wireless Access Point, granting connected users access to the Internet. This exercise is great because you will install Kali to the Raspberry Pi, edit files, change file permissions, configure network interfaces, install and configure services, configure iptables rules and more. It's a great overview.

Here's what you'll need to do:

  1. Install Kali on the Raspberry Pi 3. You could use a custom image, but if you do, you might have more troubleshooting to do. If you're unsure, use the stock image, which this solution was written for.
  2. Implement WPA2 security on the AP.
  3. Configure eth0 as DHCP, and wlan0 as static.
  4. Configure the Raspberry Pi as a DHCP server for any wireless clients and assign a DHCP pool with 12-hour leases.
  5. Have the SSH server start up at boot time so you can SSH to the Raspberry Pi once it's booted.
  6. Forward all outbound traffic, including DNS, from wlan0 to eth0.
  7. Allow inbound established (stateful) connections from eth0 to wlan0.
  8. Hint: Although you have not learned about hostapd or dnsmasq, you will use them in this exercise.
  9. Partial cheat: Although this article was not written for Kali (and will not work as written on Kali), it is the inspiration for this exercise, and is worth review. Thanks to Phil Martin for the inspiration.