From 9281df157d230ab96d7981c699f0ca08cb2216f4 Mon Sep 17 00:00:00 2001 From: UsualSpec <98665326+UsualSpec@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:01:05 +0200 Subject: [PATCH] Fix typo --- client/deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/deploy.sh b/client/deploy.sh index a7a271e..8f365bd 100644 --- a/client/deploy.sh +++ b/client/deploy.sh @@ -29,7 +29,7 @@ echo "127.0.0.3 ${DEVICENAME}" >> /etc/hosts # add server to /etc/hosts if [ -n "${REMOTEIP6}" ]; then - echo "${REMOTIEP6} ${REMOTEHOST}" >> /etc/hosts + echo "${REMOTEIP6} ${REMOTEHOST}" >> /etc/hosts fi echo "${REMOTEIP} ${REMOTEHOST}" >> /etc/hosts @@ -85,12 +85,12 @@ chown root:zabbix /etc/zabbix/psk.psk systemctl restart zabbix-agent2 systemctl enable zabbix-agent2 -# enable firewall and only allow ssh on port 21092 and zabbix agent to ${REMOTEIP}/${REMOTIEP6} - this assumes that zabbix is installed on ${REMOTEIP}/${REMOTIEP6} +# enable firewall and only allow ssh on port 21092 and zabbix agent to ${REMOTEIP}/${REMOTEIP6} - this assumes that zabbix is installed on ${REMOTEIP}/${REMOTEIP6} ufw default deny incoming ufw default allow outgoing ufw allow 21092/tcp ufw allow from "${REMOTEIP}" to any port 10050 proto tcp -ufw allow from "${REMOTIEP6}" to any port 10050 proto tcp +ufw allow from "${REMOTEIP6}" to any port 10050 proto tcp ufw logging off ufw --force enable