-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #575: Improve
lndconnect
, support WireGuard
cea69b7 nodeinfo: enable required option `nix-bitcoin.operator` (Erik Arvstedt) 27d95fd nodeinfo/lnd: add `onion_rest_address` (Erik Arvstedt) 54a2187 nodeinfo/lnd: add `rest_address` (Erik Arvstedt) a4bfefd add `presets/wireguard.nix` (Erik Arvstedt) 477e170 lndconnect: update to Zeus 0.7.1 (Erik Arvstedt) f996ef3 lnd, clightning-rest: remove `lndconnectOnion`, add generic option `lndconnect` (Erik Arvstedt) b4bc621 rename `lndconnect-onion.nix` -> `lndconnect.nix` (Erik Arvstedt) 907cfe4 docs/services: improve title, fix numbering (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACK cea69b7 Tree-SHA512: 747d95b49f5c1b63dfaa2c6bc302fb102e3788c36e279cc28266ea230e8daae54973d8bdb51f2a81e7e84eb86b6b1e504fbe8af85c2318525c54d901678b3f55
- Loading branch information
Showing
16 changed files
with
798 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― | ||
# Test Tor and WireGuard connections on a mobile device | ||
|
||
# 1. Run container | ||
run-tests.sh -s wireguard-lndconnect-online container | ||
|
||
# 2. Test connecting via Tor | ||
# Print QR codes for lnd, clightning-rest connections via Tor | ||
c lndconnect | ||
c lndconnect-clightning | ||
# Add these to Zeus >= 0.7.1. | ||
# To explicitly check if the connection is successful, press the node logo in the top | ||
# left corner, and then "Node Info". | ||
|
||
# Debug | ||
c lndconnect --url | ||
c lndconnect-clightning --url | ||
|
||
# 3. Test connecting via WireGuard | ||
|
||
# 3.1 Forward WireGuard port from the container host to the container | ||
iptables -t nat -A PREROUTING -p udp --dport 51821 -j DNAT --to-destination 10.225.255.2 | ||
|
||
# 3.2. Optional: When your container host has an external firewall, | ||
# forward the WireGuard port to the container host: | ||
# - Port: 51821 | ||
# - Protocol: UDP | ||
# - Destination: IPv4 of the container host | ||
|
||
# 3.2 Print QR code and setup wireguard on the mobile device | ||
c nix-bitcoin-wg-connect | ||
c nix-bitcoin-wg-connect --text | ||
|
||
# Print QR codes for lnd, clightning-rest connections via WireGuard | ||
c lndconnect-wg | ||
c lndconnect-clightning-wg | ||
# Add these to Zeus >= 0.7.1. | ||
# To explicitly check if the connection is successful, press the node logo in the top | ||
# left corner, and then "Node Info". | ||
|
||
# Debug | ||
c lndconnect-wg --url | ||
c lndconnect-clightning-wg --url | ||
|
||
# 3.3.remove external firewall port forward, remove local port forward: | ||
iptables -t nat -D PREROUTING -p udp --dport 51821 -j DNAT --to-destination 10.225.255.2 | ||
# Now exit the container shell | ||
|
||
#――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― | ||
# Debug lndconnect | ||
|
||
run-tests.sh -s wireguard-lndconnect-online container | ||
|
||
c nodeinfo | ||
|
||
c lndconnect --url | ||
c lndconnect-wg --url | ||
c lndconnect-clightning --url | ||
c lndconnect-clightning-wg --url | ||
|
||
c lndconnect | ||
c lndconnect-wg | ||
c lndconnect-clightning | ||
c lndconnect-clightning-wg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.