1. 특정 IP 막기
1 2 3 |
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address=69.30.0.0/16 reject' |
2. firewall 적용
1 2 3 |
firewall-cmd –reload |
3. firewall 적용 확인
1 2 3 |
firewall-cmd –list-all |
4. IP 풀기
1 2 3 |
sudo firewall-cmd --permanent --remove-rich-rule='rule family="ipv4" source address=69.30.0.0/16 reject |
4.1 firewall 적용
1 2 3 |
firewall-cmd –reload |