[Chilli] Running with kmod

Tariq Ramadan tr23101 at yahoo.com
Mon Apr 7 20:56:05 UTC 2014


And here's the debug output, when redirection fails:

Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 194: DNS: www.google.com
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:37 ubuntu coova-chilli[25086]: dns.c: 187: It was a dns record type: 1 class: 1
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 5060: Layer2 PROT: 0x86dd dropped
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3593: Not for our MAC or broadcast: 08-00-27-78-5A-6D
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:38 ubuntu coova-chilli[25380]: redir.c: 2103: The path: 
Apr  7 23:50:38 ubuntu coova-chilli[25380]: redir.c: 2413: -->> Setting userurl=[http://www.google.com/]
Apr  7 23:50:38 ubuntu coova-chilli[25380]: redir.c: 3962: redir_accept: Original request host=www.google.com
Apr  7 23:50:38 ubuntu coova-chilli[25380]: redir.c: 4071: ---->>> resetting challenge: b7d65709eded1854be6b1e50e106cb73
Apr  7 23:50:38 ubuntu coova-chilli[25380]: redir.c: 987: redir_wispr2_reply
Apr  7 23:50:38 ubuntu coova-chilli[25086]: chilli.c: 379: caught 17 via selfpipe
Apr  7 23:50:38 ubuntu coova-chilli[25086]: chilli.c: 310: child 25380 terminated
Apr  7 23:50:38 ubuntu coova-chilli[25086]: chilli.c: 135: Freed child process 25380 [[redir]]
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3593: Not for our MAC or broadcast: 08-00-27-78-5A-6D
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3593: Not for our MAC or broadcast: 08-00-27-78-5A-6D
Apr  7 23:50:38 ubuntu coova-chilli[25382]: redir.c: 2103: The path: www/coova.html
Apr  7 23:50:38 ubuntu coova-chilli[25382]: redir.c: 2398: Serving file coova.html
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3593: Not for our MAC or broadcast: 08-00-27-78-5A-6D
Apr  7 23:50:38 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:38 ubuntu coova-chilli[25086]: chilli.c: 379: caught 17 via selfpipe
Apr  7 23:50:38 ubuntu coova-chilli[25086]: chilli.c: 310: child 25382 terminated
Apr  7 23:50:38 ubuntu coova-chilli[25086]: chilli.c: 135: Freed child process 25382 [[redir]]
Apr  7 23:50:39 ubuntu coova-chilli[25381]: redir.c: 2020: 104 (Connection reset by peer) redir_read(0) failed!
Apr  7 23:50:39 ubuntu coova-chilli[25381]: redir.c: 3383: Error calling get_req. Terminating -1
Apr  7 23:50:39 ubuntu coova-chilli[25086]: dhcp.c: 3555: chopping off trailer length 6
Apr  7 23:50:39 ubuntu coova-chilli[25086]: chilli.c: 379: caught 17 via selfpipe
Apr  7 23:50:39 ubuntu coova-chilli[25086]: chilli.c: 310: child 25381 terminated
Apr  7 23:50:39 ubuntu coova-chilli[25086]: chilli.c: 135: Freed child process 25381 [[redir]]
Apr  7 23:50:41 ubuntu coova-chilli[25086]: dhcp.c: 5060: Layer2 PROT: 0x86dd dropped

On Monday, April 7, 2014 3:53 PM, Tariq Ramadan <tr23101 at yahoo.com> wrote:
 
Hello

I've compiled and set up coovachilli --with-nfcoova on ubuntu successfully. But I can not run properly. I think there's a kind of routing problem with the interfaces. I tried to set up as David described here: http://lists.coova.org/pipermail/chilli/2010-April/001239.html 

At this configuration client is getting IP, then trying to resolve and getting dns request result, and redirecting the browser to the uamurl, but page is not displaying properly(getting connection reset response)
If I remove the network route of tun0(11.1.0.0/24) here, the client can continue to reach and display the uampage, then login and access to the internet. But this time dns resolving and redirection doesn't work.

My configuration:

cmdsocket       /var/run/chilli.eth1.sock
unixipc         chilli.eth1.ipc
pidfile         /var/run/chilli.eth1.pid
net10.1.0.0/255.255.255.0
uamlisten11.1.0.1
uamport         3100
dhcpifeth1
uamallowed"10.0.0.0/8,11.0.0.0/8"
uamanydns
kname "chilli"
dhcplisten "10.1.0.1"
domain "lan"
dns1 "208.67.222.222"
dns2 "8.8.8.8"

radiusserver1"localhost"
radiusserver2"localhost"
radiussecret"testing123"
radiusauthport  1812
radiusacctport  1813
uamserver"http://11.1.0.1/login/login.php"
radiusnasid"nas-10"
papalwaysok
macauth
usestatusfile "/etc/chilli/eth1/status.dat"
uamaliasname "chilli"
adminupdatefile "/etc/chilli/eth1/local.conf"
uamsecret "testing123"

dhcpstart 10
dhcpend 239
lease 3600
dhcpnotidle
seskeepalive
logfacility 22

WAN side - eth0 : 192.168.0.88 (def gw:192.168.0.1)
LAN side - eth1 : 10.1.0.1
tun0: 11.1.0.1

iptables output:
Chain INPUT (policy ACCEPT)

target     prot opt source               destination         

Chain FORWARD (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           coova: name: chilli side: dest
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           coova: name: chilli side: source 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


route -n output:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    100    0        0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth1
11.1.0.0        0.0.0.0         255.255.255.0   U     0      0        0 tun0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0


Can anyone help me?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20140407/4745a92b/attachment-0001.html>


More information about the Chilli mailing list