Skip to content

Commit

Permalink
Merge pull request #45 from redBorder/feature/18893_integrate_firewal…
Browse files Browse the repository at this point in the history
…l_cookbook

Feature/18893 integrate firewall cookbook
  • Loading branch information
ljblancoredborder authored Dec 5, 2024
2 parents 3c180a6 + 61901d9 commit 82af198
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions resources/scripts/rb_init_conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 82af198

Please sign in to comment.