Add firewall rules for LND and c-lightning

This commit is contained in:
Basti 2021-01-14 21:23:20 +01:00
parent 6c6026958b
commit 775ec691ef
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
2 changed files with 12 additions and 0 deletions

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