Skip to content

Commit

Permalink
add iptables configuration to AMI
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldesai1 committed Jul 4, 2024
1 parent 36d2c8d commit dea47c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -416,4 +416,15 @@ build {
"sudo dasel put string --parser toml --selector 'nvidia-container-runtime.runtimes.[]' --file /etc/nvidia-container-runtime/config.toml 'runc'"
]
}

provisioner "shell" {
inline_shebang = "/usr/bin/env bash"
inline = [
"sudo iptables -P INPUT ACCEPT",
"sudo iptables -P FORWARD ACCEPT",
"sudo iptables -P OUTPUT ACCEPT",
"sudo iptables -F",
]
}

}

0 comments on commit dea47c9

Please sign in to comment.