From nobody Thu May 02 16:30:36 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VVfYm61l7z5Jc1T for ; Thu, 2 May 2024 16:30:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VVfYm43FHz4WrK for ; Thu, 2 May 2024 16:30:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714667436; a=rsa-sha256; cv=none; b=oiPydn//9nKOI/Bhy7J/VJYWmXKidvhpF59tem6zRjpKmPeFt9jJBg2XcnwwmipIYuezm0 GdDDWQr3V7by7xjK4uAuhaDus1Pjro7bTO/Se522f5NFktSFKWAHopJR/NfBPllRVZ8/fD M/SJPupGssZQ7xZcKUyD+VzNG3HD4nvMm1WCyUuIwTzoAlO4Xsspvjo5lpeDtnyGUdpiTf QzuYUAj8rzWv8uz7MYfgz3Fl2hmiK+GNE4L/ui54FUiedtPgXRbd9zt6dHFGCg5WygMMs+ RKvbrvR4k0wvaDX00aQkMMhGlrDHEW91Xu7bV2RiPJfOsEepN6Q4ve3wLRbemg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714667436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2ONmlMs8OZwHYsTY2qPHTs4XoIKMzIPMhngyAeU/xa4=; b=Ktz4eVA/q9H14iawWZXhA7mAuiH+idzG3set2Md+jyTAYlq2gQ44TW5jae2iWjsnbleDZO mAGW+bQRK3wJ9v/M02OEA112eG9IR45vrOqV4AIfPHyl7mijzpDuBzNN+KtgRrUHp5jv/v sGY7QJwmnTP43nehwWTqreCp2d2oHs7WD2tkR30pASa8DCXh9Ka6IrdjkIWnY0TcC+BRWt PNak4qfLTU6kyNt95cmtQUabX5TR2gDJB82Fd0uWeFTH65yRnGBhkD1CokEJEBePnDq4PY sLmgHbjDSBFgjJM+ecYe7DWSTxl11ndxjg3Qdu47Tq7lO4VIBoKeIpz2Vo6J0Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VVfYm3g4Tz192C for ; Thu, 2 May 2024 16:30:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 442GUa2B067068 for ; Thu, 2 May 2024 16:30:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 442GUaIc067066 for bugs@FreeBSD.org; Thu, 2 May 2024 16:30:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278295] add net 128.0.0.0: gateway 10.8.1.1 fib 1: Invalid argument Date: Thu, 02 May 2024 16:30:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cnbatch@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278295 --- Comment #1 from cnbatch@gmail.com --- I've found the problem. When OpenVPN establishes a connection, it creates the tun0 interface and assigns an address to it. When running OpenVPN with setfib, the address assigned to tun0 appears in fib0 instead of fib 1. That's why subsequent routing entries all fail to add. I tried manually creating the tun interface, and I reached the same conclus= ion: 'setfib 1 ifconfig tun create' 'setfib 1 ifconfig tun0 inet 10.100.0.2 10.100.0.1 netmask 255.255.255.0 mtu 1500 up' Then running: 'netstat -rn' 'setfib 1 netstat -rn' The output shows that the address of tun0 is assigned to fib 0 instead of f= ib 1. If after running the command 'setfib 1 openvpn connect_to_server.ovpn' I manually add the IP address of tun0 to fib 1, then followed by 'route add' commands, which would originally fail: 'setfib 1 route add -net 0.0.0.0 10.100.0.1 128.0.0.0' 'setfib 1 route add -net 128.0.0.0 10.100.0.1 128.0.0.0' no longer result in errors and are successfully added to fib 1. It seems like it might be a bug in ifconfig. --=20 You are receiving this mail because: You are the assignee for the bug.=