본문 바로가기

nftables

Ubuntu nftables 설치

source: https://wiki.nftables.org/wiki-nftables/index.php/Nftables_from_distributions

다음 글: 테이블 설정 / Configuring tables

 

Ubuntu 18.04 에서

salsal@r3:~$ lsb_release -d
Description:	Ubuntu 18.04.5 LTS

salsal@r3:~$ sudo apt policy nftables
[sudo] password for salsal:
nftables:
  Installed: (none)
  Candidate: 0.8.2-1
  Version table:
     0.8.2-1 500
        500 http://kr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

salsal@r3:~$ sudo apt install nftables
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libnftnl7
The following NEW packages will be installed:
  libnftnl7 nftables
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 247 kB of archives.
After this operation, 828 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://kr.archive.ubuntu.com/ubuntu bionic/universe amd64 libnftnl7 amd64 1.0.9-2 [62.1 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu bionic/universe amd64 nftables amd64 0.8.2-1 [185 kB]
Fetched 247 kB in 2s (135 kB/s)
Selecting previously unselected package libnftnl7:amd64.
(Reading database ... 166787 files and directories currently installed.)
Preparing to unpack .../libnftnl7_1.0.9-2_amd64.deb ...
Unpacking libnftnl7:amd64 (1.0.9-2) ...
Selecting previously unselected package nftables.
Preparing to unpack .../nftables_0.8.2-1_amd64.deb ...
Unpacking nftables (0.8.2-1) ...
Setting up libnftnl7:amd64 (1.0.9-2) ...
Setting up nftables (0.8.2-1) ...
Created symlink /etc/systemd/system/sysinit.target.wants/nftables.service → /lib/systemd/system/nftables.service.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...

salsal@r3:~$ sudo systemctl status nftables
● nftables.service - nftables
   Loaded: loaded (/lib/systemd/system/nftables.service; enabled; vendor preset:
   Active: active (exited) since Thu 2021-08-05 10:51:24 KST; 24s ago
     Docs: man:nft(8)
           http://wiki.nftables.org
  Process: 3005 ExecStart=/usr/sbin/nft -f /etc/nftables.conf (code=exited, stat
 Main PID: 3005 (code=exited, status=0/SUCCESS)

 8월 05 10:51:24 r3 systemd[1]: Starting nftables...
 8월 05 10:51:24 r3 systemd[1]: Started nftables.