-
Notifications
You must be signed in to change notification settings - Fork 103
Install from packages
Debian 9 Stretch is the only officially supported Linux distribution for the moment. Prebuilt packages are available for both patched kernel and TempestaFW. Kernel package is build with patches from Debian maintainers and kernel configuration.
Installer script allows to install latest TempestaFW release by single command. It installs all the required packages, downloads latest TempestaFW and patched kernel releases and installs them.
Run the next commands to automatically install or update TempestaFW:
wget https://raw.github.com/tempesta-tech/tempesta/ik-dw-script/pkg/scripts/tempesta_installer.sh
chmod +x tempesta_installer.sh
sudo ./tempesta_installer.sh --install
The same script can be used to remove TempestaFW. --remove
option will hold
configuration file on server, while --purge
completely removes TempestaFW and
all configuration files:
sudo ./tempesta_installer.sh --remove
sudo ./tempesta_installer.sh --purge
See section Running TempestaFW for further instructions.
Download Debian packages from
the patched kernel repository releases page.
Release page contains all packages built from linux
source package. But the
minimum set of packages to run TempestaFW is relatively small:
- linux-image-4.8.0-tempesta-amd64-unsigned_4.8.15-tfw1-1_amd64.deb
- linux-kbuild-4.8_4.8.15-tfw1-1_amd64.deb
- linux-headers-4.8.0-tempesta-common_4.8.15-tfw1-1_amd64.deb
- linux-headers-4.8.0-tempesta-amd64_4.8.15-tfw1-1_amd64.deb
- linux-headers-4.8.0-tempesta-all-amd64_4.8.15-tfw1-1_amd64.deb
- linux-headers-4.8.0-tempesta-all_4.8.15-tfw1-1_amd64.deb
Simply install packages one-by-one in the same order as listed above:
dpkg -i <package-file>
Refer to Install from Sources section to compile and install custom kernel.
TepmestaFW is available as a DKMS module from TempestaFW releases page. That allow to recompile TempestaFW once kernel was updated and support both AVX2 capable and not-capable machines with single package, but require to have compile-time dependencies.
Since TempestaFW is implemented as in-kernel module and it is under development,
issues in it can affect stability of the kernel and may lead to a kernel
crush. As a solution kdump
is set as dependency for TempestaFW. It allows to
save crash dump information to /var/crash/%Date%
and reboot system after the
crash. It is highly recommended to enable kdump
during install of
kdump-tools
package. kdump
requires system reboot after installation.
First, install TempestaFW package dependencies. This step can be skipped
if gdebi
is used to install packages from .deb
files, since it
can download required packages automatically.
apt-get install dkms libboost-dev libboost-program-options-dev kdump-tools
Configure DKMS to build installed modules against all kernels, not only
the running one. Append line below to /etc/dkms/framework.conf
:
autoinstall_all_kernels="yes"
Finally, install TempestaFW:
dpkg -i tempesta-fw-dkms*
Once package is installed it will be build against all supported kernels. Installation of a new version of TempestaFW package will not stop or reload running TempestaFW instance. Manual restart is required.
First, reboot to tempesta-patched kernel. You may want to set the patched kernel as default.
Then, edit TempestaFW configuration file:
sudo vim /etc/tempesta_fw.conf
More information about configuration is available in Readme.
Finally, systemd unit files can be used for convenient management of TempestaFW. To start and stop TempestaFW use the next commands:
systemctl start tempesta-fw.service
systemctl stop tempesta-fw.service
To add or remove TempestaFW from bootup process, use:
systemctl enable tempesta-fw.service
systemctl disable tempesta-fw.service
- Home
- Requirements
- Installation
-
Configuration
- Migration from Nginx
- On-the-fly reconfiguration
- Handling clients
- Backend servers
- Load Balancing
- Caching Responses
- Non-Idempotent Requests
- Modify HTTP Messages
- Virtual hosts and locations
- HTTP Session Management
- HTTP Tables
- HTTP(S) Security
- Header Via
- Health monitor
- TLS
- Virtual host confusion
- Traffic Filtering by Fingerprints
- Run & Stop
- Application Performance Monitoring
- Use cases
- Performance
- Contributing