Enable IPv4 routing via VPN
This commit is contained in:
parent
0e0415e81e
commit
0c52861ef8
1 changed files with 2 additions and 2 deletions
|
@ -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" ];
|
ips = [ "fd42:9c3b:f96d:201::${cfg.vpnExtension}/64" "192.168.120.${cfg.vpnExtension}/24" ];
|
||||||
listenPort = 51234;
|
listenPort = 51234;
|
||||||
privateKeyFile = "/var/lib/wireguard/privkey";
|
privateKeyFile = "/var/lib/wireguard/privkey";
|
||||||
postSetup = ''
|
postSetup = ''
|
||||||
|
@ -142,7 +142,7 @@ in
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
publicKey = vpnPubKey;
|
publicKey = vpnPubKey;
|
||||||
allowedIPs = [ "fd42:9c3b:f96d::/48" ];
|
allowedIPs = [ "fd42:9c3b:f96d::/48" "192.168.120.0/24" ];
|
||||||
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