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

need help with captive portal in e-wrt

Discussion in 'EWRT Firmware Project' started by jagboy, Jun 22, 2005.

  1. jagboy

    jagboy Network Guru Member


    i need some help with the captive portal in e-wrt. it works but only when i go to the routers ip address. the ip address of the rotuer that has e-wrt is i should see the captive portal when i start using the web or open my first internet explorer window. but i dont. but when i go to the routers ip i see it. and i have to click the continue button. here is a pic of my settings for the captive portal. i am totaly out of ideas. i reset the thing and i powered it on and off everytime i applied a setting.

  2. jagboy

    jagboy Network Guru Member

  3. sam1967

    sam1967 Network Guru Member

    i could only get it working by following some tips another poster made

    - put your WRT54G and your broadband router on separate subnets
    - connect your WRT54G to the broadband router using the Internet/WAN port
    - configure your WRT54G as a GATEWAY not a router

    so my setup is

    [65.x.y.z <ADSL router > ] ------
    ------ [ <WRT54G> ] ----
    ------ [ client subnet

    I have DHCP running on both routers which is OK as DHCP from the ADSL cannot travel across the WRT54G as they are broadcasts.

    the interface can be configured with a STATIC IP or via DHCP
    from the ADSL router,

    the WRT54G also runs DHCP and gives out addresses to the clients.

    the Internet port on the WRT54G is and is connected via a straight through cable to the ADSL router.

    this wors for me.

    feel free to ask more questions
  4. jagboy

    jagboy Network Guru Member

    so i have 2 wrts.

    they are connected by hard wire. this is my setup

    cable modem

    so i should connected the 2nd wrt to the first by a wan port instead of lan port.?

    and configure my first wrt as a gateway.

    then out them on diff subnets right?

    and that is it? which router shoudl be running e-wrt?
  5. thanatos2k

    thanatos2k Network Guru Member

    I have no experience with setting up a captive portal, but my understanding of TCP/IP says that it should work like this: (someone please flame me if I am wrong)

    The wireless clients have to be on a separate subnet from anything beyond your e-wrt. Once the clients have wireless connectivity and an IP address, all attempts to communicate with an IP not local to their subnet will go through the e-wrt. At that point the e-wrt can respond with the captive portal.

    Cable Modem --> WRT1 Wan port (DHCP)
    WRT1 LAN Port ( ---> WRT2 (ewrt) WAN port (DHCP)
    WRT2 (ewrt) wireless ( ---> Caprive Portal wireless Clients (DHCP)

    In that setup, any clients to the first WRT will not get the captive portal, but all clients to the second one will. Is that what you wanted? If you want all clients on both routers to get the captive portal, set it up like this:

    Cable Modem --> WRT1 (ewrt) Wan port (DHCP)
    WRT1 (ewrt) LAN Port ( ---> WRT2 LAN port (

    In that case all clients use as the gateway, and are caught by the Captive portal. The second WRT is just extra, unless you want to run two different wireless networks. If not, it might be better to not connect the second WRT with a Cable, just set up WDS on the other side of the building or whatever to improve signal coverage.
  6. jagboy

    jagboy Network Guru Member

    cool thanks
    this is what i needed.

    the second wrt is how all the clients get connected to the internet. the first wrt is used for hosing a web site.
  7. jagboy

    jagboy Network Guru Member

    thanks i got it working
  8. gclough

    gclough Guest

    retrieving MAC address of a user from Splash.html

    I am using ewrt version0.3beta (latest version). It seems that the only mode of operation is open.

    Any FAQ or manual on enabling modes that authenticate users?

    If not, I decided to write my own php code with mysql DB on my own server. Spash page contains an iframe which points to a php script on my server. This does all the authentication and if user authenticates, it submits the form that would have otherwise been submited on the splash page - thereby allowing the user access.

    I want to be able to uniquely identify the user and would like to do this by having his MAC address passed onto my php script by the splash page calling it. Any ideas if such variables are available in the splash page?

    Am I going about this the right way?
  9. primus1024

    primus1024 Network Guru Member

    Why not use chillispot then?
    I use DD-WRT firmware with chillispot and own radius server for authentication. It's simple to setup and it works.

Share This Page