mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
firewall moved to sc card setup
This commit is contained in:
@@ -3,23 +3,6 @@
|
|||||||
# location of lnd.conf
|
# location of lnd.conf
|
||||||
lnd_config=/home/bitcoin/.lnd/lnd.conf
|
lnd_config=/home/bitcoin/.lnd/lnd.conf
|
||||||
|
|
||||||
# allow in firewall
|
|
||||||
sudo ufw allow from 0.0.0.0/24 to any port 10009 comment 'allow LND grpc'
|
|
||||||
|
|
||||||
# delete certificates as they need to be recreated with correct settings
|
|
||||||
sudo rm /home/bitcoin/.lnd/tls.*
|
|
||||||
# copy over certificates to admin
|
|
||||||
sudo cp /home/bitcoin/.lnd/tls.cert /home/admin/.lnd
|
|
||||||
|
|
||||||
# enable fw
|
|
||||||
sudo ufw enable
|
|
||||||
|
|
||||||
# restart lnd
|
|
||||||
sudo systemctl restart lnd
|
|
||||||
|
|
||||||
# unlock wallet
|
|
||||||
lncli unlock
|
|
||||||
|
|
||||||
# add qrcode-encoder to pass info
|
# add qrcode-encoder to pass info
|
||||||
sudo apt-get install qrencode -y
|
sudo apt-get install qrencode -y
|
||||||
|
|
||||||
@@ -28,5 +11,4 @@ cd /home/admin/.lnd
|
|||||||
myip="ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'"
|
myip="ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'"
|
||||||
|
|
||||||
# display qr code
|
# display qr code
|
||||||
echo -e "${myip},\n$(xxd -p -c2000 admin.macaroon)," > qr.txt && cat tls.cert >>qr.txt && qrencode -t ANSIUTF8 < qr.txt
|
echo -e "${myip},\n$(xxd -p -c2000 admin.macaroon)," > qr.txt && cat tls.cert >>qr.txt && qrencode -t ANSIUTF8 < qr.txt
|
||||||
|
|
Reference in New Issue
Block a user