Matt Biddulph
Jan 2, 2003 · 1 min read

Here’s a little script I wrote that checks incoming wireless requests for a known MAC address. I’ve been using it on my Linux gateway/router/wireless-bridge.

If it doesn’t know you, it transparent-proxies all your outgoing port 80 traffic to the local webserver’s port 81, where you could put a redirect to a polite message or something.

In my case I’d just like to put some sort of guestbook page that logs your MAC and adds it automatically to the firewall rules after you leave a comment. I don’t mind sharing my bandwidth from time to time, but I’d love to know if someone benefitted from it.

I was impressed with the power of iptables, once I got my head round it. I found an ascii-art diagram that helped me understand the flow through the various tables and targets.

Hackdiary

A diary of hacks by Matt Biddulph

Matt Biddulph

Written by

Everything is distributed. Formerly of Eero, Thington, Nokia, Dopplr, BBC

Hackdiary

Hackdiary

A diary of hacks by Matt Biddulph

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade