port란?
네트워크 연결이 시작하고 끝나는 허상의 지점을 port라고 한다.
(영어여서 약간의 의역.....이 들어가있다. 필자는 영어를 못한다.)
자세한 설명은 사이트에서 확인하는게 빠를지로 모른다.
https://www.cloudflare.com/ko-kr/learning/network-layer/what-is-a-computer-port/
What is a computer port? | Ports in networking
Ports are virtual places within an operating system where network connections start and end. Learn how network ports work and the most-used port numbers.
www.cloudflare.com
열린 포트 확인
iptables -nL
netstat -nap | 열려있는 모든 포트 확인 |
netstat -nap |grep '포트번호' | 확인하려는 포트번호 상태확인 |
netstat -nap |grep LISTEN | 현재 LISTEN중인 포트 확인 |
출처: https://bottlecok.tistory.com/entry/Linux-포트-열기-조회-삭제하기 [잡캐의 IT 꿀팁]
포트 추가
iptables -I INPUT 1 -p tcp --dport [포트 번호] -j ACCEPT
iptables -I OUTPUT 1 -p tcp --dport [포트 번호] -j ACCEPT
포트 삭제
iptables -D INPUT -p tcp --dport [포트번호] -j ACCEPT
iptables -D OUTPUT -p tcp --dport [포트번호] -j ACCEPT
'Kali Linux' 카테고리의 다른 글
Could not get lock /var/lib/dpkg/lock-frontend error (0) | 2022.08.28 |
---|---|
칼리 기본 명령어 (0) | 2021.10.23 |
칼리리눅스 가상서버 와이파이 설정하기. (0) | 2021.08.01 |
kali linux 루트계정 로그인 (2) | 2020.11.22 |