Date: Thu, 13 Oct 2022 06:45:16 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 266999] tun(4): kernel: panic: make_dev_sv: bad si_name (error=17, si_name=tun2) in in make_dev_sv > tun_create_device > tunclone Message-ID: <bug-266999-7501-E5GEexWinb@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-266999-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-266999-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266999 --- Comment #5 from Seyed Pouria Mousavizadeh Tehrani <p.mousavizadeh@proto= nmail.com> --- - openvpn-client is using tun257 and tun258, it is in its own vnet: No. openvpn-clients are in *host* and not in *jail* so their are not using vnet. host rc.conf: """ openvpn_client_enable=3D"YES" openvpn_client_fib=3D"1" openvpn_client_configfile=3D"/usr/local/etc/openvpn/client.conf" openvpn_client2_enable=3D"YES" openvpn_client2_fib=3D"2" openvpn_client2_configfile=3D"/usr/local/etc/openvpn/client2.conf" """ Here is the client configurations: % grep dev /usr/local/etc/openvpn/client.conf=20 dev tun257 % grep dev /usr/local/etc/openvpn/client2.conf dev tun258 - The two ocserv jails also each have their own vnets, and use whatever tun interfaces they get from opening /dev/tun: Exactly. one of my ocserv jail configurations: """ ... export jail_overlay_vnet_enable=3D"YES" export jail_overlay_vnet_interface=3D"epair0b epair1b" export jail_overlay_exec_prestart0=3D"service netif cloneup epair0 epair1 |= | echo interfaces are already exists" export jail_overlay_exec_prestart1=3D"service routing static inet || echo s= tatic routes are already exists" export jail_overlay_exec_prestart2=3D"service openvpn_client restart" export jail_overlay_exec_poststop0=3D"/sbin/route del -net *.*.*.0/24 -gate= way *.*.*7.2" export jail_overlay_exec_poststop1=3D"/sbin/route del -net *.*.*.0/24 -gate= way *.*.*8.2 -fib 1" export jail_overlay_exec_poststop2=3D"/sbin/ifconfig epair0a destroy" export jail_overlay_exec_poststop3=3D"/sbin/ifconfig epair1a destroy" """ cloned interfaces in rc.conf: """ ... cloned_interfaces=3D"lo1 gre0 gre1 tun257 tun258 epair5 epair4 epair3 epair2 epair1 epair0" ifconfig_epair0a=3D"inet *.*.*7.1/30 -tso -rxcsum descr vnet-overlay" ifconfig_epair0b=3D"-tso -rxcsum descr vnet-overlay" ifconfig_epair1a=3D"inet *.*.*8.1/30 fib 1 -tso -rxcsum descr vnet-overlay-= fib-1" ifconfig_epair1b=3D"fib 1 -tso -rxcsum descr vnet-overlay-fib-1" ... """ Errata in previous comment: *Special Control Device* --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266999-7501-E5GEexWinb>