[MeeGo-dev] Captive portals detection
Hi, Does anyone know how to detect a guest network as a captive portal. I mean can i detect a network as a CAPTIVE PORTAL through connman interfaces? So that i can fire a browser for html login authentication. I found a link http://bugs.meego.com/show_bug.cgi?id=1578#c0 but i need more detailed information on it. Thanks in Advance Puneet Bisht ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev
Re: [MeeGo-dev] Captive portals detection
On Thu, Oct 28, 2010 at 1:59 AM, punit bisht wrote: > Hi, > > Does anyone know how to detect a guest network as a captive portal. > I don't know how it's done, but here's an idea: When inside captive portal and in login mode, DNS responds with same IP address for any query. So that the browser will first hit the login page. So try may be a couple of completely different known host name searches which should yield different IP address answers, if they give same answer, you're in login mode. -- Amit Bapat System Software Marketing Intel Corporation ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev
Re: [MeeGo-dev] Captive portals detection
> > >> >> On Thu, Oct 28, 2010 at 9:07 PM, punit bisht wrote: >> >>> Thanks Amit, >>> I think this will work . >>> >> >> after doing some more digging and trying different captive portals, it >> seems that they all work differently... some of them do DNS trick, some of >> them just do some kind of transparent http proxy magic probably using squid >> or packet level forwarding/redirecting (like one could do with iptables) so >> that no matter what the URL you're presented with the login screen, and in >> such cases, DNS queries will be answered with correct IP address, but >> connecting to port 80 on that host name will result in you being redirected >> to login page... >> >> Thanks Amit, i tried your previous suggestion, but DNS is replying with > different IP Address inside captive portal. > Now i will try to connect it with port 80. > > Puneet > Hi Amit, This problem can be solved by connman and d-bus. In case you are on captive portal, the service will be in READY state with LoginRequired=true. Only when in ONLINE state you don't have a captive portal. As of now meego is using connman 0.54, but for this use upgraded version of connman. Puneet Bisht ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev
Re: [MeeGo-dev] Captive portals detection
> > > > What version of connman do I need? Would Connman/dbus automatically launch > browser if it is in LoginRequired = true state after connecting to an AP? > > -- > Amit Bapat > Open Source Technology Center > Intel Corporation > > we are using 0.62 . it is only suppose to fire a d-bus signal , it does not launch a browser. Puneet Bisht Innovator Nivio Technologies ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev