qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@gnu.org>
To: Thomas Huth <thuth@redhat.com>
Cc: "Srinivasu Kandukuri (MS/ECP2-ETAS-VOS)"
	<Srinivasu.Kandukuri@in.bosch.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: Request for Support: QEMU IPv6 Port Forwarding Issue
Date: Tue, 19 Mar 2024 17:41:54 +0100	[thread overview]
Message-ID: <20240319164154.ptdvishj7cvaga2l@begin> (raw)
In-Reply-To: <3e0a5ecf-fe53-4bfe-9c93-7a7fca0fb157@redhat.com>

Hello,

Thomas Huth, le mar. 19 mars 2024 15:28:12 +0100, a ecrit:
> On 19/03/2024 06.53, Srinivasu Kandukuri (MS/ECP2-ETAS-VOS) wrote:
> > Dear QEMU Support Team,
> > 
> > We are currently encountering difficulties in utilizing QEMU for
> > starting a virtual machine image on Windows with IPv6 networking,
> > specifically related to port forwarding. We are using QEMU emulator
> > version 7.1.93 (v7.2.0-rc3-11946-gb68e69cdcc-dirty).
> > 
> > Our objective is to establish IPv6 network connectivity within the
> > virtual machine and forward ports to allow external access. However, we
> > are encountering errors when attempting to configure the port forwarding
> > mechanism.
> > 
> > Here is the command we are using:
> > 
> > *qemu-system-x86_64: -netdev user,id=net1,ipv6=on,ipv6-net=fe80::5054:ff:fecd:585a/64,hostfwd=tcp::2210-[fe80::5054:ff:fecd:585a]:22*
> > 
> > However, upon executing this command, we encounter the following error:
> > 
> > *Invalid host forwarding rule 'tcp::2210-[fe80::5054:ff:fecd:585a]:22'
> > (Bad guest address)*
> > 
> > We understand that the format for specifying host forwarding rules
> > follows the pattern:
> > 
> > *protocol:[listen_address]:listen_port-[dest_address]:dest_port*
> > 
> > We believe that we are following this pattern correctly, but still, we
> > are encountering errors.
> 
> Looking at the code:
> 
>  https://gitlab.com/qemu-project/qemu/-/blob/v8.2.0/net/slirp.c#L824
> 
> it seems like QEMU is only using inet_aton() here, which means IPv4 only,
> sorry, but this likely needs some additional changes first to support IPv6
> addresses here.

Nicholas Ngai's work is still pending integration:

https://lists.gnu.org/archive/html/qemu-devel/2022-03/msg05643.html
https://gitlab.com/qemu-project/qemu/-/issues/347

Samuel


  reply	other threads:[~2024-03-19 16:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19  5:53 Request for Support: QEMU IPv6 Port Forwarding Issue Srinivasu Kandukuri (MS/ECP2-ETAS-VOS)
2024-03-19 14:28 ` Thomas Huth
2024-03-19 16:41   ` Samuel Thibault [this message]
2024-03-19 17:45   ` BALATON Zoltan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240319164154.ptdvishj7cvaga2l@begin \
    --to=samuel.thibault@gnu.org \
    --cc=Srinivasu.Kandukuri@in.bosch.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).