Change Wireguard port
This commit is contained in:
parent
84a525e7a1
commit
6ce94605b5
|
@ -1,6 +1,8 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
let wireguard_port = 443;
|
||||||
|
|
||||||
|
in {
|
||||||
# Assign a static IP
|
# Assign a static IP
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "zion";
|
hostName = "zion";
|
||||||
|
@ -51,7 +53,7 @@
|
||||||
8448 # Matrix
|
8448 # Matrix
|
||||||
];
|
];
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
1194 # Wireguard
|
wireguard_port # Wireguard
|
||||||
53 # DNS
|
53 # DNS
|
||||||
];
|
];
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
|
@ -70,7 +72,7 @@
|
||||||
networking.wireguard.interfaces = {
|
networking.wireguard.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
ips = [ "10.8.0.1/24" ];
|
ips = [ "10.8.0.1/24" ];
|
||||||
listenPort = 1194;
|
listenPort = wireguard_port;
|
||||||
privateKeyFile = "/home/coolneng/.wg/keys/privatekey";
|
privateKeyFile = "/home/coolneng/.wg/keys/privatekey";
|
||||||
peers = [
|
peers = [
|
||||||
# panacea
|
# panacea
|
||||||
|
|
Loading…
Reference in New Issue