From 103d39ff522b378cbe80f7ea38d8c3dd0093d277 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 23 Aug 2018 01:29:39 +0200 Subject: [PATCH] firewall moved to sc card setup --- home.admin/97addMobileWallet.sh | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/home.admin/97addMobileWallet.sh b/home.admin/97addMobileWallet.sh index 31e8574..3191033 100644 --- a/home.admin/97addMobileWallet.sh +++ b/home.admin/97addMobileWallet.sh @@ -3,23 +3,6 @@ # location of 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 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'" # 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 \ No newline at end of file