[isf-wifidog] Auth: -1

ilia niagolov ilia at sharcom.org
Jeu 11 Sep 05:07:33 EDT 2008


No problem with comunication wifidog-openwrt and wifidog-auth
-------------------------------------------------------------
[7][Sat Jan  1 20:03:28 2000][6221](auth.c:83) Running fw_counter()
[7][Sat Jan  1 20:03:28 2000][6221](gateway.c:259) Handler for SIGCHLD
called. Trying to reap a child
[7][Sat Jan  1 20:03:28 2000][6221](gateway.c:263) Handler for SIGCHLD
reaped child PID 6252
[7][Sat Jan  1 20:03:28 2000][6221](gateway.c:259) Handler for SIGCHLD
called. Trying to reap a child
[7][Sat Jan  1 20:03:28 2000][6221](gateway.c:263) Handler for SIGCHLD
reaped child PID 6254
[7][Sat Jan  1 20:03:28 2000][6221](firewall.c:230) Locking client list
[7][Sat Jan  1 20:03:28 2000][6221](firewall.c:230) Client list locked
[7][Sat Jan  1 20:03:28 2000][6221](firewall.c:338) Unlocking client list
[7][Sat Jan  1 20:03:28 2000][6221](firewall.c:338) Client list unlocked
[7][Sat Jan  1 20:03:29 2000][6223](ping_thread.c:71) Running ping()
[7][Sat Jan  1 20:03:29 2000][6223](ping_thread.c:107) Entering ping()
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:171) Locking config
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:171) Config locked
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:215) Level 1:
Calculated 1 auth servers in list
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:231) Level 1:
Resolving auth server [wifi.sharcom.org]
[7][Sat Jan  1 20:03:29 2000][6223](util.c:127) Locking wd_gethostbyname()
[7][Sat Jan  1 20:03:29 2000][6223](util.c:127) wd_gethostbyname() locked
[7][Sat Jan  1 20:03:29 2000][6223](util.c:142) Unlocking wd_gethostbyname()
[7][Sat Jan  1 20:03:29 2000][6223](util.c:142) wd_gethostbyname() unlocked
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:291) Level 1:
Resolving auth server [wifi.sharcom.org] succeeded

= [212.21.158.4]
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:316) Level 1:
Connecting to auth server wifi.sharcom.org:80
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:342) Level 1:
Successfully connected to auth server

wifi.sharcom.org:80
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:173) Unlocking config
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:173) Config unlocked
[7][Sat Jan  1 20:03:29 2000][6223](centralserver.c:180) Connected to auth
server
[7][Sat Jan  1 20:03:29 2000][6223](ping_thread.c:164) HTTP Request to
Server: [GET

/ping/?gw_id=default&sys_uptime=72209&sys_memfree=2172&sys_load=0.00&wifidog_uptime=306
HTTP/1.0
User-Agent: WiFiDog 1.1.3_rc1
Host: wifi.sharcom.org]
[7][Sat Jan  1 20:03:29 2000][6223](ping_thread.c:168) Reading response
[7][Sat Jan  1 20:03:29 2000][6223](ping_thread.c:196) Read 178 bytes,
total now 178
[7][Sat Jan  1 20:03:29 2000][6223](ping_thread.c:214) Done reading reply,
total 178 bytes
[7][Sat Jan  1 20:03:29 2000][6223](ping_thread.c:218) HTTP Response from
Server: [HTTP/1.1 200 OK
Date: Thu, 11 Sep 2008 06:47:38 GMT
Server: Apache
X-Powered-By: PHP/5.2.6RC4-pl0-gentoo
Content-Length: 4
Connection: close
Content-Type: text/html
Pong]
[7][Sat Jan  1 20:03:29 2000][6223](ping_thread.c:225) Auth Server Says: Pong



Now user status is allowed, user wont open gbg.bg site and user browser
redirect to login page.
-----------------------------------------------------------------------

