How to Install apf-firewall in Ubuntu 18.04

Install apf-firewall by entering the following commands in the terminal:

sudo apt update
sudo apt install apf-firewall


easy iptables based firewall system

Advanced Policy Firewall (APF) is an iptables(netfilter) based firewall system designed around the essential needs of today's Internet deployed servers and the unique needs of custom deployed Linux installations. The configuration of APF is designed to be very informative and present the user with an easy to follow process, from top to bottom of the configuration file. The management of APF on a day-to-day basis is conducted from the command line with the 'apf' command, which includes detailed usage information and all the features one would expect from a current and forward thinking firewall solution. . Summary of features: * detailed and well commented configuration file * granular inbound and outbound network filtering * user id based outbound network filtering * application based network filtering * trust based rule files with an optional advanced syntax * global trust system where rules can be downloaded from a central management server * reactive address blocking (RAB), next generation in-line intrusion prevention * debug mode provided for testing new features and configuration setups * fast load feature that allows for 1000+ rules to load in under 1 second * inbound and outbound network interfaces can be independently configured * global tcp/udp port & icmp type filtering with multiple methods of executing filters (drop, reject, prohibit) * configurable policies for each ip on the system with convenience variables to import settings * packet flow rate limiting that prevents abuse on the most widely abused protocol, icmp * prerouting and postrouting rules for optimal network performance * block list support to ban networks exhibiting suspicious activity * spamhaus Don't Route Or Peer List support to ban known "hijacked zombie" IP blocks * any number of additional interfaces may be configured as firewalled (untrusted) or trusted (not firewalled) * additional firewalled interfaces can have there own unique firewall policies applied * intelligent route verification to prevent embarrassing configuration errors * advanced packet sanity checks to make sure traffic coming and going meets the strictest of standards * filter attacks such as fragmented UDP, port zero floods, stuffed routing, arp poisoning and more * configurable type of service options to dictate the priority of different types of network traffic * intelligent default settings to meet every day server setups * dynamic configuration of your servers local DNS revolvers into the firewall * optional filtering of common p2p applications * optional filtering of private & reserved IP address space


Version: 9.7+rev1-5.1

Section: universe/net