Low‑power Raspberry Pi VPN server blocks ISP snooping

You’ve probably heard that many ISPs log the traffic that passes through their infrastructure. Even if they don’t keep logs for long, the fact that a packet can be inspected at the ISP’s edge is unsettling. A simple VPN on a Raspberry Pi turns that edge into a tunnel that keeps your traffic private, while still letting you use the Pi as a low‑cost, always‑on server.

Below is a step‑by‑step guide that covers:

[Read More]

Stopping Swap Thrashing on a Raspberry Pi 4

Moving swap to USB to keep Python workloads responsive

Why the Pi keeps swapping

I was running a memory‑hungry Python data‑pipeline on a 4 GB Raspberry Pi 4 when the system started thrashing every few minutes. top was showing swap usage climbing to 90 % while my script was still busy. The Pi’s 4 GB RAM was the hard limit, and the default swap file on the SD card was the culprit.

The culprit

The SD card is the only storage medium on the Pi, but it’s also the slowest. When the kernel starts paging, it writes to the swap file on the card, creating I/O bottlenecks that stall the Python interpreter. The swap file is defined in /etc/fstab:

[Read More]