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 12:04] – [Enable 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 file. | * Before we can build the package, we have to remove a dependency (**hasrl**) specified in the Debian control file. | ||
* This dependency is not required and including it causes trouble when you want to **install** the package. | * This dependency is not required and including it causes trouble when you want to **install** the package. | ||
- | * We also have to tweak one file that specifies the compiler flags. | ||
- | * 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:// | ||
<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/ | vi debian/ | ||
Line 50: | Line 52: | ||
# adduser, | # adduser, | ||
#----- | #----- | ||
- | |||
- | |||
- | |||
- | vi debian/ | ||
- | #Look for this part | ||
- | #------ | ||
- | # | ||
- | # dh_testdir | ||
- | # CFLAGS=" | ||
- | # --prefix=/ | ||
- | #------ | ||
- | #------ CHANGE TO THIS (add -Wno-error=stringop-truncation -Wno-error=address-of-packed-member ) | ||
- | #------ | ||
- | # | ||
- | # dh_testdir | ||
- | # CFLAGS=" | ||
- | # --prefix=/ | ||
- | #------- | ||
- | |||
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 | + | Selecting previously unselected package |
- | (Reading database ... 122030 | + | (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) over (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.31-0ubuntu9.1) ... | + | Processing triggers for libc-bin (2.31-0ubuntu9.2) ... |
- | Processing triggers for systemd (245.4-4ubuntu3.3) ... | + | Processing triggers for systemd (245.4-4ubuntu3.6) ... |
Processing triggers for man-db (2.9.1-1) ... | Processing triggers for man-db (2.9.1-1) ... | ||
</ | </ |