forwardPorts
virtualisation.forwardPorts.*.from
Controls the direction in which the ports are mapped:
"host"
means traffic from the host ports is forwarded to the given guest port."guest"
means traffic from the guest ports is forwarded to the given host port.
Type: one of "host", "guest"
Default
"host"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix
virtualisation.forwardPorts.*.guest.address
The IPv4 address on the guest VLAN.
Type: string
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix
virtualisation.forwardPorts.*.guest.port
The guest port to be mapped.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix
virtualisation.forwardPorts.*.host.address
The IPv4 address of the host.
Type: string
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix
virtualisation.forwardPorts.*.host.port
The host port to be mapped.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix
virtualisation.forwardPorts.*.proto
The protocol to forward.
Type: one of "tcp", "udp"
Default
"tcp"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix