From 15341019db888853d1f967249ee843d26d3a362c Mon Sep 17 00:00:00 2001 From: TheK4n Date: Fri, 1 Oct 2021 19:58:13 +0300 Subject: [PATCH] add ssh white black list in README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 0f8060d..7c32e72 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,20 @@ ssh host_name sftp host_name ``` + + +### White and black lists + +add white list to ```/etc/hosts.allow```: +```text +sshd: 10.83.33.77/32, 10.63.152.9/32, 10.12.100.11/28, 10.82.192.0/28 +``` + +add black list to ```/etc/hosts.deny```: +```text +sshd: ALL +``` + ## Tips