| Summary: | PermitRootLogin by IP address block specification | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Daniel Senie <dts> |
| Component: | sshd | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | 3.6.1p2 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Daniel Senie
2005-03-08 06:56:46 AEDT
Would something like this in sshd_config do what you want (assuming your cluster addresses are 192.168.0.0/24, untested): DenyUsers root@!192.168.0.* Ha, thank you. The man page for the AllowUsers and DenyUsers does actually mention this, but it was not at all apparent without an example that a wildcarded IP address would do the trick. Guess this should become a suggestion for the documentation writers to add an example or two. It'd still be nice to permit based on CIDR, but what's there is sufficient for my immediate needs. Again, thanks for pointing this out. Supporting CIDR notation is an open enhancement request (see bug #976). Note that it may be possible to fool this by faking the reverse DNS resolution to look like an IP address (recent versions specifically check for this). Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4. |