coova / coova-chilli

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

Coovachilli DNS issue: DNS doesn't respond #410

Open ajanta26 opened 6 years ago

ajanta26 commented 6 years ago

Hi,

I have compiled coova-chilli-1.4 and trying to connect WiFi client using my wireless access point, I have created different VLANs on the system where coovachilli is running to use multiple access point with different services. But chilli shows very erratic behaviour, I am not receiving any respond from DNS server (DNS server configuration is fine). Sometimes, captive portal comes, sometimes I can access Internet without authenticating in captive portal with the same config (chilli config file). Additionally, I get IP address in iPhone but after that nothing happens, doesn't show the captive portal at all.

My config file: HS_LANIF=eth1.10 HS_NETWORK=192.168.165.0 HS_NETMASK=255.255.255.0 HS_UAMLISTEN=192.168.165.1 HS_UAMPORT=4000 HS_UAMUIPORT=5000 HS_DNS1=192.168.40.2

HS_DNS2=208.67.220.220

HS_NASID=10 HS_RADIUS=192.168.71.182

HS_RADIUS2=localhost

HS_UAMALLOW="192.168.165.0/24,192.168.71.182" HS_RADSECRET=testing123 HS_UAMSECRET=change-me # Set to be your UAM secret HS_UAMALIASNAME=chilli HS_NASIP=192.168.25.143 HS_UAMFORMAT=http://\$HS_UAMLISTEN:\$HS_UAMUIPORT/www/login.chi HS_UAMHOMEPAGE=http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html HS_TCP_PORTS="80 8000 53 22 1812 67 443 161" HS_MODE=hotspot HS_TYPE=chillispot HS_WWWDIR=/usr/local/etc/chilli/www HS_WWWBIN=/usr/local/etc/chilli/wwwsh

Any help will be great, thanks in advance !!!

nzamps commented 6 years ago

Do you have a separate chilli instance and config for each VLAN?

ajanta26 commented 6 years ago

Yes, I have. I change the chilli bash file and passing the lan interface (HS_LANIF) as an argument.

nzamps commented 6 years ago

In that case you'll need to check the configs to ensure some values are unique per instance e.g.

dhcpif cmdsocket unixipc pidfile uamport uamuiport

ajanta26 commented 6 years ago

Yes, I have checked and everything is unique, to test I have checked with no VLAN and just creating one VLAN also but the result is same.

nzamps commented 6 years ago

That's usually the problem for us and we run many instances on one VM.
Also try removing 192.168.165.0/24 from the HS_UAMALLOW - you probably don't want this.

OctoberHub commented 6 years ago

Hello, I also encountered the same problem, I do not know this problem solved? Thank you

amitetw commented 6 years ago

Hi All, I am also facing the same issue. Request some expert to comment on it !!