README.md
This commit is contained in:
parent
93fc8a6f7b
commit
afacbec64a
30
README.md
30
README.md
|
@ -26,25 +26,25 @@ sudo ./unninstall.sh
|
|||
|
||||
## 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
|
||||
systemctl enable blockauth
|
||||
systemctl start blockauth
|
||||
# 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"
|
||||
````
|
||||
|
||||
* IPs using one of the users in `valid_users` variable will never be blocked.
|
||||
* IPs of `always_ip_allowed` variable will never be blocked.
|
||||
* Add the service to the system startup and start it:
|
||||
|
||||
```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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user