RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
getting_started:20_install_ubuntu_coovachilli [2021/01/18 11:51] – [Installing CoovaChilli] admingetting_started:20_install_ubuntu_coovachilli [2021/06/15 22:10] (current) – [Installing CoovaChilli] admin
Line 8: Line 8:
   * The second network card will be used to run a captive portal on (LAN).    * The second network card will be used to run a captive portal on (LAN). 
   * This captive portal is created by the CoovaChilli program who in turn receives it's instructions from FreeRADIUS (RADIUSdesk)   * This captive portal is created by the CoovaChilli program who in turn receives it's instructions from FreeRADIUS (RADIUSdesk)
 +
 +===== Enable Packet forwarding for IPv4 =====
 +  * The machine running Coova Chilli will act as a router and thus needs to be configured as such.
 +  * This means that the IP packets needs to be **forwarded** from one interface to the other.
 +  * Edit the **/etc/sysctl.conf**
 +  * Find and uncomment **net.ipv4.ip_forward=1** line.
  
 ===== Installing CoovaChilli ===== ===== Installing CoovaChilli =====
-   * The version of CoovaChilli is 1.as of this writing.+   * The version of CoovaChilli is 1.as of this writing.
    * We will download and build the .deb package from source.    * We will download and build the .deb package from source.
    * First ensure the required packages to build the .deb package are installed.    * First ensure the required packages to build the .deb package are installed.
Line 19: Line 25:
 </code> </code>
  
-   * Download the **release 1.5**'s .tar.gz file of the source here: https://github.com/coova/coova-chilli/releases +   * Download the **release 1.6**'s .tar.gz file of the source here: https://github.com/coova/coova-chilli/releases 
-    A point of interest is that although the source's tar file specifies it as version 1.5; the package itself will be specified as 1.4. +   * Before we can build the packagewe have to remove a dependency (**hasrl**) specified in the Debian control file. 
-   * Before we can build the package we have to tweak one file that specifies the compiler flags+   This dependency is not required and including it causes trouble when you want to **install** the package.
-   With the newer versions of GCC that comes with Ubuntu we have to **add** some compiler flags in order for the package to be created. +
-   * You can read more about the issue here: https://github.com/coova/coova-chilli/issues/501+
  
 <code bash> <code bash>
 # If you downloaded with wget # If you downloaded with wget
-tar -xzvf 1.5.tar.gz+tar -xzvf 1.6.tar.gz
 # If you downloaded with the browser  # If you downloaded with the browser 
-tar -xzvf coova-chilli-1.5.tar.gz +tar -xzvf coova-chilli-1.6.tar.gz 
-cd coova-chilli-1.5/+cd coova-chilli-1.6/
  
- +vi debian/control
-vi debian/rules +
 #Look for this part #Look for this part
 #------ #------
-#config.statusconfigure +#Depends
-       dh_testdir +${shlibs:Depends}, 
-       CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ +iptables, 
-       --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \+haserl, 
 +# adduser,
 #------ #------
-#------ CHANGE TO THIS (add -Wno-error=stringop-truncation -Wno-error=address-of-packed-member )+#------ CHANGE TO THIS (remove haserl as a dependency)
 #------ #------
-#config.statusconfigure +#Depends
-       dh_testdir +${shlibs:Depends}, 
-       CFLAGS="-Wno-error=stringop-truncation -Wno-error=address-of-packed-member $(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ +iptables, 
-       --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ +adduser, 
-#------- +#-----
  
 debuild -i -us -uc -b debuild -i -us -uc -b
 cd .. cd ..
-sudo dpkg --install coova-chilli_1.4_amd64.deb+sudo dpkg --install coova-chilli_1.6_amd64.deb
 </code> </code>
    * From the output of the dpkg command you will see that CoovaChilli is by default disabled. In the next section we will configure it to become a working entity.    * From the output of the dpkg command you will see that CoovaChilli is by default disabled. In the next section we will configure it to become a working entity.
-   * You can also see it is listed as **version 1.4** although we actually downloaded and built **version 1.5** 
 <code bash> <code bash>
- sudo dpkg --install coova-chilli_1.4_amd64.deb 
-[sudo] password for system: 
 Selecting previously unselected package coova-chilli. Selecting previously unselected package coova-chilli.
