coova / coova-chilli

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

Using uamregex #436

Open xOneca opened 6 years ago

xOneca commented 6 years ago

I am trying to get uamregex option to work, so I compiled CoovaChilli with --enable-chilliredir, but I can't make it work on version 1.2.8 (our production version), nor on 1.3.2 (latest stable?), nor with master (8ad8f6178efb1afc31c6ae542bea2d8df3f7b49c; with this one I had to use --forgiving).

What's more, I just compiled with --enable-chilliredir, without using redir nor uamregex options and 1.2.8 stopped working (without even trying to use uamregex), so I'm not sure what could be happening... :confused:

Has someone this working?

Compiled with ENABLE_DEBUG ENABLE_DEBUG2 ENABLE_ACCOUNTING_ONOFF ENABLE_CHILLIQUERY ENABLE_COA ENABLE_CHILLIREDIR ENABLE_DHCPRADIUS ENABLE_IEEE8021Q ENABLE_IPV6 ENABLE_LEAKYBUCKET ENABLE_TAP ENABLE_TCPRESET ENABLE_UAMANYIP

# Chilli config file for vap2
ipup '/etc/chilli/up.sh'
interval 0
pidfile '/var/run/chilli-vap2.pid'
cmdsock '/var/run/chilli-vap2.sock'
net 10.0.10.0/255.255.255.0
tundev chi2
usetap
dhcpif vap2
dhcpstart 100
dhcpend 200
uamlisten '10.0.10.1'
uamanydns
uamallowed '10.0.0.0/24'
dns1 10.0.10.1
uamserver 'https://example.com/'
uamsecret 'testing123'
radiusserver1 'radius.example.com'
radiusauthport 1812
radiusacctport 1813
radiussecret 'testing123'
radiuslocationname ''
radiuslocationid ''
radiusnasid 'My-NASID'

Launched as:

chilli --conf config.cfg --fg --debug