coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
516 stars 258 forks source link

Multiple TUN interfaces not working #363

Open chirayu-patel opened 7 years ago

chirayu-patel commented 7 years ago

I am trying the scenario of multiple VLANs each mapped to an SSID.. The problem is starting the second TUN interface terminates the first one and so multiple chilli instances are not running.. Why is that happening ?.. Both are having different config of 'net' - one is having 10.1.0.0/16 and other is having 10.2.0.0/16

nzamps commented 7 years ago

Make sure some of your config items are unique like:

dhcpif cmdsocket unixipc pidfile uamport uamuiport

chirayu-patel commented 7 years ago

yes.. the above config items you mentioned are different for both..

--------------------------------------------COMMON-------------------------------------------------

===Common Coova Settings===

domain "lan" wwwdir /etc/chilli/www wwwbin /etc/chilli/wwwsh locationname "MESHdesk" radiuslocationname "MESHdesk_hotspot" radiuslocationid "isocc=,cc=,ac=,network=MESHdesk," radiusauthport 1812 radiusacctport 1813 papalwaysok uamaliasname "chilli" adminupdatefile "/etc/chilli/local.conf" mtu 1468 ---------------------------------------CONFIG 1---------------------------

uamport 3990 uamuiport 4990 uamlisten 10.1.0.1 net 10.1.0.0/16 dynip 10.1.1.0/16 uamhomepage http://10.1.0.1:3990/www/radiusdesk.html radiusserver1 '192.168.2.4' radiusserver2 'localhost' radiussecret 'testing123' uamserver 'http://192.168.2.4/cake3/rd_cake/dynamic-details/chilli-browser-detect/' radiusnasid 'newprofile_comfast_cp_41' uamsecret 'greatsecret' dhcpif 'br-ex_zero' tundev 'tun0' uamallowed '10.1.0.1' cmdsocket '/var/run/chilli.br-ex_zero.sock' unixipc 'chilli.br-ex_zero.ipc' pidfile '/var/run/chilli.br-ex_zero.pid' dns1 '192.168.2.1' uamanydns ssid=newssid

-------------------------------------------CONFIG 2------------------------------------------------------------ uamlisten 10.2.0.1 net 10.2.0.0/16 dynip 10.2.1.0/16 uamhomepage http://10.2.0.1:3991/www/radiusdesk.html radiusserver1 '192.168.2.4' radiusserver2 'localhost' radiussecret 'testing123' uamserver 'http://192.168.2.4/cake3/rd_cake/dynamic-details/chilli-browser-detect/' radiusnasid 'newprofile_comfast_cp_42' uamsecret 'greatsecret' dhcpif 'br-ex_one' uamallowed '10.2.0.1' cmdsocket '/var/run/chilli.br-ex_one.sock' unixipc 'chilli.br-ex_one.ipc' pidfile '/var/run/chilli.br-ex_one.pid' dns1 '192.168.2.1' uamanydns ssid=radiusdesk

chirayu-patel commented 7 years ago

This is my network config --

config interface 'loopback' option netmask '255.0.0.0' option ifname 'lo' option ipaddr '127.0.0.1' option proto 'static'

config interface 'lan' option ifname 'eth0 eth1' option type 'bridge' option proto 'dhcp'

config interface 'ex_zero' option type 'bridge' option proto 'none'

config interface 'ex_one' option type 'bridge' option proto 'none'

This is my wireless config --

config wifi-device 'radio0' option type 'mac80211' option hwmode '11g' option path 'platform/qca953x_wmac' option htmode 'HT20' list basic_rate '6000 9000 12000 18000 24000 36000 48000 54000' list ht_capab 'SHORT-GI-40' list ht_capab 'RX-STBC1' list ht_capab 'TX-STBC' list ht_capab 'DSSS_CCK-40' option noscan '0' option disabled '0' option country 'ZA' option beacon_int '100' option distance '300' option txpower '18' option channel '8' option ldpc '1' option diversity '1'

config wifi-iface 'zero' option ifname 'zero0' option ssid 'newssid' option encryption 'none' option device 'radio0' option hidden '0' option isolate '0' option mode 'ap' option network 'ex_zero'

config wifi-iface 'one' option ifname 'one0' option ssid 'ssid2' option encryption 'none' option device 'radio0' option hidden '0' option isolate '0' option mode 'ap' option network 'ex_one'

nzamps commented 7 years ago

