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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 12 20:19:33 UTC 2021


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

Luca Pizzamiglio <pizzamig at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pizzamig at freebsd.org

--- Comment #3 from Luca Pizzamiglio <pizzamig at freebsd.org> ---
(In reply to Robert David from comment #2)

I created a wireguard setup and those are my findings.

The command to configure an alias on a wireguard interface via ifconfig is:
ifconfig wgnet0 inet 192.168.0.10/24 192.168.0.10 alias

With the jail command line, I successfully created an alias with:

jail -c path=/path/to/jail ip4.addr="wgnet0|192.168.0.10/24 192.168.0.10"
command=/bin/sh

Or, using jail.conf: 

wg-jail {
  path = /home/pizzamig/empty-jail;
  ip4.addr = "wgnet0|192.168.0.10/24 192.168.0.10";
  command = "/bin/sh";
}

Have you tried this latest configuration?

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


More information about the freebsd-jail mailing list