Rewrite URL based off of IP on OpenWRT

Posted by Scott on Server Fault See other posts from Server Fault or by Scott
Published on 2012-06-08T11:16:54Z Indexed on 2012/06/09 10:42 UTC
Read the original article Hit count: 372

We are running OpenWRT on a WRT54GL. I have been looking for an answer to this, but I can't seem to figure out what to search for, if its possible, or what combination of programs to use.

I want to be able to redirect a HTTP request from a WiFi device based off of their MAC address. This should all be transparent to the device.

Basically we are trying to redirect any non-registered devices to a website to register the device (at this point, we would push a new config to the router that would allow this MAC address "full access"). Once a device is registered, it will be redirected to a transparent squid proxy server on another machine for caching/blocking certain sites.

I looked at tinyproxy -> popilo which redirects but I won't have the MAC address to know if its registered or not.

Any help (google suggestions, programs, anything!) would be very much appreciated!

© Server Fault or respective owner

Related posts about linux

Related posts about proxy