This question already has an answer here:
- Auto page load after wifi join 1 answer
I set up my iptables on my raspberry pi to redirect ALL traffic to localhost where my landing page is hosted, so that people on my AP can't access internet without logging in(correctly) first. On the back end there's a java servlet running where I possibly have to do all this. How can I make it so that when someone has a valid login, the iptable(NAT) rules get altered which grants them internet access?