Rapberry Pi Travel Router

Everyday Tech‘s step-by-step tutorial on transforming your Raspberry Pi into a versatile travel router using the RaspAP software! Whether you’re on the go or looking to create a portable Wi-Fi…

Everyday Tech‘s step-by-step tutorial on transforming your Raspberry Pi into a versatile travel router using the RaspAP software! Whether you’re on the go or looking to create a portable Wi-Fi hotspot, this tutorial will guide you through the process with ease. In this comprehensive video, I’ll cover everything you need to know, from setting up your Raspberry Pi to configuring RaspAP for optimal performance. No prior experience is necessary – I’ll walk you through each step, making it accessible for beginners and seasoned Raspberry Pi enthusiasts alike. This is an updated version of a previous video I made almost 2 years ago.. Unfortunately, that video is out of date and now we’re required to have an additional Wifi USB Dongle.

Visit RaspAP

This is a classic “networking lab” setup. By combining a wireless gateway (RaspAP) with a local web server, you’re essentially building a private, portable intranet.

Here is a blueprint to get your Pi-powered network off the ground.


1. The Hardware Architecture

In this setup, the Ethernet Switch acts as the backbone (the “backplane”) connecting your Pis, while the Hotspot Pi acts as the gatekeeper to the internet (via its Wi-Fi or a secondary WAN connection).

Components:


2. Setting Up Pi #1: The RaspAP Gateway

RaspAP makes it incredibly easy to turn a Pi into a router without manually wrestling with iptables.

  1. Install Raspberry Pi OS: Use the Lite version to save resources.
  2. Install RaspAP: Run the quick installer: curl -sL https://install.raspap.com | bash
  3. Configure Routing: * Access the web UI (usually at 10.3.14.1).
    • In the Hotspot settings, ensure your Wi-Fi is broadcasting.
    • In Networking, configure the eth0 interface to act as the LAN bridge. You want RaspAP to provide DHCP addresses to anything plugged into the switch.

3. Setting Up Pi #2: The Web Server

Since this Pi is plugged into the switch, it will automatically pull an IP address from the RaspAP Pi.

  1. Install a Web Stack: For a lightweight setup, use Nginx: sudo apt update && sudo apt install nginx -y
  2. Identify the IP: Run hostname -I to find its local address (e.g., 10.3.14.50).
  3. Deploy your site: Place your HTML/CSS files in /var/www/html.

4. How the Traffic Flows

When a device (like your phone) connects to the RaspAP Wi-Fi, it enters the network.

Connection PathDescription
Client → Pi #1Wireless connection via RaspAP Hotspot.
Pi #1 → SwitchTraffic travels over the Ethernet cable.
Switch → Pi #2The switch routes the request to the Web Server’s MAC address.
Accessing the SiteIn your phone’s browser, you just type http://10.3.14.50.

Export to Sheets


Pro-Tips for this Setup

Would you like me to walk you through the specific RaspAP settings to bridge the Wi-Fi internet to the Ethernet switch?