•  

Bitcoin-Lightning behind Wireguard VPN

0
0
PART 1 - Buy anonymous VPS
PART 2 - Prepare Server and Client
PART 3 - Install and Configure WIREGUARD
PART 4 - Analyzing traffic
PART 5 - BTC/LN Server over WIREGUARD
PART 6 - Electrs, Blue Wallet, Lightning, Zeus

- NAT and firewall traversal persistence:
https://www.wireguard.com/quickstart/#nat-and-firewall-traversal-persistence

# install wireguard
sudo apt install wireguard

# fixes
sudo apt install resolvconf
ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf

# server
sudo sysctl -p
sudo sysctl --system

# key generation
wg genkey | tee privatekey | wg pubkey > publickey

# wg0.conf - SERVER
[Interface]
PrivateKey =
Address = 10.0.0.1
ListenPort = 51820
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
PostUp = iptables -t nat -A PREROUTING -i ens3 -p tcp --dport 50002 -j DNAT --to-destination 10.0.0.2
PostUp = iptables -t nat -A PREROUTING -i ens3 -p tcp --dport 9735 -j DNAT --to-destination 10.0.0.2
PostUp = iptables -t nat -A PREROUTING -i ens3 -p tcp --dport 3001 -j DNAT --to-destination 10.0.0.2
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
PostDown = iptables -t nat -D PREROUTING -i ens3 -p tcp --dport 50002 -j DNAT --to-destination 10.0.0.2
PostDown = iptables -t nat -D PREROUTING -i ens3 -p tcp --dport 9735 -j DNAT --to-destination 10.0.0.2
PostDown = iptables -t nat -D PREROUTING -i ens3 -p tcp --dport 3001 -j DNAT --to-destination 10.0.0.2
[Peer]
PublicKey =
AllowedIPs = 10.0.0.2/32

# wg0.conf - CLIENT
[Interface]
PrivateKey =
Address = 10.0.0.2
DNS =
[Peer]
PublicKey =
Endpoint = vps-addr:51820
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25

# wireguard commands
wg-quick up/down wg0
sudo wg show

# service for wg0
systemctl enable --now wg-quick@wg0.service
No comments yet...
Log in to comment
0 0 0
2024-02-08

Self-Hosted SimpleX Chat

00:55 PART 1 - Building SimpleX From Source 07:23 PART 2 - Configuring the SMP & XFTP Servers 16:07 …
0 0 0
2023-10-07

LINUX TUTORING

Don´t even know how or where to install Linux? That's OK. Absolute beginners welcome! Contact: 402P…
0 0 0
2023-09-14

Keet Peer as Data Relay

02:13 PART 1 - Preparing The Raspberry Pi 09:38 PART 2 - Install Keet 16:32 PART 3 - Remote Access …
0 0 0
2023-08-12

SOCKS5 Proxies

12:08 PART 1 - VPS SETUP 13:50 PART 2 - INSTALL DANTE 18:41 PART 3 - CLIENT AUTHENTICATION 21:12 PAR…
0 0 0
2023-07-28

Tor Snowflake Proxy

1:24 PART 1 - Server Setup 3:42 PART 2 - Snowflake Proxy Snowflake https://snowflake.torproject.org…
0 0 0
2023-07-22

Shadowsocks

01:45 PART 1 - Server Setup 03:37 PART 2 - Cliet Setup 04:50 PART 3 - Firefox & Tor Browser 09:30 PA…

402 Payment Required

Security. Privacy. Digital self-sovereignty. Bitcoin. Don't trust. Verify. A786 CA10 5A72 50D7 96BF…

Log in to Follow

More episodes from 402 Payment Required

Top Podcasts Top rated Podcasts