From 32bf9d5ffad5f0d8f1459bd51682b686f8ac6511 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Mon, 11 Jun 2018 15:35:22 +0200 Subject: [PATCH] [fix] Add missing firewall rule --- security.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/security.md b/security.md index 8a99de80..b4dcf144 100644 --- a/security.md +++ b/security.md @@ -61,6 +61,11 @@ nano /etc/ssh/sshd_config Port 22 # to replace by 9777 for example ``` +**Open the port** in firewall (you can use -6 option to limit forbid ipv4 connexion) +```bash +yunohost firewall allow TCP 9777 +``` + Save and restart SSH daemon. Switch over to the new port by restarting SSH. ```bash /etc/init.d/ssh restart @@ -70,7 +75,6 @@ Then restart the iptables firewall and close the old port in iptables. ```bash yunohost firewall reload yunohost firewall disallow # port by default 22 -yunohost firewall disallow --ipv6 TCP # for ipv6 ``` **For the next SSH connections ** you need to add the `-p` option followed by the SSH port number.