diff options
| author | Vito Graffagnino <vito@graffagnino.xyz> | 2020-09-08 18:10:49 +0100 |
|---|---|---|
| committer | Vito Graffagnino <vito@graffagnino.xyz> | 2020-09-08 18:10:49 +0100 |
| commit | 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (patch) | |
| tree | 2116c49a845dfc0945778f2aa3e2118d72be428b /vimwiki/Blocked IP addess.md | |
| parent | 8cc927e930d5b6aafe3e9862a61e81705479a1b4 (diff) | |
Added the relevent parts of the .config directory. Alss add ssh config
Diffstat (limited to 'vimwiki/Blocked IP addess.md')
| -rw-r--r-- | vimwiki/Blocked IP addess.md | 25 |
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` + + + + |
