Securing SSH with tcp wrappers
From Sfvlug
(Difference between revisions)
| Line 1: | Line 1: | ||
/etc/hosts.deny | /etc/hosts.deny | ||
| + | <pre> | ||
ALL: ALL | ALL: ALL | ||
| + | </pre> | ||
/etc/hosts.allow | /etc/hosts.allow | ||
| + | <pre> | ||
ALL: localhost, 127.0.0.1, ::1 | ALL: localhost, 127.0.0.1, ::1 | ||
ALL: 192.168.1.0/255.255.255.0, [fe80::]/4 | ALL: 192.168.1.0/255.255.255.0, [fe80::]/4 | ||
| Line 10: | Line 13: | ||
sshd: /etc/hosts.deny.sshd : DENY | sshd: /etc/hosts.deny.sshd : DENY | ||
sshd: /etc/hosts.allow.sshd : spawn ( denyhosts ) | sshd: /etc/hosts.allow.sshd : spawn ( denyhosts ) | ||
| + | </pre> | ||
Revision as of 19:13, 27 August 2009
/etc/hosts.deny
ALL: ALL
/etc/hosts.allow
ALL: localhost, 127.0.0.1, ::1 ALL: 192.168.1.0/255.255.255.0, [fe80::]/4 sshd: /etc/hosts.deny.sshd : DENY sshd: /etc/hosts.allow.sshd : spawn ( denyhosts )
