News for hackers. Stuff that matters.
Re:OpenWrt 21.02.0 Released by EGreg on Saturday September 04, 2021 @10:05PM (#28421104)
I really wanted to have software that can be installed on some Linux computer that our customers would put on their network, and it would redirect DNS to our captive portal (web-hosted by us on the same machine or another machine on the local network) unless the MAC or IP address was whitelisted.

Why is this so hard? I don't think we need OpenWRT on a router, do we? I mean, can we just set the DNS on the router to use a local machine, and can I use Bind9 or DNSMasq? https://tech.surveypoint.com/posts/installing-a-local-dns-se...

Macs, for example, can add "compname.local" to DHCP using Bonjour. Can I somehow use Wide-Area Bonjour or Zeroconf or something, to accomplish this?

I am not a network expert, all I want is to have a computer join the local network and run a DNS server, tell the router to forward all DNS requests there, and our DNS server will respond with our captive portal for any domain, so we can "take attendance" and checkins via wifi, and after people connect once, every time they walk into the room, their cookie will announce them to the captive portal, we register their attendance and then let the DNS pass through to whatever other DNS server they had.

PS: I guess this wouldn't work if they manually set DNS servers to be the IP address OpenDNS or something like that, right? What is the correct approach to captive portals in that case?

PPS: Why are captive portals so SLOW on every iPhone I ever owned? It takes like a minute or three to come up. What is causing the delays?

There are no comments on this comment yet.