All projects
DeliveredProduct and tools

Wi-Fi Voucher Portal

A captive portal with prepaid data vouchers, written from the network up

A hotspot system for internet cafés: devices that join must enter a voucher, each voucher has a data quota, and access is cut when it runs out. It comes with a Flask portal, an admin panel and a Windows control app.

My role
Sole engineer
Timeline
Aug 2026
Platforms
Windows, Linux
Network services built from scratch
6
Portal routes
17
Lines (~3.2k of code)
~4.9k

Engineering decisions

Windows would not share a WireGuard tunnel through its built-in hotspot, so the usual tools were not an option.

Own DHCP and DNS
A DHCP server and a captive DNS server send every new device to the portal.
Metering per device
scapy counts each device’s traffic against its voucher quota.
Enforcement at two layers
Windows Firewall or iptables rules, plus ARP-level cutoff for devices that ignore them.
Easy to operate
A one-click PowerShell launcher, a WPF control panel and CSV voucher export.

Network

  • Python
  • scapy
  • DHCP
  • DNS
  • iptables

Portal

  • Flask
  • SQLite

Desktop

  • C#
  • WPF
  • .NET 10

Scripts

  • PowerShell
  • Bash

Need something like this?

Tell me about the operation you want to organise and I will map it into a clear system before writing a line of code.

Let's talk