mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-05-31 21:39:23 +02:00
add wireguard client config for traffic-stop-box
This commit is contained in:
parent
0c70973a71
commit
d434df993e
|
@ -27,6 +27,7 @@
|
|||
modules = [
|
||||
./hosts/traffic-stop-box/configuration.nix
|
||||
./modules/gnuradio.nix
|
||||
./modules/radio_wireguard_client.nix
|
||||
{
|
||||
nixpkgs.overlays = [ radio-conf.overlay."x86_64-linux" ];
|
||||
}
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
networking.firewall.allowedUDPPorts = [ 51820 ];
|
||||
|
||||
networking.wg-quick.interfaces.wg-dvb = {
|
||||
address = "10.13.37.5/32"
|
||||
address = [ "10.13.37.5/32" ];
|
||||
privateKeyFile = "/root/wg-seckey";
|
||||
|
||||
peers = [{
|
||||
publicKey = "WDvCObJ0WgCCZ0ORV2q4sdXblBd8pOPZBmeWr97yphY=";
|
||||
allowedIPs = "10.13.37.0/24";
|
||||
allowedIPs = [ "10.13.37.0/24" ];
|
||||
endpoint = "academicstrokes.com:51820";
|
||||
persistentKeepalive = 25;
|
||||
}];
|
||||
|
|
Loading…
Reference in New Issue
Block a user