2019-04-26 09:54:14 +00:00
|
|
|
---
|
2019-04-26 10:40:10 +00:00
|
|
|
- name: Geth | Enable ports on firewall
|
2019-04-26 09:54:14 +00:00
|
|
|
iptables:
|
2019-04-26 11:45:01 +00:00
|
|
|
comment: '{{ geth_cont_name }} {{ item }}'
|
2019-04-26 09:54:14 +00:00
|
|
|
jump: ACCEPT
|
|
|
|
action: insert
|
|
|
|
chain: DOCKER-USER
|
|
|
|
source: '0.0.0.0/0'
|
2019-04-26 11:45:01 +00:00
|
|
|
protocol: '{{ item }}'
|
2019-04-26 09:54:14 +00:00
|
|
|
destination_port: '{{ geth_port }}'
|
2019-04-26 11:45:01 +00:00
|
|
|
with_items:
|
|
|
|
- tcp
|
|
|
|
- udp
|
2019-04-26 09:54:14 +00:00
|
|
|
notify:
|
|
|
|
- Save iptables rules
|