mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-29 11:44:45 +01:00
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:
parent
b8c79f1ca8
commit
aaa0fe82cd
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user