infra-role-geth/tasks/firewall.yml
Jakub Sokołowski 63947bdcbf
expose both tcp and udp ports for geth
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-26 13:45:01 +02:00

16 lines
323 B
YAML

---
- name: Geth | Enable ports on firewall
iptables:
comment: '{{ geth_cont_name }} {{ item }}'
jump: ACCEPT
action: insert
chain: DOCKER-USER
source: '0.0.0.0/0'
protocol: '{{ item }}'
destination_port: '{{ geth_port }}'
with_items:
- tcp
- udp
notify:
- Save iptables rules