[Wifidog] New features

Mina Naguib webmaster at topfx.com
Fri Feb 4 08:53:43 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Yes I ran a similar test overnight.

Logged in through wifidog, then closed all apps that generate traffic on
my machine.  I left tcpdump running.

Every 1 minute there's an ICMP ping (and reply from my pc) followed by
an arp who-is and arp is-at.  Worked for 6 hours straight.  In the
morning I was still logged-in.

I also tested my commit which I should mention here.  WiFiDog now
detects when it hasn't been able to talk to the auth server in a while,
and if it concludes that it is offline, captured users are shown an
apology telling them to try later instead of re-directing them to the
auth server.

That features seems to be partially working, partially not.

1. It works for newly captured, unauthenticated users
2. It doesn't work for already-authenticated users

That's probably because the decision is made in the 404 handler which
authenticated users don't go through.  I'll find a way to fix that,


Philippe April wrote:
| This morning, I logged in, closed all my applications and left my laptop
| on the table.
|
| Came back 15-20 minutes later, it was still authenticated on ISF.
|
| Put it to sleep. Came back 10 minutes after, it asked me to authenticate
| again.
|
| Seems to work for me!
|
| On 4-Feb-05, at 12:26 AM, Philippe April wrote:
|
|> Ok I think I fixed the issue with GatewayAddress... I was returning a
|> pointer, which of course got overwritten at some point during the
|> execution of the program.
|>
|> I used strdup(), I assume it'll fix it. I ran it at home, it works,
|> I'll keep it running and see if it really fixes it (like, try to login
|> tomorrow).
|>
|> I'm very glad you're back into the project :)
|>
|> On 4-Feb-05, at 12:15 AM, Mina Naguib wrote:
|>
|
| FYI setting GatewayAddress in the config file fixed it.
|
| I'm setting up an openwrt buildroot on this machine so I can test and
| bugfix a bit.
|
| Philippe April wrote:
| | Yeah I introduced a bug.
| |
| | I hadn't tested much. I'll try to fix it, should not be too hard.
| |
| | On 3-Feb-05, at 11:22 PM, Mina Naguib wrote:
| |
| |
| | Something isn't quite right with that commit.
| |
| | When I go to a site, let's say "www.linux.org" and I'm
| unauthenticated,
| | the router redirects me to:
| |
| | https://auth.ilesansfil.org/login/?
| | gw_address=2.168.202.173&gw_port=2060&gw_id=default&url=http%3A//
| | www.linux.com/
| |
| | Notice the gw_address is messed up. In my case it should be
| | "192.168.202.1", not "2.168.202.173"
| |
| | Therefore after I authenticate and the auth server tries to
| redirect me
| | back to wifidog, it doesn't work since
| | http://2.168.202.173:2060/wifidog/auth?foo=bar....  goes nowhere
| |
| | The weird thing is, the IP address that got leased to me (the
| client)  is
| | "192.168.202.173", which is too similar to "2.168.202.173" to discount
| | the coincidence.
| |
| | I'll try to go through the code to find what's wrong, although I've
|  just
| | locked myself out of my remote box where the openwrt buildroot
| | environment was setup, so I won't be able to test it till tomorrow.
| |
| | Also note I just committed some stuff to CVS a while ago, so cvs
| update
| | before trying to fix anything.
| |
| | Philippe April wrote:
| | | Changelog says it all:
| | |
| | | 2005-02-03 Philippe April <isf_lists at philippeapril.com>
| | |     * Ping the users everytime we check their counters, that way we
| | keep them alive
| | |     * Optional ExternalInterface
| | |     * Optional GatewayAddress (we discover it. finally.)
| | |     * We check for the traffic from the clients to the firewall, to
| | catch the traffic the icmp ping is generating
| | |     * Fixed bug where we were doing the opposite of what desired
| when
| | checking if authentication server was alive
| | |     * Bumped to alpha7
| | |
| | | I tested at home, but it needs more testing. If someone else can
| test
| | too, that'd be good.
| | |
| | | Cheers!
|
|>>
_______________________________________________
Wifidog mailing list
Wifidog at isf.waglo.com
http://isf.waglo.com/mailman/listinfo/wifidog_isf.waglo.com
|>>
|>>
|> Philippe April
|>
|>
|> _______________________________________________
|> Wifidog mailing list
|> Wifidog at isf.waglo.com
|> http://isf.waglo.com/mailman/listinfo/wifidog_isf.waglo.com
|>
| Philippe April

| ------------------------------------------------------------------------

| _______________________________________________
| Wifidog mailing list
| Wifidog at isf.waglo.com
| http://isf.waglo.com/mailman/listinfo/wifidog_isf.waglo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCA34GeS99pGMif6wRAkP1AKCK2ihZHpehmKVQhLX8yuN3g2RlcgCg6szR
FRZh+G7+P3RZHmTKJTyhqMw=
=/vzJ
-----END PGP SIGNATURE-----

_______________________________________________
Wifidog mailing list
Wifidog at isf.waglo.com
http://isf.waglo.com/mailman/listinfo/wifidog_isf.waglo.com




More information about the Wifidog mailing list