Skip to content
Snippets Groups Projects
Verified Commit 4321309d authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Add docs for firewalld-cmd banning

parent 9db1b4a7
No related branches found
No related tags found
No related merge requests found
Pipeline #7386 passed
# Banning IP Addresses for abuse
```
firewall-cmd --add-rich-rule="rule family='ipv4' source address='1.1.1.1' reject"
```
```
firewall-cmd --add-rich-rule="rule family='ipv6' source address='1:2:3:4:6::' reject"
```
Note that on Gitlab, you must block the ip address for the docker zone:
```
firewall-cmd --add-rich-rule="rule family='ipv4' source address='1.1.1.1' reject" --zone=docker
```
To see the bans/rules:
```
firewall-cmd --list-all
```
To remove a banned IP Address:
```
firewall-cmd --remove-rich-rule='rule family="ipv6" source address="1:2:3:4:6::" reject'
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment