Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2020 09:34:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 250453] jexe does not set the fib of a jail
Message-ID:  <bug-250453-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 250453
           Summary: jexe does not set the fib of a jail
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: dinoex@FreeBSD.org

FreeBSD 12.1-RELEASE-p8 r364057 GENERIC amd64

Booted with fibs enabled:

/boot/loader.conf:
net.fibs=3D"8"

Starting a jail with "exec.fib"
Networking inside is working as configured.

# jail -e '~' | tr '~' '\n'
name=3Dadsl
exec.start=3D"/usr/sbin/sshd -f /etc/ssh/sshd_config.adsl"
exec.stop=3D""
exec.clean
mount.nodevfs
exec.consolelog=3D/dev/console
path=3D/jail/adsl
host.hostname=3Dt7a.adsl.example.com
ip4.addr=3D192.168.8.217
interface=3Dvlan3
exec.fib=3D3
allow.raw_sockets
persist

Networking is working when logging in via SSH.

# ssh root@192.168.8.217
# netstat -nr4 | head -1
Routing tables (fib: 3)

Networking fails if commands are executed with "jexec".

# jexec adsl
# netstat -nr4 | head -1
Routing tables

Networking works if "jexec" is prefixed with the fib used.

# setfib 3 jexec adsl
# netstat -nr4 | head -1
Routing tables (fib: 3)

I would expect that attaching to a running jail, the fib of the jail is use=
d.

--=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-250453-227>