This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
getting_started:20_install_ubuntu_coovachilli [2021/01/18 11:51] – [Installing CoovaChilli] admin | getting_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 **/ | ||
+ | * Find and uncomment **net.ipv4.ip_forward=1** line. | ||
===== Installing CoovaChilli ===== | ===== Installing CoovaChilli ===== | ||
- | * The version of CoovaChilli is 1.5 as of this writing. | + | * The version of CoovaChilli is 1.6 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: | ||
</ | </ | ||
- | * Download the **release 1.5**'s .tar.gz file of the source here: https:// | + | * Download the **release 1.6**'s .tar.gz file of the source here: https:// |
- | | + | * Before we can build the package, we have to remove a dependency (**hasrl**) specified in the Debian control |
- | * Before we can build the package we have to tweak one file that specifies the compiler flags. | + | |
- | | + | |
- | * You can read more about the issue here: https:// | + | |
<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.status: configure | + | #Depends: |
- | # | + | # ${shlibs: |
- | # | + | # iptables, |
- | # | + | # 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.status: configure | + | #Depends: |
- | # | + | # ${shlibs: |
- | # | + | # iptables, |
- | # | + | # 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 |
</ | </ | ||
* 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 | + | (Reading database ... 125842 |
- | 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 / | Chilli default off. Look at / | ||
- | 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) ... | + | |
</ | </ | ||
===== 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 (/ | + | Loaded: loaded (/ |
- | | + | |
- | | + | |
- | | + | Process: |
- | | + | |
- | 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 / | + | Jan 18 10:03:07 osboxes coova-chilli[98544]: PID 98544 loading binary options file / |
- | 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 / | + | Jan 18 10: |
- | Dec 20 20:07:51 osboxes chilli[14580]: | + | Jan 18 10:03:07 osboxes coova-chilli[98544]: Running / |
- | 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 |
</ | </ |