Skip to content

cypheroxide/Pi4-TravelRouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pi4-TravelRouter

πŸš€ Portable Raspberry Pi 4 Travel Router - A secure, dockerized travel router with built-in ad-blocking, VPN, and wireless AP capabilities

GitHub last commit License: GPL-3.0 Docker Raspberry Pi WireGuard

Overview

Transform a Raspberry Pi 4 into a secure travel router that creates your own private wireless network, protecting your devices from untrusted public Wi-Fi. Features include network-level ad-blocking, VPN integration, and web-based management interfaces.

Key Benefits:

  • πŸ”’ Security: Private wireless AP instead of direct public Wi-Fi connection
  • πŸ›‘οΈ Privacy: Pi-hole blocks ads and trackers for all connected devices
  • 🌐 VPN Integration: Support for Tailscale, ProtonVPN, and WireGuard
  • πŸ“± Easy Management: Web interfaces for all services
  • πŸ’Ύ Portable: All data stored on USB drive for complete portability

Key Features

  • πŸ“‘ Wireless Access Point: Dual Wi-Fi setup with secure WPA2 AP for your devices
  • πŸ›‘οΈ Network-Level Ad Blocking: Pi-hole DNS filtering with comprehensive blocklists
  • πŸ” VPN Integration: Support for Tailscale, ProtonVPN, and custom WireGuard
  • 🐳 Container Management: Docker services with Portainer web interface
  • πŸ’Ύ Portable Storage: All data stored on USB drive for complete portability
  • πŸ”§ Automated Management: Health monitoring, backups, and web interfaces

How It Works

The Pi4-TravelRouter uses a dual Wi-Fi interface design to provide secure internet access:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     β”‚    β”‚                         β”‚    β”‚                     β”‚
β”‚   Public Wi-Fi      │◄────  Raspberry Pi 4         │───►│  Your Devices       β”‚
β”‚   (Hotel/Cafe/etc)  β”‚    β”‚  Travel Router          β”‚    β”‚  (Phone/Laptop/etc) β”‚
β”‚                     β”‚    β”‚                         β”‚    β”‚                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β–²                            β”‚                             β–²
           β”‚                            β”‚                             β”‚
       wlan0 (STA)                  Pi4 Router                   wlan1 (AP)
    Built-in Wi-Fi                     Core                   USB Wi-Fi Adapter
  Connects to public                                         Creates private AP
      networks                                              (192.168.4.0/24)
                                       β”‚
                           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                           β”‚                       β”‚
                       Pi-hole                WireGuard
                     DNS Filter              VPN Tunnel
                   (Docker Container)      (Optional)

Network Flow:

  1. wlan0 (Built-in): Connects to public Wi-Fi as client
  2. wlan1 (USB Adapter): Creates secure access point for your devices
  3. Pi-hole: Filters all DNS requests to block ads and malware
  4. VPN (Optional): Routes traffic through Tailscale or ProtonVPN

Hardware Requirements

Essential Components:

  • Raspberry Pi 4 (4GB+ RAM)
  • Compatible USB Wi-Fi adapter (Panda PAU09 recommended)
  • USB 3.0 storage drive (64GB+)
  • MicroSD card (32GB+ Class 10)
  • Official Pi 4 power supply

πŸ“Š Complete Hardware Guide - Detailed requirements, compatibility lists, and purchasing recommendations

Getting Started

πŸ“‹ Prerequisites

Quick Checklist:

  • Raspberry Pi 4 (4GB+ RAM)
  • Compatible USB Wi-Fi adapter
  • USB 3.0 storage drive (64GB+)
  • MicroSD card (32GB+ Class 10)
  • Official Pi 4 power supply

πŸ“Š Complete Hardware Guide

πŸš€ Installation Options

Guided Setup (Recommended for Beginners)

Follow our step-by-step phase-based installation guides:

  1. System Preparation - Pi OS setup and storage
  2. Docker Setup - Container management
  3. Network Configuration - Access point and routing
  4. Service Installation - Pi-hole and VPN setup

Quick Reference (For Experienced Users)

Configuration Reference - All config files and templates

Estimated Time: 2-6 hours depending on experience level

Documentation

The Pi4-TravelRouter documentation is organized into focused, modular guides:

πŸ“š Setup & Installation

πŸ”§ Management & Maintenance

πŸ“‹ Service-Specific Guides

Quick Usage Guide

Web Interface Access

Once connected to the router's Wi-Fi network (RaspberryPi-Travel):

Service URL Purpose
Pi-hole http://192.168.4.1/admin DNS filtering management
Portainer http://192.168.4.1:9000 Docker container management
WG-Easy http://192.168.4.1:51821 WireGuard VPN management
SSH Access ssh pi@192.168.4.1 Command line access

Common Commands

# Connect to public Wi-Fi
sudo connect-wifi.sh "Network-Name" "password"

# Check system status
sudo systemctl status hostapd
sudo docker ps

# VPN management
sudo tailscale status
sudo wg show

πŸ“Š Complete Usage Guide

Additional Information

🌐 Network Details - Complete network configuration reference

πŸ’Ύ Backup & Maintenance - Automated backups and system updates

Troubleshooting

For comprehensive troubleshooting guides and solutions:

πŸ” Troubleshooting Guide - Complete issue resolution guide

Quick Diagnostics

# Check service status
sudo systemctl status hostapd
sudo docker ps

# Check network connectivity
ping 8.8.8.8
sudo iptables -t nat -L

# View logs
sudo journalctl -u hostapd -f
sudo docker logs pihole

Security

Essential Security Steps

⚠️ Before First Use:

  1. Change all default passwords (system, Wi-Fi, Pi-hole)
  2. Configure SSH key authentication
  3. Update all software packages
  4. Enable firewall with appropriate rules

πŸ”’ Complete Security Guide - Comprehensive security hardening and best practices

Credits & License

Open Source Components

Built with excellent open-source software:

License

MIT License - See LICENSE file for details

Contributing

Contributions welcome! Please open an issue for major changes.

  • Hardware compatibility testing
  • Documentation improvements
  • Performance optimizations

Support


πŸ‡¨πŸ‡­ Made with Swiss precision and β˜• caffeine by CypherOxide

About

The Ultimate Raspberry Pi 4 Travel Router + Docker, PiHole Adblocking, Tailscale integration, and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages