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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to