-(Reading database ... 119514 files and directories currently installed.) +(Reading database ... 125842 files and directories currently installed.) 
-Preparing to unpack coova-chilli_1.4_amd64.deb ... +Preparing to unpack coova-chilli_1.6_amd64.deb ... 
-Unpacking coova-chilli (1.4) ... +Unpacking coova-chilli (1.6) ... 
-Setting up coova-chilli (1.4) ...+Setting up coova-chilli (1.6) ...
 Chilli default off. Look at /etc/default/chilli Chilli default off. Look at /etc/default/chilli
-Processing triggers for libc-bin (2.27-3ubuntu1) ... +Processing triggers for libc-bin (2.31-0ubuntu9.2) ... 
-Processing triggers for systemd (237-3ubuntu10.33) ... +Processing triggers for systemd (245.4-4ubuntu3.6) ... 
-Processing triggers for ureadahead (0.100.0-21) ... +Processing triggers for man-db (2.9.1-1) ...
-Processing triggers for man-db (2.8.3-2ubuntu0.1) ...+
 </code> </code>
 ===== Configuring CoovaChilli ===== ===== Configuring CoovaChilli =====
Line 98: Line 97:
 <code bash> <code bash>
 ● chilli.service - LSB: Start CoovaChilli daemon at boot time ● chilli.service - LSB: Start CoovaChilli daemon at boot time
-   Loaded: loaded (/etc/init.d/chilli; generated) +     Loaded: loaded (/etc/init.d/chilli; generated) 
-   Active: active (exited) since Fri 2019-12-20 20:07:51 UTC; 1s ago +     Active: active (exited) since Mon 2021-01-18 10:03:07 UTC; 7s ago 
-     Docs: man:systemd-sysv-generator(8) +       Docs: man:systemd-sysv-generator(8) 
-  Process: 14452 ExecStop=/etc/init.d/chilli stop (code=exited, status=0/SUCCESS) +    Process: 98449 ExecStart=/etc/init.d/chilli start (code=exited, status=0/SUCCESS)
-  Process: 14491 ExecStart=/etc/init.d/chilli start (code=exited, status=0/SUCCESS)+
  
-Dec 20 20:07:51 osboxes chilli[14580]: TX queue length set to 100 +Jan 18 10:03:07 osboxes chilli[98540]: TX queue length set to 100 
-Dec 20 20:07:51 osboxes coova-chilli[14585]: PID 14585 loading binary options file /var/run/chilli.14580.cfg.bin +Jan 18 10:03:07 osboxes coova-chilli[98544]: PID 98544 loading binary options file /var/run/chilli.98540.cfg.bin 
-Dec 20 20:07:51 osboxes coova-chilli[14585]: Loading modules +Jan 18 10:03:07 osboxes coova-chilli[98544]: Loading modules 
-Dec 20 20:07:51 osboxes coova-chilli[14585]: USER root(0/0), GROUP root(0/0) CHILLI[UID 113, GID 116+Jan 18 10:03:07 osboxes chilli[98540]No such device: ioctl(SIOCSIFFLAGS) failed on eth1 
-Dec 20 20:07:51 osboxes coova-chilli[14585]: Running /etc/chilli/up.sh (0/0) +Jan 18 10:03:07 osboxes coova-chilli[98544]: USER root(0/0), GROUP root(0/0) CHILLI[UID 113, GID 118
-Dec 20 20:07:51 osboxes chilli[14580]: No such device: ioctl(SIOCSIFFLAGS) failed on eth1 +Jan 18 10:03:07 osboxes coova-chilli[98544]: Running /etc/chilli/up.sh (0/0) 
-Dec 20 20:07:51 osboxes chilli[14580]: No such device: ioctl(SIOCSIFFLAGS) failed +Jan 18 10:03:07 osboxes chilli[98540]: No such device: ioctl(SIOCSIFFLAGS) failed 
-Dec 20 20:07:51 osboxes chilli[14580]: No such device: ioctl(SIOCSIFADDR) failed +Jan 18 10:03:07 osboxes chilli[98540]: No such device: ioctl(SIOCSIFADDR) failed 
-Dec 20 20:07:51 osboxes chilli[14580]: No such device: ioctl(d=2, request=35111) failed +Jan 18 10:03:07 osboxes chilli[98540]: No such device: ioctl(d=2, request=35111) failed 
-Dec 20 20:07:51 osboxes chilli[14580]: Failed to create dhcp listener on eth1+Jan 18 10:03:07 osboxes chilli[98540]: Failed to create dhcp listener on eth1
  
 </code> </code>