Skip to content
Snippets Groups Projects
Verified Commit 60178d1d authored by blallo's avatar blallo
Browse files

Specify the right port to for the internal overlay

parent e736b0fa
No related branches found
No related tags found
1 merge request!258Support new syntax in haproxy
Pipeline #28042 passed
......@@ -19,8 +19,8 @@ add_rule -A vpn-{{ tinc_net }}-input -p tcp --dport {{ ep.port }} -j ACCEPT
{% endfor %}
{% for ep in services[s].get('public_tcp_endpoints', {}) %}
{% for port in ep.get('ports', []) %}
{% set public = port.public | default(port) %}
add_rule -A vpn-{{ tinc_net }}-input -p tcp --dport {{ public }} -j ACCEPT
{% set internal = port.internal | default(port) %}
add_rule -A vpn-{{ tinc_net }}-input -p tcp --dport {{ internal }} -j ACCEPT
{% endfor %}
{% if 'port' in ep %}
add_rule -A vpn-{{ tinc_net }}-input -p tcp --dport {{ ep.port }} -j ACCEPT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment