Fix LN nodes not being accessible from the outside #289

Merged
raucao merged 2 commits from bugfix/lnd_externalip into master 2021-01-23 11:07:38 +00:00
3 changed files with 13 additions and 1 deletions

View File

@ -42,7 +42,7 @@ node.default['lnd']['alias'] = 'ln2.kosmos.org'
node.default['lnd']['color'] = '#5e0c99'
node.default['lnd']['log_level'] = 'info'
node.default['lnd']['public_ip'] = '148.251.237.111'
node.default['lnd']['public_port'] = '9375'
node.default['lnd']['public_port'] = '9735'
node.default['lnd']['port'] = '9736'
node.default['lnd']['minchansize'] = '1000000'
node.default['lnd']['basefee'] = '500'

View File

@ -92,3 +92,9 @@ systemd_unit 'lightningd.service' do
triggers_reload true
action [:create, :enable, :start]
end
firewall_rule 'lightningd' do
port [9735] # TODO use attribute
protocol :tcp
command :allow
end

View File

@ -89,3 +89,9 @@ systemd_unit 'lnd.service' do
triggers_reload true
action [:create, :enable, :start]
end
firewall_rule 'lnd' do
port [node['lnd']['port']]
protocol :tcp
command :allow
end