UFW는 우분투에 기본적으로 설치되어 있지만, 혹시 없다면 설치하기
$ sudo apt install ufw
IPv6사용 설정하기
$ sudo vi /etc/default/ufw
IPV6=yes로 변경한다
SSH 연결 허용
$ sudo ufw allow ssh
Ubuntu(20.04 LTS) SSH 접속 허용하기
openssh-server 패키지 설치 $ sudo apt update $ sudo apt install openssh-server 확인~ $ sudo systemctl status ssh 만약 ufw사용중이라면 ssh를 허용해준다 $ sudo ufw allow ssh 접속 시도 $ root@ipaddress..
gaemi606.tistory.com
특정 포트범위 허용
8080~8081의 범위에 해당하는 포트들은 모두 허용한다는 뜻!
포트범위를 지정할 때는 tcp또는 udp 프로토콜을 지정해야 한다.
$ sudo ufw allow 8080:8081/tcp
$ sudo ufw allow 8080:8081/udp
MySQL포트 허용
$ sudo ufw allow 3306
Ubuntu(20.04 LTS)에 MySQL 설치하기
넘넘 쉬운데 좀 더 정리놓을 수 있어?❤️맨날 까먹어서 그냥 한 번 정리한다. 기계적으로 업데이트를 해준 뒤 MySQL설치 중간에 y한 번 눌러주이소 $ sudo apt update $ sudo apt install mysql-server 설치가
gaemi606.tistory.com
How To Set Up a Firewall with UFW on Ubuntu 20.04 | DigitalOcean
This tutorial will show you how to set up a firewall with UFW on Ubuntu 20.04.
www.digitalocean.com
UncomplicatedFirewall - Ubuntu Wiki
Introduction The Linux kernel in Ubuntu provides a packet filtering system called netfilter, and the traditional interface for manipulating netfilter are the iptables suite of commands. iptables provide a complete firewall solution that is both highly conf
wiki.ubuntu.com
How To Configure Firewall with UFW on Ubuntu 20.04 LTS - nixCraft
In this tutorial, you will learn how to configure the firewall with UFW on Ubuntu Linux 20.04 LTS server or desktop to protect system from attacks.
www.cyberciti.biz
'STUDY > ECT' 카테고리의 다른 글
MacOS | SVN 연동 (0) | 2021.04.21 |
---|---|
IntelliJ IPv4 설정 (0) | 2021.04.08 |
Ubuntu(20.04 LTS) SSH 접속 허용하기 (0) | 2021.03.31 |
Ubuntu(20.04 LTS) vsftpd 설치 ( + FileZilla ) (0) | 2021.03.30 |
Ubuntu(20.04 LTS)에 MySQL 설치하기 (0) | 2021.03.30 |