* Request for Support: QEMU IPv6 Port Forwarding Issue
@ 2024-03-19 5:53 Srinivasu Kandukuri (MS/ECP2-ETAS-VOS)
2024-03-19 14:28 ` Thomas Huth
0 siblings, 1 reply; 4+ messages in thread
From: Srinivasu Kandukuri (MS/ECP2-ETAS-VOS) @ 2024-03-19 5:53 UTC (permalink / raw)
To: qemu-devel@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 2276 bytes --]
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.
Our primary concern is whether QEMU supports port forwarding for IPv6 networking. If it does, we kindly request your assistance in resolving this issue and providing guidance on the correct configuration for achieving our objective.
Could you please advise us on the proper usage of port forwarding with IPv6 networking in QEMU? Any insights, suggestions, or instructions you can provide would be greatly appreciated.
Thank you very much for your attention to this matter. We look forward to your prompt response and assistance.
Mit freundlichen Grüßen / Best regards
Kandukuri Srinivasu
(MS/ECP2-ETAS-VOS)
Robert Bosch GmbH | Postfach 10 60 50 | 70049 Stuttgart | GERMANY | www.bosch.com
Tel. +918061444397 | Mobile +91-88845-33393 | Fax +91 422 663-4104 | Srinivasu.Kandukuri@in.bosch.com<mailto:Srinivasu.Kandukuri@in.bosch.com>
Registered Office: Stuttgart, Registration Court: Amtsgericht Stuttgart, HRB 14000;
Chairman of the Supervisory Board: Prof. Dr. Stefan Asenkerschbaumer;
Managing Directors: Dr. Stefan Hartung, Dr. Christian Fischer, Dr. Markus Forschner,
Stefan Grosch, Dr. Markus Heyn, Dr. Frank Meyer, Dr. Tanja Rückert
[-- Attachment #2: Type: text/html, Size: 7368 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Request for Support: QEMU IPv6 Port Forwarding Issue
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
2024-03-19 17:45 ` BALATON Zoltan
0 siblings, 2 replies; 4+ messages in thread
From: Thomas Huth @ 2024-03-19 14:28 UTC (permalink / raw)
To: Srinivasu Kandukuri (MS/ECP2-ETAS-VOS), qemu-devel@nongnu.org
Cc: Samuel Thibault, Marc-André Lureau
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.
Hi!
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.
Thomas
> Our primary concern is whether QEMU supports port forwarding for IPv6
> networking. If it does, we kindly request your assistance in resolving this
> issue and providing guidance on the correct configuration for achieving our
> objective.
>
> Could you please advise us on the proper usage of port forwarding with IPv6
> networking in QEMU? Any insights, suggestions, or instructions you can
> provide would be greatly appreciated.
>
> Thank you very much for your attention to this matter. We look forward to
> your prompt response and assistance.
>
> Mit freundlichen Grüßen / Best regards
>
> *Kandukuri Srinivasu*
>
> (MS/ECP2-ETAS-VOS)
> Robert Bosch GmbH | Postfach 10 60 50 | 70049 Stuttgart | GERMANY |
> www.bosch.com
> Tel. +918061444397 | Mobile +91-88845-33393 | Fax +91 422 663-4104 |
> Srinivasu.Kandukuri@in.bosch.com <mailto:Srinivasu.Kandukuri@in.bosch.com>
>
> Registered Office: Stuttgart, Registration Court: Amtsgericht Stuttgart, HRB
> 14000;
> Chairman of the Supervisory Board: Prof. Dr. Stefan Asenkerschbaumer;
> Managing Directors: Dr. Stefan Hartung, Dr. Christian Fischer, Dr. Markus
> Forschner,
> Stefan Grosch, Dr. Markus Heyn, Dr. Frank Meyer, Dr. Tanja Rückert
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Request for Support: QEMU IPv6 Port Forwarding Issue
2024-03-19 14:28 ` Thomas Huth
@ 2024-03-19 16:41 ` Samuel Thibault
2024-03-19 17:45 ` BALATON Zoltan
1 sibling, 0 replies; 4+ messages in thread
From: Samuel Thibault @ 2024-03-19 16:41 UTC (permalink / raw)
To: Thomas Huth
Cc: Srinivasu Kandukuri (MS/ECP2-ETAS-VOS), qemu-devel@nongnu.org,
Marc-André Lureau
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Request for Support: QEMU IPv6 Port Forwarding Issue
2024-03-19 14:28 ` Thomas Huth
2024-03-19 16:41 ` Samuel Thibault
@ 2024-03-19 17:45 ` BALATON Zoltan
1 sibling, 0 replies; 4+ messages in thread
From: BALATON Zoltan @ 2024-03-19 17:45 UTC (permalink / raw)
To: Thomas Huth
Cc: Srinivasu Kandukuri (MS/ECP2-ETAS-VOS), qemu-devel@nongnu.org,
Samuel Thibault, Marc-André Lureau
[-- Attachment #1: Type: text/plain, Size: 3297 bytes --]
On Tue, 19 Mar 2024, Thomas Huth wrote:
> 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.
>
> Hi!
>
> 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.
Other than that, the [] in the help mean optional components so you don't
need to put that in the command. But if it does not handle IPv6 addresses
then maybe not only that's the problem. However since dest_address is
optional and does not need to be specified you could try to leave that
[fe80::5054:ff:fecd:585a] out completely then the rule should applie to
all guests but if you only have one guest then it does not matter.
Regards,
BALATON Zoltan
> Thomas
>
>
>> Our primary concern is whether QEMU supports port forwarding for IPv6
>> networking. If it does, we kindly request your assistance in resolving this
>> issue and providing guidance on the correct configuration for achieving our
>> objective.
>>
>> Could you please advise us on the proper usage of port forwarding with IPv6
>> networking in QEMU? Any insights, suggestions, or instructions you can
>> provide would be greatly appreciated.
>>
>> Thank you very much for your attention to this matter. We look forward to
>> your prompt response and assistance.
>>
>> Mit freundlichen Grüßen / Best regards
>>
>> *Kandukuri Srinivasu*
>>
>> (MS/ECP2-ETAS-VOS)
>> Robert Bosch GmbH | Postfach 10 60 50 | 70049 Stuttgart | GERMANY |
>> www.bosch.com
>> Tel. +918061444397 | Mobile +91-88845-33393 | Fax +91 422 663-4104 |
>> Srinivasu.Kandukuri@in.bosch.com <mailto:Srinivasu.Kandukuri@in.bosch.com>
>>
>> Registered Office: Stuttgart, Registration Court: Amtsgericht Stuttgart,
>> HRB 14000;
>> Chairman of the Supervisory Board: Prof. Dr. Stefan Asenkerschbaumer;
>> Managing Directors: Dr. Stefan Hartung, Dr. Christian Fischer, Dr. Markus
>> Forschner,
>> Stefan Grosch, Dr. Markus Heyn, Dr. Frank Meyer, Dr. Tanja Rückert
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-03-19 17:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-03-19 17:45 ` BALATON Zoltan
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).