README.md

This commit is contained in:
q3aql 2024-04-05 20:13:06 +02:00
parent 93fc8a6f7b
commit afacbec64a

View File

@ -26,25 +26,25 @@ sudo ./unninstall.sh
## How to run service: ## How to run service:
* First, edit the file `/etc/blockauth/blockauth.conf`: * First, edit the file `/etc/blockauth/blockauth.conf`:
```shell
# Blockauth configuration file
valid_users="test1 test2"
always_ip_allowed="192.168.0.1 192.168.0.2"
blocklist="/etc/blockauth/blocklist.list"
filelog="/etc/blockauth/blockauth.log"
````
* Add the service to the system startup and start it:
```shell ```shell
systemctl enable blockauth # Blockauth configuration file
systemctl start blockauth valid_users="test1 test2"
always_ip_allowed="192.168.0.1 192.168.0.2"
blocklist="/etc/blockauth/blocklist.list"
filelog="/etc/blockauth/blockauth.log"
```` ````
* IPs using one of the users in `valid_users` variable will never be blocked. * Add the service to the system startup and start it:
* IPs of `always_ip_allowed` variable will never be blocked.
```shell
systemctl enable blockauth
systemctl start blockauth
````
* IPs using one of the users in `valid_users` variable will never be blocked.
* IPs of `always_ip_allowed` variable will never be blocked.
## External links: ## External links: