mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: move to other wireguard instance
This commit is contained in:
parent
840a4679bb
commit
3fbc341b84
1 changed files with 3 additions and 3 deletions
|
|
@ -2,15 +2,15 @@
|
||||||
{
|
{
|
||||||
networking.wg-quick.interfaces = {
|
networking.wg-quick.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
address = [ "10.7.0.2/24" "fddd:2c4:2c4:2c4::2/64" ];
|
address = [ "10.7.0.4/24" ];
|
||||||
dns = [ "9.9.9.9" "149.112.112.112" ];
|
dns = [ "9.9.9.9" "149.112.112.112" ];
|
||||||
privateKeyFile = "/root/wireguard-keys/privatekey";
|
privateKeyFile = "/root/wireguard-keys/privatekey";
|
||||||
|
|
||||||
peers = [{
|
peers = [{
|
||||||
publicKey = "GfrFhe2JV8FS/711WAdx6CLF/QIEj1KoOGP/ErxBHkg=";
|
publicKey = "uE40chWhiPpnNHcgnLhMfOUfzotS6hK+dWwI1sIFcUw=";
|
||||||
presharedKeyFile = "/root/wireguard-keys/preshared_from_peer0_key";
|
presharedKeyFile = "/root/wireguard-keys/preshared_from_peer0_key";
|
||||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
||||||
endpoint = "57.129.46.171:51820";
|
endpoint = "213.210.34.27:58192";
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue