Added LocalForward

This commit is contained in:
Philip (a-0) 2023-01-09 13:32:32 +01:00
parent 56581dd690
commit c91f34e0b4
3 changed files with 15 additions and 5 deletions

View file

@ -80,7 +80,7 @@
destination_port: "{{ item.exposed_port }}"
jump: DNAT
to_destination: "127.0.0.1:{{ item.ephemeral_port }}"
loop: "{{ tunneled_ports }}"
loop: "{{ remote_forward }}"
when: "'tcp' in item.protocols"
notify: persist iptables
@ -95,6 +95,6 @@
destination_port: "{{ item.exposed_port }}"
jump: DNAT
to_destination: "[::1]:{{ item.ephemeral_port }}"
loop: "{{ tunneled_ports }}"
loop: "{{ remote_forward }}"
when: "'tcp' in item.protocols"
notify: persist iptables