From de306c999de27c2946103603d8ad4ff1783c502a Mon Sep 17 00:00:00 2001 From: nilsver Date: Wed, 16 Oct 2024 11:18:28 +0100 Subject: [PATCH] move firewall rules to cookbook --- resources/scripts/rb_init_conf.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/resources/scripts/rb_init_conf.rb b/resources/scripts/rb_init_conf.rb index 178f552..df3b448 100755 --- a/resources/scripts/rb_init_conf.rb +++ b/resources/scripts/rb_init_conf.rb @@ -319,18 +319,6 @@ def local_tty_warning_wizard # TODO #system("ntpdate pool.ntp.org") - -#Firewall rules -if !network.nil? #Firewall rules are not needed in cloud environments - #snmp - system('firewall-cmd --permanent --zone=public --add-port=161/udp &>/dev/null') - system('firewall-cmd --permanent --zone=public --add-port=162/udp &>/dev/null') - - # Reload firewalld configuration - system('firewall-cmd --reload &>/dev/null') - -end - # Upgrade system system('yum install systemd -y')