coova / coova-chilli

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

problem with --enable-sessgarden #352

Open imtase opened 7 years ago

imtase commented 7 years ago

Ubuntu 16.04, try to build with option --enable-sessgarden in ./configure. Have no error chilli working well but when try to make an addgarden

sudo chilli_query addgarden ip 172.16.0.20 data facebook.com

Go in global in dynamic garden and not only for the ip or mac (try also with mac address and different version of coovachilli for the same result).

dynamic garden (1/1024):
host=157.240.10.35    mask=255.255.255.255  proto=0   port=0

My full configure is:

./configure --enable-json --enable-gardenaccounting  --enable-gardenext --enable-chillixml --enable-largelimits --enable-sessionid --enable-miniportal --enable-libjson --with-nfcoova --prefix=/

Thanks for the help

nzamps commented 7 years ago

You need to add --enable-sessgarden to configure (it's not in your configure line above). Also, looking at the code, the user needs to be connected.