LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Simple way needed of resolving any name to the same address (https://www.linuxquestions.org/questions/linux-networking-3/simple-way-needed-of-resolving-any-name-to-the-same-address-931747/)

Mike Davies 02-28-2012 09:15 AM

Simple way needed of resolving any name to the same address
 
I have a system that runs hostapd, a dhcp server and apache etc. People can connect to it OK, but I want to intercept any dns lookup and resolve it to the address of this system, so the user cannot go any further, i.e. they are stuck on this system running hostapd etc.

Ideally I'd also like to intercept any explicit I/P address they put in and do the same thing.

Is there a simple way of doing this ?

What comes to mind, are some of the public wifi systems that force a user to agree to terms and conditions of use before they are allowed to go further. That is the sort of functionality that I want. How is it achieved ?

lithos 02-28-2012 09:29 AM

Hi,

I think you want something like Cyber cafe hotspot
as these "hotspots" provide internet access if you login through their system with some kind of token (or whatever)

the thing is I don't know how to set it,
here some kind of hostapd configuration is explained.

Basically your server must "stand" between internet connection (Radius) and clients, to provide them your site first and then if auth. successful they can proceed surfing.

Mike Davies 02-29-2012 12:31 PM

Thanks. It's not exactly what I am after but I think there are enough clues in there to lead me in the right direction.

Thanks again


All times are GMT -5. The time now is 03:49 PM.