Beste Tweakers,
Er proberen de laatste tijd toch wel een scriptkiddies binnen te komen op mijn systeem.
Dit zal zoiezo niet lukke via ssh.. rootlogin=no en de gebruikersnamen zijn te complex..
Maar het geeft mij toch een beter gevoel als ik de ip's van die scriptkiddies kan blocken.
Dit zou kunnen met het hosts.deny bestand in /etc...
Deze heb ik ingevuld:
Nu krijg ik deze errors in mijn auth.log bestand:
Apr 3 12:13:21 hostname sshd[1599]: warning: /etc/hosts.deny, line 21: missing newline or line too long
Ik heb ook dit geprobeerd:
Nog steeds dezelfde foutmelding...
heeft iemand misschien een voorbeeld van dit bestand wat wel werkt?
Er proberen de laatste tijd toch wel een scriptkiddies binnen te komen op mijn systeem.
Dit zal zoiezo niet lukke via ssh.. rootlogin=no en de gebruikersnamen zijn te complex..
Maar het geeft mij toch een beter gevoel als ik de ip's van die scriptkiddies kan blocken.
Dit zou kunnen met het hosts.deny bestand in /etc...
Deze heb ik ingevuld:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| # /etc/hosts.deny: list of hosts that are _not_ allowed to access the system. # See the manual pages hosts_access(5), hosts_options(5) # and /usr/doc/netbase/portmapper.txt.gz # # Example: ALL: some.host.name, .some.domain # ALL EXCEPT in.fingerd: other.host.name, .other.domain # # If you're going to protect the portmapper use the name "portmap" for the # daemon name. Remember that you can only use the keyword "ALL" and IP # addresses (NOT host or domain names) for the portmapper. See portmap(8) # and /usr/doc/portmap/portmapper.txt.gz for further information. # # The PARANOID wildcard matches any host whose name does not match its # address. # You may wish to enable this to ensure any programs that don't # validate looked up hostnames still leave understandable logs. In past # versions of Debian this has been the default. # ALL: PARANOID ALL:198.161.28.40 ALL:200.13.195.11 ALL: .colomsat.net.co |
Nu krijg ik deze errors in mijn auth.log bestand:
Apr 3 12:13:21 hostname sshd[1599]: warning: /etc/hosts.deny, line 21: missing newline or line too long
Ik heb ook dit geprobeerd:
code:
1
2
3
| ALL: 198.161.28.40 ALL: 200.13.195.11 ALL: .colomsat.net.co |
Nog steeds dezelfde foutmelding...