Try a different tundev, uamport and uamuiport for Config 2 ?

chirayu-patel commented 7 years ago

Sorry forgot to mention uamport and uamuiport for config2 but I have incremented them by 1.. also I tried tun0 and tun1 explicitly by that didn't work either

nzamps commented 7 years ago

After starting instance 1, start the 2nd instance in debug mode and check the messages:

chilli -fd -c [config 2]

chirayu-patel commented 7 years ago

START1

root:/tmp/run# chilli --fg --debug --conf /etc/MESHdesk/captive_portals/chilli_1.conf main-opt.c: 453: 0 (Debug) IPv6 disabled main-opt.c: 640: 0 (Debug) DHCP Listen: 10.1.0.1 main-opt.c: 641: 0 (Debug) UAM Listen: 10.1.0.1 garden.c: 439: 0 (Debug) Uamallowed IP address #0:128: proto=0 host=192.168.2.4 port=80 garden.c: 472: 0 (Debug) Uamallowed [10.1.0.1] garden.c: 439: 0 (Debug) Uamallowed IP address #1:128: proto=0 host=10.1.0.1 port=0 options.c: 446: 0 (Debug) PID 459 saving options to /var/run/chilli.458.cfg.bin options.c: 658: 0 (Debug) PID 458 reloaded binary options file chilli.c: 7278: 0 (Debug) clock realtime sec 1496824428 nsec 58772536 chilli.c: 7283: 0 (Debug) clock monotonic sec 10547 nsec 252291202 tun.c: 605: 0 (Debug) TX queue length set to 100 tun.c: 1111: 0 (Debug) Running /etc/chilli/up.sh ippool.c: 338: 0 (Debug) Hashlog 16 65278 65536 net.c: 1279: 0 (Debug) Net SNDBUF 163840 net.c: 1282: 0 (Debug) Net RCVBUF 163840 net.c: 1337: 0 (Debug) device br-ex_zero ifindex 15 net.c: 1353: 0 (Debug) lo address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) eth0 address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) eth1 address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) br-lan address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) br-ex_one address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) br-ex_zero address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) zero0 address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) one0 address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) lo address family: 2 (AF_INET) net.c: 1353: 0 (Debug) br-lan address family: 2 (AF_INET) net.c: 1353: 0 (Debug) tun0 address family: 2 (AF_INET) net.c: 1353: 0 (Debug) lo address family: 10 (AF_INET6) net.c: 1353: 0 (Debug) br-lan address family: 10 (AF_INET6) net.c: 1353: 0 (Debug) br-ex_one address family: 10 (AF_INET6) net.c: 1353: 0 (Debug) br-ex_zero address family: 10 (AF_INET6) net.c: 1368: 0 (Debug) address: <fe80::42a5:efff:fe93:64f1%br-ex_zero>

net.c: 1353: 0 (Debug) zero0 address family: 10 (AF_INET6) net.c: 1353: 0 (Debug) one0 address family: 10 (AF_INET6) dhcp.c: 481: 0 (Debug) hash table size 64 (56) dhcp.c: 333: 0 (Debug) GARP: Replying to broadcast dhcp.c: 1169: 0 (Debug) dhcpif (br-ex_zero) IPv6 address fe80::42a5:efff:fe93:64f1 radius.c: 1316: 0 (Debug) RADIUS client 0.0.0.0:0 chilli.c: 7438: 0 (Debug) Waiting for client request... radius.c: 321: 0 (Debug) Allocating RADIUS packet net.c: 416: 0 (Debug) net select count: 1 net.c: 416: 0 (Debug) net select count: 2 net.c: 416: 0 (Debug) net select count: 3 net.c: 416: 0 (Debug) net select count: 4 net.c: 416: 0 (Debug) net select count: 5 net.c: 416: 0 (Debug) net select count: 6 net.c: 416: 0 (Debug) net select count: 7 net.c: 416: 0 (Debug) net select count: 8 dhcp.c: 3713: 0 (Debug) Address not found (192.168.2.9) dhcp.c: 728: 0 (Debug) DHCP newconn: 40-A5-EF-93-64-F2 chilli.c: 5137: 0 (Debug) New DHCP request from MAC=40-A5-EF-93-64-F2 chilli.c: 5140: 0 (Debug) New DHCP connection established chilli.c: 5098: 0 (Debug) New Chilli Connection dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3713: 0 (Debug) Address not found (192.168.2.4) dhcp.c: 728: 0 (Debug) DHCP newconn: 84-3A-4B-76-4F-A8 chilli.c: 5137: 0 (Debug) New DHCP request from MAC=84-3A-4B-76-4F-A8 chilli.c: 5140: 0 (Debug) New DHCP connection established chilli.c: 5098: 0 (Debug) New Chilli Connection dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 radius.c: 1907: 0 (Debug) Received RADIUS packet id=0 radius.c: 422: 0 (Debug) Freeing RADIUS packet radius.c: 427: 0 (Debug) RADIUS queue-out id=0 idx=0 chilli.c: 379: 0 (Debug) caught 18 via selfpipe chilli.c: 310: 0 (Debug) child 477 terminated Killed

