diff options
| author | Christian <[email protected]> | 2026-06-07 13:46:46 -0500 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-06-11 21:32:15 -0500 |
| commit | d8f20b93914e59d230fb4cc111e7f872fac52afc (patch) | |
| tree | f27d0b840902706f08af69342799ad4d01ec7604 /hosts/desktop/configuration.nix | |
| parent | 579ceca5df52b61a9f869ad95981b648365b8674 (diff) | |
Expose Windows VM RDP to LAN via port forwarding
Diffstat (limited to 'hosts/desktop/configuration.nix')
| -rw-r--r-- | hosts/desktop/configuration.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 8d2da6f..f43e993 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -37,5 +37,20 @@ services.xserver.videoDrivers = [ "amdgpu" ]; + networking.firewall.allowedTCPPorts = [ 3389 ]; + networking.firewall.trustedInterfaces = [ "virbr0" ]; + networking.nat = { + enable = true; + externalInterface = "wlan0"; + internalInterfaces = [ "virbr0" ]; + forwardPorts = [ + { + destination = "192.168.111.111:3389"; + proto = "tcp"; + sourcePort = 3389; + } + ]; + }; + system.stateVersion = "25.11"; } |
