1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00
This commit is contained in:
downtownallday 2024-09-03 10:50:43 -04:00
commit 158c7f8921

View File

@ -283,7 +283,7 @@ if [ -z "${DISABLE_FIREWALL:-}" ]; then
# too. #NODOC # too. #NODOC
SSH_PORT=$(sshd -T 2>/dev/null | grep "^port " | sed "s/port //" | tr '\n' ' ') #NODOC SSH_PORT=$(sshd -T 2>/dev/null | grep "^port " | sed "s/port //" | tr '\n' ' ') #NODOC
if [ -n "$SSH_PORT" ]; then if [ -n "$SSH_PORT" ]; then
for $port in $SSH_PORT; do for port in $SSH_PORT; do
if [ "$port" != "22" ]; then if [ "$port" != "22" ]; then
echo "Opening alternate SSH port $port." #NODOC echo "Opening alternate SSH port $port." #NODOC
ufw_limit "$port" #NODOC ufw_limit "$port" #NODOC