enable 30303 for geth on master

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-03-19 20:26:12 +01:00
parent a479245234
commit ad1cc0dd2b
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
5 changed files with 17 additions and 0 deletions

View File

@ -20,6 +20,7 @@ faucet_geth_tag: 'v1.8.23'
faucet_geth_image: 'ethereum/client-go:{{ faucet_geth_tag }}'
faucet_geth_name: 'faucet-geth'
faucet_geth_vol: '/docker/{{ faucet_geth_name }}'
faucet_geth_main_port: 30303
faucet_geth_rpc_port: 8545
faucet_geth_alias: 'geth'

View File

@ -1,4 +1,16 @@
---
- name: Enable geth port
iptables:
comment: 'Enable geth'
action: insert
chain: DOCKER-USER
jump: ACCEPT
source: '0.0.0.0/0'
protocol: tcp
destination_port: '{{ faucet_geth_main_port }}'
notify:
- Save iptables rules
- name: Enable faucet HTTP port
iptables:
comment: 'Enable faucet'

View File

@ -29,5 +29,6 @@
--v5disc
ports:
- '127.0.0.1:{{ faucet_geth_rpc_port }}:{{ faucet_geth_rpc_port }}'
- '{{ faucet_geth_main_port }}:{{ faucet_geth_main_port }}'
volumes:
- '{{ faucet_geth_vol }}/data:/date'

View File

@ -16,6 +16,8 @@
--networkid={{ miner_network_id }}
--datadir=/data
--password=/data/keystore/faucet.pass
--port={{ faucet_geth_main_port }}
--v5disc
--shh
--shh.pow={{ miner_shh_pow }}
--rpc

View File

@ -48,6 +48,7 @@ module "faucet-master" {
open_ports = [
"80-80", /* HTTP */
"443-443", /* HTTPS */
"30303" /* GETH */
]
}