On this page
Kernel: Module Compilation
Iptables is nowadays the Linux firewall of choice. However, when you’re a beginner, it’s not always easy to know what each module corresponds to.
Minimum Requirements
What do you need to recompile at minimum for the kernel?
CONFIG_PACKET - Direct communication with network interfaces
CONFIG_NETFILTER - Kernel management, necessary for Netfilter
CONFIG_IP_NF_CONNTRACK - Necessary for NAT and Masquerade
CONFIG_IP_NF_NETFILTER - Adds NETFILTER table
CONFIG_IP_NF_IPTABLES - Required for iptables user space utility
CONFIG_IP_NF_MANGLE - Adds MANGLE table
CONFIG_IP_NF_NAT - Adds NAT table
Rule not to add:
CONFIG_NET_FASTROUTE - Fast routing bypasses NETFILTER entry points
Legacy Firewall Compatibility
Here are the modules that will provide compatibility with previous firewalls:
CONFIG_IP_NF_COMPAT_IPCHAINS
CONFIG_IP_NF_COMPAT_IPFWADM
Service-Specific Modules
This is a list of modules needed according to the services you want to use:
IP_CONNTRACK_AMANDA - Amanda is a backup software
IP_CONNTRACK_FTP - FTP is used for file transfers
IP_CONNTRACK_IRC - IRC (Internet Relay Chat)
IP_CONNTRACK_TFTP - Trivial FTP
Last updated 27 Aug 2006, 22:24 CEST.