[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: IPv6 hostfwd command line syntax [was Re: [PATCH v6 2/4] util/q
From: |
Daniel P . Berrangé |
Subject: |
Re: RFC: IPv6 hostfwd command line syntax [was Re: [PATCH v6 2/4] util/qemu-sockets.c: Split host:port parsing out of inet_parse] |
Date: |
Wed, 26 May 2021 16:29:36 +0100 |
User-agent: |
Mutt/2.0.7 (2021-05-04) |
On Wed, May 26, 2021 at 08:26:33AM -0700, Doug Evans wrote:
> On Wed, May 26, 2021 at 6:57 AM Daniel P. Berrangé <berrange@redhat.com>
> wrote:
>
> > On Tue, May 25, 2021 at 12:37:21PM -0700, Doug Evans wrote:
> > > Hi.
> > >
> > > I want to confirm the command line syntax y'all want for ipv6 host
> > > forwarding.
> > >
> > > IIUC, the command line syntax is required to be consistent with the use
> > of
> > > "ipv6=on|off" elsewhere.
> > > Can you confirm that's correct?
> > >
> > > If so, how does one apply "ipv6=on" to the "::60022-:22" hostfwd spec in
> > > the following example:
> > >
> > > $ qemu-system-x86_64 [...] --nic
> > user,id=n1,model=e1000,hostfwd=::60022-:22
> > >
> > > ?
> >
> > Probably easier if we start from the HMP hostfwd_add command which takes
> >
> > hostfwd_add ::60022-:22
> >
> > With that, adding the flags is obvious
> >
> > hostfwd_add ::60022-:22,ipv6=on|off,ipv4=on|off
> >
>
>
> Data point:
>
> There's been discussion of supporting ipv6->ipv4 and ipv4->ipv6.
> If we want to provide for this then the ipv4/6 flags need to apply to the
> host/guess address.
>
> E.g.,
>
> hostfwd_add ::60022,ipv6=on-:22,ipv4=on
> [for ipv6->ipv4]
Yes, good point, that would make sense.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|