id = 2876 title = "IPv6 support for hostfwd + guestfwd" state = "opened" created_at = "2025-03-20T15:53:48.517Z" closed_at = "n/a" labels = ["Networking"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2876" host-os = "nixos-unstable" host-arch = "x86-64" qemu-version = "master (1dae461a913f9da88df05de6e2020d3134356f2e)" guest-os = "[Arch Linux](https://github.com/archlinux/arch-boxes?tab=readme-ov-file#qcow2-images)" guest-arch = "x86-64" description = """When using hostfwd, only IPv4 connections are forwarded.""" reproduce = """1. Start vm with the aforementioned command using a system image that comes with a socket listening on both IPv4 and IPv6. (I used Arch Linux Box which comes with `sshd` enabled by default). 2. Connect to the forwarded socket: - IPv4 succeeds: - `ssh -oPasswordAuthentication=yes arch@127.0.0.1 -p 52022` - `nc -zv 127.0.0.1 52022` - IPv6 does not: - `ssh -oPasswordAuthentication=yes arch@::1 -p 52022` - `nc -zv ::1 52022`""" additional = """#"""