Difference between revisions of "nftables"
From wiki
(Enable) |
|||
Line 10: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | == Enable == | ||
+ | {{Warning}}It is recommended that you test your firewall before enabling it at boot time. An incorrectly configured firewall can lock you out of your machine.<syntaxhighlight lang="console"> | ||
+ | # systemctl enable nftables | ||
+ | </syntaxhighlight>It the script output `update-rc.d: error: nftables Default-Start contains no runlevels, aborting.`, don’t worry. The firewall is correctly enabled in systemd. This is bug [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804648 #804648]. | ||
+ | [[Category:Debian Release]] | ||
[[Category:Linux Server]] | [[Category:Linux Server]] |
Revision as of 14:02, 27 March 2016
nftables is the new firewall of the linux kernel.
Prerequisite
It is recommended to install the kernel from Jessie Backports.
Install
# apt install nftables
Enable
Warning: It is recommended that you test your firewall before enabling it at boot time. An incorrectly configured firewall can lock you out of your machine.
# systemctl enable nftables
It the script output `update-rc.d: error: nftables Default-Start contains no runlevels, aborting.`, don’t worry. The firewall is correctly enabled in systemd. This is bug #804648.