1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to redirect the HTTP requests send from one of the computers which MAC addresses is not in the a

Discussion in 'Tomato Firmware' started by bingjiw, Apr 18, 2008.

  1. bingjiw

    bingjiw Addicted to LI Member

    Hi,

    How to redirect the HTTP requests send from one of the computers which MAC addresses is not in the allowed MAC list in the [Basic - Wireless Filter] to a certain URL, such as: http://www.mydomainname.com/welcome.html ?

    In that way, we can tell those guys how to get approved to use this WiFi.

    Thanks a million
    Bingji
     
  2. LLigetfa

    LLigetfa LI Guru Member

    Not possible. Think about it for a minute. The MAC filter prevents the client from associating. If the client cannot connect, the client cannot be redirected.
     
  3. danix71

    danix71 LI Guru Member

    OT: Whatta long title. :)
     
  4. bingjiw

    bingjiw Addicted to LI Member

    how about make it possible in this way

    Hi LLigetfa and everyone who read this post,

    Yeah, I understand your explanation.

    But don't you think that is a very useful idea.

    In the case you were talking, how about make it possible in this way: allow everyone to access in the [Basic - Wireless Filter], then make a MAC-addresses-List somewhere in Tomato. Then follow the following logic.

    Code:
    IF ( the connection or request is from one of the computers which MAC is in that MAC-addresses-List ) THEN
        Do the normal process that Tomato will normally do.
    ELSE
        IF ( it's a HTTP request ) THEN
            redirect this HTTP request to a certain URL
        ELSE
            Don't allow this connection/request, just drop this connection request
        ENDIF
    ENDIF
    Is it possible?

    Thanks a lot
    Bingji
     
  5. LLigetfa

    LLigetfa LI Guru Member

    What you are really looking for is a captive portal. There are many other open source "WRT" builds that support captive portal.

    I run a wireless hotspot of sorts with a dozen APs, not free and open however. I used to run it open (no WEP or WPA) but i was getting hammered too much by scumbags and the idiocy of Windows WZC. I now use WPA to keep the number of uninvited down.

    All my APs are just dumbed down with no fancy features except blacklisting of a few MACs. The captive portal is on a FreeBSD WRAP SBC running m0n0wall. Invited guests that are given the WPA passphrase still need to be authorized on my m0n0wall otherwise they only see my AUP/TOU page.
     
  6. bingjiw

    bingjiw Addicted to LI Member

    make a very simple captive portal on Tomato, just one redirect of HTTP is enough.

    Yeah, you are right.

    I have tried Coova and DD-WRT with captive portals. But their performance and QoS are not as good as Tomato. Coova has a useful captive portal, but coova often goes dead ( not responsive ) and become very slow.

    So I want to make a very simple captive portal on Tomato, just one redirect of HTTP is enough.

    But I am not familiar with Linux box and don't know where to start the work.

    Thanks a lot
    Bingji
     
  7. FRiC

    FRiC LI Guru Member

    You could use another router or PC to handle the captive portal, and use Tomato just for the Internet connectivity. I use m0n0wall on alix.
     
  8. bingjiw

    bingjiw Addicted to LI Member

    don't know where to start. If you can give me any clue, please tell me.

    Yes, run another machine as a dedicated captive portal can solve this problem.

    But, that's not what I want, currently I don't have another box can run m0n0wall on it. And I think just an HTTP redirect is not too much work to add it into Tomato. A Linux guru maybe just need 10 minutes can finish it.

    I am a Windows programmer, if no one can help, I want to do it by myself by looking up Linux commands and Googling, but just don't know where to start. If you can give me any clue, please tell me.

    Thanks a million
    Bingji
     

Share This Page