removed support for udp

This commit is contained in:
Philip (a-0) 2022-07-27 11:39:17 +02:00
parent c8eb1631b5
commit 3b2cf70c8a
2 changed files with 0 additions and 19 deletions

View file

@ -34,13 +34,6 @@
owner: "{{ ssh_tunnel_autossh_system_user }}" owner: "{{ ssh_tunnel_autossh_system_user }}"
mode: 0644 mode: 0644
#- name: Re-convert udp sent over ssh to udp packets
# become: yes
# shell:
# command: "socat tcp4-listen:8000,reuseaddr,fork udp:server02:53"
# loop: "{{ tunneled_ports }}"
# when: "'udp' in item.protocols"
- name: Set systemd service file - name: Set systemd service file
become: yes become: yes
template: template:

View file

@ -84,12 +84,6 @@
when: "'tcp' in item.protocols" when: "'tcp' in item.protocols"
notify: persist iptables notify: persist iptables
- name: Forward privileged ports to ephemeral localhost ports (IPv4, UDP)
become: yes
command: "socat -T10 udp4-recvfrom:{{ item.exposed_port }},fork tcp:127.0.0.1:{{ item.ephemeral_port }}"
loop: "{{ tunneled_ports }}"
when: "'udp' in item.protocols"
- name: Forward privileged ports to ephemeral localhost ports (IPv6, TCP) - name: Forward privileged ports to ephemeral localhost ports (IPv6, TCP)
become: yes become: yes
iptables: iptables:
@ -104,9 +98,3 @@
loop: "{{ tunneled_ports }}" loop: "{{ tunneled_ports }}"
when: "'tcp' in item.protocols" when: "'tcp' in item.protocols"
notify: persist iptables notify: persist iptables
- name: Forward privileged ports to ephemeral localhost ports (IPv6, UDP)
become: yes
command: "socat -T10 udp6-recvfrom:{{ item.exposed_port }},fork tcp:[::1]:{{ item.ephemeral_port }}"
loop: "{{ tunneled_ports }}"
when: "'udp' in item.protocols"