works enough for now

This commit is contained in:
Benjamin Tayehanpour 2026-06-16 22:47:04 +02:00
commit c04a9a752a
12 changed files with 178 additions and 0 deletions

9
compiler/firewall.py Normal file
View file

@ -0,0 +1,9 @@
def build_firewall_rules(services, cfg):
rules = []
for s in services:
if "nat" in s.exposure:
rules.append({
"service": s.name,
"allow_port": s.public_port,
})
return(rules)