[Bug 253435] Jail do not create tunnel (wireguard) interface alias.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 11 13:13:02 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253435

            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 at FreeBSD.org
          Reporter: robert.david.public at 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 = "wgnet0|192.168.0.10"; 

2)
wgnet0 address created using
ifconfig wgnet0 inet 192.168.0.10 192.168.0.10 alias
jail.conf:
ip4.addr = "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 = "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

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


More information about the freebsd-bugs mailing list