fort-nix / nix-bitcoin

A collection of Nix packages and NixOS modules for easily installing full-featured Bitcoin nodes with an emphasis on security.
https://nixbitcoin.org
MIT License
470 stars 98 forks source link

Wireguard Client #633

Open btchans opened 11 months ago

btchans commented 11 months ago

hi,

i heard about the project at the recent Nodesignal Podcast Episode. I really like what i've seen so far and looking forward to give it a try at my proxmox.

is there a module that will allow me to connect nix to a wireguardserver (running on a vps)? something like this: https://github.com/TrezorHannes/vps-lnbits-wg

so running cln-rest or lnbits over clearnet vps adress

bleetube commented 11 months ago

You could include Wireguard in your configuration.nix from nixpkgs. A good starting point would the the nixos.wiki.

Sounds like you're just forwarding requests from ports on a server to your node, which should be fine. You'll at least need to open the ports on the nix-bitcoin firewall.

I'd recommend hopping into the matrix chat if you've got further support questions, the folks there are pretty responsive.

jonasnick commented 10 months ago

@btchans Hi!

is there a module that will allow me to connect nix to a wireguardserver (running on a vps)?

Yes, as @bleetube pointed out you can just use the wireguard module as explained in the nixos wiki. We also have instructions for running a wireguard server on nix-bitcoin and connect mobile Zeus to it:

https://github.com/fort-nix/nix-bitcoin/blob/9d9925621a6b32ca9548e5afc6b31146ef5a6504/docs/services.md#use-zeus-mobile-lightning-wallet-via-wireguard