From 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 Mon Sep 17 00:00:00 2001 From: Vito Graffagnino Date: Tue, 8 Sep 2020 18:10:49 +0100 Subject: Added the relevent parts of the .config directory. Alss add ssh config --- vimwiki/Blocked IP addess.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 vimwiki/Blocked IP addess.md (limited to 'vimwiki/Blocked IP addess.md') diff --git a/vimwiki/Blocked IP addess.md b/vimwiki/Blocked IP addess.md new file mode 100644 index 0000000..5d752e8 --- /dev/null +++ b/vimwiki/Blocked IP addess.md @@ -0,0 +1,25 @@ +Unlike the cluster which uses fail2ban to block ip addresses, if a user is prevented from connecting to star server +the process is a little different. + +`star-server` uses the `denyhosts` service which adds the ip address to the file: `/etc/hosts.deny` + +However simply removing the ip address from this file is not sufficient. Firstly the denyhosts service has to be stopped by the following command: + +`$ systemctl stop denyhosts.sevice` + +Then the ip address has to be removed from the following files: + +`/etc/hosts.deny` +`/var/lib/denyhosts/hosts` +`/var/lib/denyhosts/hosts-restricted` +`/var/lib/denyhosts/hosts-root` +`/var/lib/denyhosts/hosts-valid` +`/var/lib/denyhosts/users-hosts` + +The denyhosts service can then be restarted with: + +`$ systemctl start denyhosts.sevice` + + + + -- cgit v1.2.3