From 63947bdcbf3c2b3b7a9529870d483b19ba4c12a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 26 Apr 2019 13:45:01 +0200 Subject: [PATCH] expose both tcp and udp ports for geth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- tasks/firewall.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/firewall.yml b/tasks/firewall.yml index f67f982..625c274 100644 --- a/tasks/firewall.yml +++ b/tasks/firewall.yml @@ -1,12 +1,15 @@ --- - name: Geth | Enable ports on firewall iptables: - comment: '{{ geth_cont_name }}' + comment: '{{ geth_cont_name }} {{ item }}' jump: ACCEPT action: insert chain: DOCKER-USER source: '0.0.0.0/0' - protocol: 'tcp' + protocol: '{{ item }}' destination_port: '{{ geth_port }}' + with_items: + - tcp + - udp notify: - Save iptables rules