removed ufw command
This commit is contained in:
1
snmp.sh
1
snmp.sh
@@ -15,7 +15,6 @@ fi
|
|||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
apt update
|
apt update
|
||||||
apt install -y snmpd curl
|
apt install -y snmpd curl
|
||||||
ufw allow snmp
|
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ -f /etc/redhat-release ]; then
|
||||||
yum install -y net-snmp net-snmp-utils
|
yum install -y net-snmp net-snmp-utils
|
||||||
firewall-cmd --zone=public --add-service=snmp --permanent
|
firewall-cmd --zone=public --add-service=snmp --permanent
|
||||||
|
|||||||
Reference in New Issue
Block a user