coova / coova-chilli

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

Cannot get HTTPs work on OpenWRT #462

Closed hoale58-vl closed 5 years ago

hoale58-vl commented 5 years ago

Hi, I'm having a problem with HTTPs configuration for coova-chilli. I couldn't get it working. Here is my configuration: `config chilli 'chilli1' option dhcpif 'br-lan'

    # RADIUS account details
    option radiusnasid   "nas01"
    option radiussecret  "******"
    option uamsecret '*******'

    # DNS
    option dns1 '8.8.8.8'
    option dns2 '8.8.4.4'

    # Radius parameters
    option radiusserver1 'myradius.com'
    #option radiusserver2 'myradius.com'

    # Tunnel and Subnet
    option tundev 'tun0'
    option uamlisten '192.168.182.1'
    option net '192.168.180.0/22'
    option lease '86400'
    option leaseplus '600'

    # UAM parameters
    option uamserver 'https://myradius.com/cake2/rd_cake/dynamic_details/chilli_browser_detect/'
    option uamport   3990
    option uamuiport   4990
    option uamanydns 1
    # Debug
    option swapoctets  1
    option interval   3600

    # Chilli firewall rules
    option ipup '/etc/chilli/up.sh'
    option ipdown '/etc/chilli/down.sh'

    # Allow MAC Auth
    option macauth 1

    # SSL Support
    option redirssl 1
    option uamuissl 1
    option sslcertfile /etc/selfsigned.crt
    option sslkeyfile /etc/selfsigned.key`

Those SSL key and certificate I generated by using OpenSSL on my Ubuntu system and copy to coova-chilli machine. I'm trying to access a simple http website, it redirect me to login page correctly what I need. But my login page cannot get json/status scripts on coova-chilli machine because of Mixed SSL problem. That's why I had to use SSL supported for my coova-chilli. I try to recompile coova-chilli with OpenSSL support and configure it like above but I can't make it work. I opened browser and accessed https://192.168.182.1:4990/json/status but no response util timeout. Also the link http://192.168.182.1:3990/json/status redirected me to login page too.

Have any one met the same with my problem here? Please help me! Thanks

hoale58-vl commented 5 years ago

I solved the problem myself. I forgot to compile my coova-chilli package with json library. I will close this issue.