summaryrefslogtreecommitdiff
path: root/vimwiki/Blocked IP addess.md
diff options
context:
space:
mode:
Diffstat (limited to 'vimwiki/Blocked IP addess.md')
-rw-r--r--vimwiki/Blocked IP addess.md25
1 files changed, 25 insertions, 0 deletions
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`
+
+
+
+