vyos-conf-builder/compiler/firewall.py
Benjamin Tayehanpour c04a9a752a works enough for now
2026-06-16 22:47:04 +02:00

9 lines
194 B
Python

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)