START2

root:/tmp/run# chilli --fg --debug --conf /etc/MESHdesk/captive_portals/chilli_2.conf main-opt.c: 453: 0 (Debug) IPv6 disabled main-opt.c: 640: 0 (Debug) DHCP Listen: 10.2.0.1 main-opt.c: 641: 0 (Debug) UAM Listen: 10.2.0.1 garden.c: 439: 0 (Debug) Uamallowed IP address #0:128: proto=0 host=192.168.2.4 port=80 garden.c: 472: 0 (Debug) Uamallowed [10.2.0.1] garden.c: 439: 0 (Debug) Uamallowed IP address #1:128: proto=0 host=10.2.0.1 port=0 options.c: 446: 0 (Debug) PID 679 saving options to /var/run/chilli.678.cfg.bin options.c: 658: 0 (Debug) PID 678 reloaded binary options file chilli.c: 7278: 0 (Debug) clock realtime sec 1496824475 nsec 985718055 chilli.c: 7283: 0 (Debug) clock monotonic sec 10595 nsec 179381196 tun.c: 605: 0 (Debug) TX queue length set to 100 tun.c: 1111: 0 (Debug) Running /etc/chilli/up.sh ippool.c: 338: 0 (Debug) Hashlog 16 65278 65536 net.c: 1279: 0 (Debug) Net SNDBUF 163840 net.c: 1282: 0 (Debug) Net RCVBUF 163840 net.c: 1337: 0 (Debug) device br-ex_one ifindex 14 net.c: 1353: 0 (Debug) lo address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) eth0 address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) eth1 address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) br-lan address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) br-ex_one address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) br-ex_zero address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) zero0 address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) one0 address family: 17 (AF_PACKET) net.c: 1353: 0 (Debug) lo address family: 2 (AF_INET) net.c: 1353: 0 (Debug) br-lan address family: 2 (AF_INET) net.c: 1353: 0 (Debug) tun1 address family: 2 (AF_INET) net.c: 1353: 0 (Debug) lo address family: 10 (AF_INET6) net.c: 1353: 0 (Debug) br-lan address family: 10 (AF_INET6) net.c: 1353: 0 (Debug) br-ex_one address family: 10 (AF_INET6) net.c: 1368: 0 (Debug) address: <fe80::40a5:efff:fe93:64f1%br-ex_one>

