728x90
반응형
- ‘firewalld’ 사용하여 특정 IP만 차단&제거
- ‘firewall-cmd --state’ or ‘systemctl status firewalld’명령어로 상태 확인
- 특정 IP에 대해 해당 서버에 접근 차단
- sudo firewall-cmd --permanent –add-rich-rule=’rule family=”ipv4” source address=x.x.x.x reject’
- 피드백을 보내주는 명령어
- sudo firewall-cmd --permanent –add-rich-rule=’rule family=”ipv4” source address=x.x.x.x drop’
- 피드백을 보내지 않는 명령어
- 제거하기
- sudo firewall-cmd --permanent –remove-rich-rule=’rule family=”ipv4” source address=x.x.x.x reject’
- 피드백을 보내주는 명령어
- sudo firewall-cmd --permanent –remove-rich-rule=’rule family=”ipv4” source address=x.x.x.x drop’
- 피드백을 보내주지 않는 명령어
728x90
반응형
'System Engineering' 카테고리의 다른 글
리눅스 root 계정 원격 접속 차단 방법 (0) | 2023.04.16 |
---|---|
리눅스 tune2fs 명령어 사용법 (0) | 2023.04.14 |
리눅스 /etc 내부 디렉토리 설명 (1) | 2023.04.14 |
리눅스 bonding 구성 방법 (0) | 2023.04.14 |
리눅스 raid 구성 테스트 (1) | 2023.04.14 |
댓글