Attempted fix for udp forwarding
This commit is contained in:
parent
5b508f2f87
commit
b867164902
2 changed files with 21 additions and 23 deletions
|
@ -1,7 +1,9 @@
|
|||
---
|
||||
- name: Install autossh
|
||||
- name: Install required packages
|
||||
apt:
|
||||
name: autossh
|
||||
pkg:
|
||||
- autossh
|
||||
- socat
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
|
@ -32,6 +34,13 @@
|
|||
owner: "{{ ssh_tunnel_autossh_system_user }}"
|
||||
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
|
||||
become: yes
|
||||
template:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue