- Turn on/off Firewall

$ sudo ufw {enable, disable}

 

- Ports and Protocols Open/Blocking

$ sudo ufw {allow, deny} {port}/{protocol}

ex. sudo ufw allow 80/tcp

ex. sudo ufw deny 80/tcp

 

- Remove Rule

$ sudo ufw delete {allow, deny} {port}/{protocol}

ex. sudo ufw delete allow 8080/tcp

ex. sudo ufw delete deny 8888/tcp

 

- IP Open/Blocking

$ sudo ufw {allow, deny} from {ip}

ex. sudo ufw allow from 10.0.0.1

ex. sudo ufw deny from 10.0.0.4

ex. sudo ufw delete deny from 10.0.0.4

 

- View Status

$ sudo ufw status

'Memo' 카테고리의 다른 글

코드 작성 기초 (Basic Coding)  (0) 2020.06.02
Python(.pyc) 디컴파일  (0) 2020.05.01
CTF 풀 때 도움 되는 사이트 정리  (0) 2020.04.13
GitHub 사용법  (0) 2020.04.13
iptime 3000U Network Drive Install  (0) 2020.04.07
Ubuntu Firewall Setup  (0) 2020.03.22