mullvad: Add port forwarding example

This was my working solution at forwarding ports from a container to the
host. Although mullvad no longer supports port forwarding, this example
can still be used to forward e.g. web services from containers to the
host.
This commit is contained in:
Donovan Glover 2023-06-03 11:47:56 -04:00
parent b8c79f1ca8
commit aaa0fe82cd
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -8,11 +8,20 @@
enableExcludeWrapper = false;
};
networking.firewall.allowedTCPPorts = [ 11918 ];
networking = {
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "wg-mullvad";
forwardPorts = [
{
destination = "192.168.100.11:80";
sourcePort = 11918;
}
];
};
networkmanager = {