Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2021 13:13:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253435] Jail do not create tunnel (wireguard) interface alias.
Message-ID:  <bug-253435-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253435

            Bug ID: 253435
           Summary: Jail do not create tunnel (wireguard) interface alias.
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: robert.david.public@gmail.com

When adding wireguard tunnel interface alias address to the jail I need to
specify it without the interface name and create the address staticly before
jail startup.

Examples that does not work:

1)
no wgnet0 address created
jail.conf:
ip4.addr =3D "wgnet0|192.168.0.10";=20

2)
wgnet0 address created using
ifconfig wgnet0 inet 192.168.0.10 192.168.0.10 alias
jail.conf:
ip4.addr =3D "wgnet0|192.168.0.10";


Example that works:
when I create the alias and remove the interface name from ip4.addr

wgnet0 address created using
ifconfig wgnet0 inet 192.168.0.10 192.168.0.10 alias
jail.conf:
ip4.addr =3D "192.168.0.10";

Seems like the last one works by accident, because it assigns to the correct
interface if the address is defined.

I don't know if this affects only wireguard or generic tunnel interface. But
the solution would be make the first example working by using different
ifconfig arguments in the jail starting procedure.

Eg:
ifconfig wgnet0 inet 192.168.0.10 192.168.0.10 alias

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253435-227>