Skip to content
Snippets Groups Projects

net-overlay: allow vpn traffic to containers ports

Closed godog requested to merge net-overlay_firewall_containers into master
1 unresolved thread
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -26,6 +26,11 @@ add_rule4 -A base-input -i {{ tinc_net }} -j vpn-{{ tinc_net }}-input
{% for port in services[s].get('ports', []) %}
add_rule -A vpn-{{ tinc_net }}-input -p tcp --dport {{ port }} -j ACCEPT
{% endfor %}
{% for container in services[s].get('containers', []) %}
{% if 'port' in container %}
add_rule -A vpn-{{ tinc_net }}-input -p tcp --dport {{ container.port }} -j ACCEPT
{% endif %}
{% endfor %}
{% for ep in services[s].get('public_endpoints', []) %}
add_rule -A vpn-{{ tinc_net }}-input -p tcp --dport {{ ep.port }} -j ACCEPT
{% endfor %}
Loading