Fix routing via VPN
This commit is contained in:
parent
a3053b98c7
commit
0c9c4ef704
2 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ in
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
publicKey = "tuoiOWqgHz/lrgTcLjX+xIhvxh9jDH6gmDw2ZMvX5T8=";
|
publicKey = "tuoiOWqgHz/lrgTcLjX+xIhvxh9jDH6gmDw2ZMvX5T8=";
|
||||||
allowedIPs = [ "10.11.0.0/22" "fc00:1337:dead:beef::10.11.0.0/118" "192.168.178.0/23" ];
|
allowedIPs = [ "10.11.0.0/22" "fc00:1337:dead:beef::10.11.0.0/118" ];
|
||||||
endpoint = "53c70r.de:51820";
|
endpoint = "53c70r.de:51820";
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,7 +132,7 @@ in
|
||||||
|
|
||||||
networking.wireguard.interfaces = mkIf (cfg.vpnExtension != null) {
|
networking.wireguard.interfaces = mkIf (cfg.vpnExtension != null) {
|
||||||
dadada = {
|
dadada = {
|
||||||
ips = [ "fd42:9c3b:f96d:201::${cfg.vpnExtension}/64" "192.168.120.${cfg.vpnExtension}/24" ];
|
ips = [ "fd42:9c3b:f96d:201::${cfg.vpnExtension}/64" "192.168.120.${cfg.vpnExtension}/17" ];
|
||||||
listenPort = 51234;
|
listenPort = 51234;
|
||||||
privateKeyFile = "/var/lib/wireguard/privkey";
|
privateKeyFile = "/var/lib/wireguard/privkey";
|
||||||
postSetup = ''
|
postSetup = ''
|
||||||
|
@ -143,7 +143,7 @@ in
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
publicKey = vpnPubKey;
|
publicKey = vpnPubKey;
|
||||||
allowedIPs = [ "fd42:9c3b:f96d::/48" "192.168.120.0/24" ];
|
allowedIPs = [ "fd42:9c3b:f96d::/48" "192.168.0.0/17" ];
|
||||||
endpoint = "vpn.dadada.li:51234";
|
endpoint = "vpn.dadada.li:51234";
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue