coova / coova-chilli

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

Configure nochallenge #528

Closed tranvanhoa533 closed 2 years ago

tranvanhoa533 commented 3 years ago

I use coova 1.4 on openwrt 19.07.7.

I try to configure nochallenge so I add the option nochallenge 1 to file /etc/config/chilli.

I start coova with cmd: /etc/init.d/chilli start and always get an error.

Tue Aug 24 22:46:40 2021 daemon.debug chilli[3847]: (Re)processing options [/var/run/chilli.3847.cfg.bin]
Tue Aug 24 22:46:40 2021 daemon.err chilli[3847]: chilli[3847]: (Re)processing options [/var/run/chilli.3847.cfg.bin]
Tue Aug 24 22:46:40 2021 daemon.debug chilli[3849]: running chilli_opt on /var/run/chilli.3847.cfg.bin
Tue Aug 24 22:46:40 2021 daemon.err chilli[3847]: chilli[3849]: running chilli_opt on /var/run/chilli.3847.cfg.bin
Tue Aug 24 22:46:40 2021 daemon.err chilli[3847]: coova-chilli: option does not take an argument: nochallenge
Tue Aug 24 22:46:40 2021 daemon.warn chilli[3847]: could not generate configuration (/var/run/chilli.3847.cfg.bin), sleeping one second
Tue Aug 24 22:46:40 2021 daemon.err chilli[3847]: chilli[3847]: could not generate configuration (/var/run/chilli.3847.cfg.bin), sleeping one second

How can i configure nochallenge in openwrt.

Thank you.

gmarsay commented 3 years ago

Hi @tranvanhoa533,

Maybe use value flag "on" for "nochallenge" option, not "1"

https://github.com/coova/coova-chilli/blob/06a8f1b6c1be2648d05509700f1e0f85b2088e61/src/cmdline.ggo#L239

tranvanhoa533 commented 3 years ago

Hi @gmarsay

I tried configuring as you instructed: option nochallenge on, but I still get the same error.

nemesifier commented 2 years ago

It's a problem in the init.d script of the OpenWrt 19.07 package.

tranvanhoa533 commented 2 years ago

I added the flag nochallenge in cmd start in the init.d script and it worked for me.

Thank you very much

Vào Th 7, 9 thg 7, 2022 vào lúc 06:15 Federico Capoano < @.***> đã viết:

It's a problem in the init.d script of the OpenWrt 19.07 package.

— Reply to this email directly, view it on GitHub https://github.com/coova/coova-chilli/issues/528#issuecomment-1179423014, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLMVXGGXKY6NYNFHO2HKSLVTCZBJANCNFSM5CXELFYA . You are receiving this because you were mentioned.Message ID: @.***>

nemesifier commented 2 years ago

@tranvanhoa533 please close this issue because this issue is not caused by coova-chilli but by the package on OpenWrt 19.07.