2023-05-19 08:54:35 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2023-05-17 15:23:38 +02:00
|
|
|
{
|
2023-05-19 08:54:35 +02:00
|
|
|
environment.systemPackages = [ pkgs.mullvad-vpn ];
|
|
|
|
|
2023-05-17 15:23:38 +02:00
|
|
|
services.mullvad-vpn = {
|
|
|
|
enable = true;
|
|
|
|
enableExcludeWrapper = false;
|
|
|
|
};
|
|
|
|
|
2023-06-03 17:47:56 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 11918 ];
|
|
|
|
|
2023-05-17 15:23:38 +02:00
|
|
|
networking = {
|
|
|
|
nat = {
|
|
|
|
enable = true;
|
|
|
|
internalInterfaces = [ "ve-+" ];
|
|
|
|
externalInterface = "wg-mullvad";
|
2023-06-03 17:47:56 +02:00
|
|
|
|
|
|
|
forwardPorts = [
|
|
|
|
{
|
|
|
|
destination = "192.168.100.11:80";
|
|
|
|
sourcePort = 11918;
|
|
|
|
}
|
|
|
|
];
|
2023-05-17 15:23:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
networkmanager = {
|
|
|
|
unmanaged = [ "interface-name:ve-*" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|