최신 우분투에는 ufw가 기본인데, 기존 OS에는 없는 곳도 있군요.

ufw를 사용하는 방법 공유합니다.

 

[root@mydata ~]# ufw
-bash: ufw: command not found
[root@mydata ~]# uname -a
Linux mydata 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@mydata ~]#
[root@mydata ~]#
[root@mydata ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@mydata ~]# yum install ufw
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
epel/x86_64/metalink                                                                                                                                                           | 5.6 kB  00:00:00
 * base: mirror.navercorp.com
 * epel: ftp.riken.jp
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
base                                                                                                                                                                           | 3.6 kB  00:00:00
epel                                                                                                                                                                           | 4.3 kB  00:00:00
extras                                                                                                                                                                         | 2.9 kB  00:00:00
ius                                                                                                                                                                            | 1.3 kB  00:00:00
mysql-connectors-community                                                                                                                                                     | 2.6 kB  00:00:00
mysql-tools-community                                                                                                                                                          | 2.6 kB  00:00:00
mysql56-community                                                                                                                                                              | 2.6 kB  00:00:00
updates                                                                                                                                                                        | 2.9 kB  00:00:00
(1/8): extras/7/x86_64/primary_db                                                                                                                                              | 253 kB  00:00:00
(2/8): ius/x86_64/primary                                                                                                                                                      |  40 kB  00:00:00
(3/8): mysql-connectors-community/x86_64/primary_db                                                                                                                            | 114 kB  00:00:00
(4/8): epel/x86_64/group                                                                                                                                                       | 399 kB  00:00:00
(5/8): mysql-tools-community/x86_64/primary_db                                                                                                                                 |  98 kB  00:00:00
(6/8): updates/7/x86_64/primary_db                                                                                                                                             |  27 MB  00:00:00
(7/8): epel/x86_64/updateinfo                                                                                                                                                  | 1.0 MB  00:00:01
(8/8): epel/x86_64/primary_db                                                                                                                                                  | 8.7 MB  00:00:05
ius                                                                                                                                                                                           159/159
Resolving Dependencies
--> Running transaction check
---> Package ufw.noarch 0:0.35-9.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================
 Package                                      Arch                                            Version                                             Repository                                     Size
======================================================================================================================================================================================================
Installing:
 ufw                                          noarch                                          0.35-9.el7                                          epel                                          220 k

Transaction Summary
======================================================================================================================================================================================================
Install  1 Package

Total download size: 220 k
Installed size: 905 k
Is this ok [y/d/N]: y
Downloading packages:
ufw-0.35-9.el7.noarch.rpm                                                                                                                                                      | 220 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ufw-0.35-9.el7.noarch                                                                                                                                                              1/1
  Verifying  : ufw-0.35-9.el7.noarch                                                                                                                                                              1/1

Installed:
  ufw.noarch 0:0.35-9.el7

Complete!
[root@mydata ~]#

'기술 노트 > centOS' 카테고리의 다른 글

CENTOS 9 절전모드 해제  (0) 2023.02.15

+ Recent posts