DNAT UDP as well

This commit is contained in:
Wojciech Kozlowski 2023-10-22 09:35:31 +02:00
parent 3f9bcf3546
commit aa3a38a5f4
3 changed files with 5 additions and 5 deletions

View File

@ -44,11 +44,11 @@ vpn_bridge_inet6_subnet: "{{ vpn_bridge_inet6_prefix }}::/{{ vpn_bridge_inet6_pr
vpn_bridge_dnat: "\ vpn_bridge_dnat: "\
{% set vpn_bridge_dnat = [] %}\ {% set vpn_bridge_dnat = [] %}\
{% for properties in ( services_host_services.values() | selectattr('tcp', 'defined') ) %}\ {% for properties in ( services_host_services.values() | selectattr('dnat', 'defined') ) %}\
{{ vpn_bridge_dnat.append({ {{ vpn_bridge_dnat.append({
'inet_address': properties.inet_address, 'inet_address': properties.inet_address,
'inet6_address': properties.inet6_address, 'inet6_address': properties.inet6_address,
'ports': properties.tcp 'ports': properties.dnat
}) }}\ }) }}\
{% endfor %}\ {% endfor %}\
{{ vpn_bridge_dnat }}" {{ vpn_bridge_dnat }}"

View File

@ -147,7 +147,7 @@ services_host_services:
lrproxy: lrproxy:
inet_address: "{{ vpn_bridge_inet_prefix }}.2" inet_address: "{{ vpn_bridge_inet_prefix }}.2"
inet6_address: "{{ vpn_bridge_inet6_prefix }}::2" inet6_address: "{{ vpn_bridge_inet6_prefix }}::2"
tcp: [80, 443] dnat: [80, 443]
restic: true restic: true
database: database:
inet_address: "{{ vpn_bridge_inet_prefix }}.3" inet_address: "{{ vpn_bridge_inet_prefix }}.3"
@ -162,7 +162,7 @@ services_host_services:
git: git:
inet_address: "{{ vpn_bridge_inet_prefix }}.5" inet_address: "{{ vpn_bridge_inet_prefix }}.5"
inet6_address: "{{ vpn_bridge_inet6_prefix }}::5" inet6_address: "{{ vpn_bridge_inet6_prefix }}::5"
tcp: ["{{ services.git.ssh_port }}"] dnat: ["{{ services.git.ssh_port }}"]
restic: true restic: true
notes: notes:
inet_address: "{{ vpn_bridge_inet_prefix }}.6" inet_address: "{{ vpn_bridge_inet_prefix }}.6"

2
roles

@ -1 +1 @@
Subproject commit 23a0c5463a01fe08c9bb784839a7e3b359806220 Subproject commit 1bcd445dc67c8efc1ded26356740bbaa727c305f