I need to setup an access point to only allow users through if they first accept an EULA. To make things slightly simpler, I'm looking into doing this with a unix machine that shares the connection from ethernet to people on wifi. What would be the best way to approach this ?
I was thinking at
- redirecting all new http connections to the EULA page and once the user clicks ACCEPT, adding ip+mac in a table and filtering everything else
- Redirecting with dnsmasq (though I have no idea how to make it stop redirecting once the user clicks accept)
Any advices ?