1.13. Accelerating firewalld forwarded traffic
The firewalld service supports the flowtable functionality, which can improve performance of the forwarded traffic. The mechanism uses the kernel connection tracking to bypass the majority of the networking stack. As a result, you get the accelerated data packets of established connections.
The flowtable mechanism has the following features:
- Uses connection tracking to bypass the classic packet forwarding path.
- Avoids revisiting the routing table by bypassing the classic packet processing.
- Works only with TCP and UDP protocols.
- Hardware independent software fast path.
Procedure
Enable the flowtable feature:
# sed -i 's/^NftablesFlowtable=.*/NftablesFlowtable=enp1s0 enp2s0/' /etc/firewalld/firewalld.confThe command sets the
NftablesFlowtableoption (defaults tooff) in the/etc/firewalld/firewalld.conffile to a list of network interfaces for which you want the flowtable to be enabled. In this caseNftablesFlowtable=enp1s0 enp2s0.Reload your firewall configuration for the changes to take effect:
# firewall-cmd --reload