[6][Sat Jan  1 20:03:35 2000][6039](gateway.c:473) Received connection
from 192.168.20.140, spawning worker thread
[7][Sat Jan  1 20:03:35 2000][6256](httpd_thread.c:65) Processing request
from 192.168.20.140
[7][Sat Jan  1 20:03:35 2000][6256](httpd_thread.c:66) Calling
httpdProcessRequest() for 192.168.20.140
[6][Sat Jan  1 20:03:35 2000][6256](http.c:130) Captured 192.168.20.140
requesting [http%3A//gbg.bg/] and

re-directed them to login page
[7][Sat Jan  1 20:03:35 2000][6256](httpd_thread.c:68) Returned from
httpdProcessRequest() for 192.168.20.140
[7][Sat Jan  1 20:03:35 2000][6256](httpd_thread.c:73) Closing connection
with 192.168.20.140



User put  username and password, and loged to your status, but nework no :(.
----------------------------------------------------------------
[6][Sat Jan  1 20:03:45 2000][6039](gateway.c:473) Received connection
from 192.168.20.140, spawning worker thread
[7][Sat Jan  1 20:03:45 2000][6257](httpd_thread.c:65) Processing request
from 192.168.20.140
[7][Sat Jan  1 20:03:45 2000][6257](httpd_thread.c:66) Calling
httpdProcessRequest() for 192.168.20.140
[7][Sat Jan  1 20:03:45 2000][6257](http.c:184) Locking client list
[7][Sat Jan  1 20:03:45 2000][6257](http.c:184) Client list locked
[7][Sat Jan  1 20:03:45 2000][6257](http.c:187) New client for 192.168.20.140
[6][Sat Jan  1 20:03:45 2000][6257](client_list.c:108) Added a new client
to linked list: IP: 192.168.20.140 Token:

4b23c7e65b51171e5639d4edb6679ffd
[7][Sat Jan  1 20:03:45 2000][6257](http.c:193) Unlocking client list
[7][Sat Jan  1 20:03:45 2000][6257](http.c:193) Client list unlocked
[7][Sat Jan  1 20:03:45 2000][6257](auth.c:107) Locking client list
[7][Sat Jan  1 20:03:45 2000][6257](auth.c:107) Client list locked
[7][Sat Jan  1 20:03:45 2000][6257](auth.c:120) Unlocking client list
[7][Sat Jan  1 20:03:45 2000][6257](auth.c:120) Client list unlocked
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:171) Locking config
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:171) Config locked
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:215) Level 1:
Calculated 1 auth servers in list
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:231) Level 1:
Resolving auth server [wifi.sharcom.org]
[7][Sat Jan  1 20:03:45 2000][6257](util.c:127) Locking wd_gethostbyname()
[7][Sat Jan  1 20:03:45 2000][6257](util.c:127) wd_gethostbyname() locked
[7][Sat Jan  1 20:03:45 2000][6257](util.c:142) Unlocking wd_gethostbyname()
[7][Sat Jan  1 20:03:45 2000][6257](util.c:142) wd_gethostbyname() unlocked
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:291) Level 1:
Resolving auth server [wifi.sharcom.org] succeeded

= [212.21.158.4]
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:316) Level 1:
Connecting to auth server wifi.sharcom.org:80
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:342) Level 1:
Successfully connected to auth server

wifi.sharcom.org:80
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:173) Unlocking config
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:173) Config unlocked
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:180) Connected to auth
server
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:97) Sending HTTP
request to auth server: [GET

/auth/?stage=login&ip=192.168.20.140&mac=00:1F:3B:5A:D5:C9&token=4b23c7e65b51171e5639d4edb6679ffd&incoming=0&outgoin

g=0 HTTP/1.0
User-Agent: WiFiDog 1.1.3_rc1
Host: wifi.sharcom.org

]

[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:100) Reading response
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:127) Read 239 bytes,
total now 239
[7][Sat Jan  1 20:03:45 2000][6257](centralserver.c:147) HTTP Response
from Server: [HTTP/1.1 200 OK
Date: Thu, 11 Sep 2008 06:47:54 GMT
Server: Apache
X-Powered-By: PHP/5.2.6RC4-pl0-gentoo
Content-Length: 64
Connection: close
Content-Type: text/html

Auth: -1
Messages: | Error: couldn't find the requested token.
]
[6][Sat Jan  1 20:03:45 2000][6257](centralserver.c:151) Auth server
returned authentication code -1
[7][Sat Jan  1 20:03:45 2000][6257](auth.c:129) Locking client list
[7][Sat Jan  1 20:03:45 2000][6257](auth.c:129) Client list locked
[3][Sat Jan  1 20:03:45 2000][6257](auth.c:161) Got -1 from central server
authenticating token

4b23c7e65b51171e5639d4edb6679ffd from 192.168.20.140 at 00:1F:3B:5A:D5:C9
[7][Sat Jan  1 20:03:45 2000][6257](auth.c:275) Unlocking client list
[7][Sat Jan  1 20:03:45 2000][6257](auth.c:275) Client list unlocked
[7][Sat Jan  1 20:03:45 2000][6257](httpd_thread.c:68) Returned from
httpdProcessRequest() for 192.168.20.140
[7][Sat Jan  1 20:03:45 2000][6257](httpd_thread.c:73) Closing connection
with 192.168.20.140


________________________________________________________--


All this log from: wifidog -f -d 7

Pls help



Plus d'informations sur la liste de diffusion WiFiDog