Hello. Not work tailscale in jail.
In Jail:
On host systems:
/etc/devfs.rules
/etc/jail.conf
In Jail:
Code:
freebsd-version -u
14.0-RELEASE-p6
Code:
tailscale up
failed to connect to local tailscaled process (is it running?); got: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory
ls /dev/t*
/dev/tun0
Code:
uname -a
FreeBSD freebsd 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023 [email]root@releng1.nyi.freebsd.org[/email]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
Code:
[devfsrules_nextcloudjail=10]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add include $devfsrules_jail
add include $devfsrules_jail_vnet
add path 'bpf*' unhide
add path 'tun' unhide
add path 'tun0' unhide
add path 'tun1' unhide
add path 'tun*' unhide
Code:
nextcloudjail {
# STARTUP/LOGGING
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_console_${name}.log";
exec.clean;
# PERMISSIONS
allow.mount;
allow.mount.devfs;
allow.chflags;
allow.raw_sockets;
allow.socket_af;
mount.devfs;
mount.fstab="/zdata/jails/containers/${name}/etc/fstab";
devfs_ruleset=10;
# HOSTNAME/PATH
host.hostname = "${name}";
path = "/zdata/jails/containers/${name}";
# NETWORK
ip4 = inherit;
interface = em0;
}