mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
Update banning docs for wireguard
This commit is contained in:
parent
9f54f8e07b
commit
77753e266f
@ -1,11 +1,19 @@
|
||||
# Banning IP Addresses for abuse
|
||||
|
||||
For banning with an expiry `fail2ban` can be used, the expiry time depends on the configured fail2ban jail:
|
||||
|
||||
```
|
||||
firewall-cmd --add-rich-rule="rule family='ipv4' source address='1.1.1.1' reject"
|
||||
fail2ban-client set sshd banip 1.1.1.1
|
||||
```
|
||||
|
||||
To permanently ban an IP address `firewall-cmd` can be used as shown below:
|
||||
|
||||
```
|
||||
firewall-cmd --add-rich-rule="rule family='ipv4' source address='1.1.1.1' reject" --zone=public
|
||||
```
|
||||
|
||||
```
|
||||
firewall-cmd --add-rich-rule="rule family='ipv6' source address='1:2:3:4:6::' reject"
|
||||
firewall-cmd --add-rich-rule="rule family='ipv6' source address='1:2:3:4:6::' reject" --zone=public
|
||||
```
|
||||
|
||||
Note that on Gitlab, you must block the ip address for the docker zone:
|
||||
@ -23,5 +31,5 @@ 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'
|
||||
firewall-cmd --remove-rich-rule='rule family="ipv6" source address="1:2:3:4:6::" reject' --zone=public
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user