diff --git a/packages/grid/vagrant/almalinux_9/arm_64/Vagrantfile b/packages/grid/vagrant/almalinux_9/arm_64/Vagrantfile index 7de57f8127d..617003eb4f2 100644 --- a/packages/grid/vagrant/almalinux_9/arm_64/Vagrantfile +++ b/packages/grid/vagrant/almalinux_9/arm_64/Vagrantfile @@ -12,4 +12,27 @@ Vagrant.configure("2") do |config| vd.cpus = "2" end + config.vm.box_check_update = false + + config.vm.provision "shell", inline: <<-SHELL + #!/bin/bash + echo "Hello from the inline Bash script!" + # Flush existing rules + iptables-save > rules.v4.old + iptables -F + + # Set the default policies to DROP + iptables -P INPUT DROP + iptables -P FORWARD DROP + iptables -P OUTPUT ACCEPT + + # Allow incoming SSH traffic + iptables -A INPUT -p tcp --dport 22 -j ACCEPT + + # Save the rules so they persist across reboots + iptables-save > rules.v4.new + pwd + + SHELL + end \ No newline at end of file diff --git a/packages/grid/vagrant/almalinux_9/x86_64/Vagrantfile b/packages/grid/vagrant/almalinux_9/x86_64/Vagrantfile index 08229ef8b5d..20fe9b8d652 100644 --- a/packages/grid/vagrant/almalinux_9/x86_64/Vagrantfile +++ b/packages/grid/vagrant/almalinux_9/x86_64/Vagrantfile @@ -11,7 +11,7 @@ Vagrant.configure("2") do |config| vd.memory = "4096" vd.cpus = "2" end - + config.vm.box_check_update = false config.vm.provision "shell", inline: <<-SHELL #!/bin/bash