net.c: 1353: 0 (Debug) br-ex_zero address family: 10 (AF_INET6) net.c: 1353: 0 (Debug) zero0 address family: 10 (AF_INET6) net.c: 1353: 0 (Debug) one0 address family: 10 (AF_INET6) dhcp.c: 481: 0 (Debug) hash table size 64 (56) dhcp.c: 333: 0 (Debug) GARP: Replying to broadcast dhcp.c: 1169: 0 (Debug) dhcpif (br-ex_one) IPv6 address fe80::40a5:efff:fe93:64f1 radius.c: 1316: 0 (Debug) RADIUS client 0.0.0.0:0 chilli.c: 7438: 0 (Debug) Waiting for client request... radius.c: 321: 0 (Debug) Allocating RADIUS packet net.c: 416: 0 (Debug) net select count: 1 net.c: 416: 0 (Debug) net select count: 2 net.c: 416: 0 (Debug) net select count: 3 net.c: 416: 0 (Debug) net select count: 4 net.c: 416: 0 (Debug) net select count: 5 net.c: 416: 0 (Debug) net select count: 6 net.c: 416: 0 (Debug) net select count: 7 net.c: 416: 0 (Debug) net select count: 8 dhcp.c: 3713: 0 (Debug) Address not found (192.168.2.9) dhcp.c: 728: 0 (Debug) DHCP newconn: 40-A5-EF-93-64-F2 chilli.c: 5137: 0 (Debug) New DHCP request from MAC=40-A5-EF-93-64-F2 chilli.c: 5140: 0 (Debug) New DHCP connection established chilli.c: 5098: 0 (Debug) New Chilli Connection dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3713: 0 (Debug) Address not found (192.168.2.4) dhcp.c: 728: 0 (Debug) DHCP newconn: 84-3A-4B-76-4F-A8 chilli.c: 5137: 0 (Debug) New DHCP request from MAC=84-3A-4B-76-4F-A8 chilli.c: 5140: 0 (Debug) New DHCP connection established chilli.c: 5098: 0 (Debug) New Chilli Connection dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 40-A5-EF-93-64-F2 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 dhcp.c: 3836: 0 (Debug) Not for our MAC or broadcast: 84-3A-4B-76-4F-A8 radius.c: 1907: 0 (Debug) Received RADIUS packet id=0 radius.c: 422: 0 (Debug) Freeing RADIUS packet radius.c: 427: 0 (Debug) RADIUS queue-out id=0 idx=0 chilli.c: 379: 0 (Debug) caught 18 via selfpipe chilli.c: 310: 0 (Debug) child 686 terminated

chirayu-patel commented 7 years ago

Notice the 'KILLED' in the start1.. As soon as the second started, first one got killed... This is the output of ifconfig --

br-ex_one Link encap:Ethernet HWaddr 42:A5:EF:93:64:F1
inet6 addr: fe80::40a5:efff:fe93:64f1/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1468 Metric:1 RX packets:2177 errors:0 dropped:0 overruns:0 frame:0 TX packets:3316 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:179090 (174.8 KiB) TX bytes:3945832 (3.7 MiB)

br-ex_zero Link encap:Ethernet HWaddr 40:A5:EF:93:64:F1
inet6 addr: fe80::42a5:efff:fe93:64f1/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1468 Metric:1 RX packets:1999 errors:0 dropped:0 overruns:0 frame:0 TX packets:2080 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:169303 (165.3 KiB) TX bytes:2688694 (2.5 MiB)

br-lan Link encap:Ethernet HWaddr 40:A5:EF:93:64:F2
inet addr:192.168.2.9 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::42a5:efff:fe93:64f2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:42332 errors:0 dropped:0 overruns:0 frame:0 TX packets:16570 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:16157685 (15.4 MiB) TX bytes:2373416 (2.2 MiB)

eth0 Link encap:Ethernet HWaddr 40:A5:EF:93:64:F2
UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:5

eth1 Link encap:Ethernet HWaddr 40:A5:EF:93:64:F0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:42364 errors:0 dropped:0 overruns:0 frame:0 TX packets:16575 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:16752991 (15.9 MiB) TX bytes:2373298 (2.2 MiB) Interrupt:4

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:43 errors:0 dropped:0 overruns:0 frame:0 TX packets:43 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:3469 (3.3 KiB) TX bytes:3469 (3.3 KiB)

one0 Link encap:Ethernet HWaddr 42:A5:EF:93:64:F1
inet6 addr: fe80::40a5:efff:fe93:64f1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2170 errors:0 dropped:0 overruns:0 frame:0 TX packets:3452 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:209428 (204.5 KiB) TX bytes:3993011 (3.8 MiB)

tun1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.2.0.1 P-t-P:10.2.0.1 Mask:255.255.0.0 UP POINTOPOINT RUNNING MTU:1468 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

zero0 Link encap:Ethernet HWaddr 40:A5:EF:93:64:F1
inet6 addr: fe80::42a5:efff:fe93:64f1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1976 errors:0 dropped:0 overruns:0 frame:0 TX packets:2262 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:196829 (192.2 KiB) TX bytes:2736544 (2.6 MiB)

chirayu-patel commented 7 years ago

The tun1 interface started but tun0 interface got stopped

nzamps commented 7 years ago

Try setting radiuslisten to your WAN ip (192.168.2.9) in both configs....and when using a bridge you might want to add the usetap option.

chirayu-patel commented 7 years ago

Still no difference :( .. I wanted to know , how would the behvior be if I attach the same interface to both chilli instances.. ?

My usecase is pretty straight forward.. I want to support multiple SSIDs and each of them should direct to a captive portal when logged in.. thats it..