From 91397dee6c913eb9ce4876ad123d037b5fc45fa1 Mon Sep 17 00:00:00 2001 From: rasswanth-s <43314053+rasswanth-s@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:17:29 +0530 Subject: [PATCH] commit arm changes --- .../vagrant/almalinux_9/arm_64/Vagrantfile | 23 +++++++++++++++++++ .../vagrant/almalinux_9/x86_64/Vagrantfile | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) 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