From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GLVUGinvZmH4UwEAgWs5BA (envelope-from ) for ; Wed, 13 Oct 2021 16:37:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SPT4FSnvZmFTZwAA1q6Kng (envelope-from ) for ; Wed, 13 Oct 2021 14:37:29 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4DA62E67C for ; Wed, 13 Oct 2021 16:37:28 +0200 (CEST) Received: from localhost ([::1]:60520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mafNm-0005IJ-Pn for larch@yhetil.org; Wed, 13 Oct 2021 10:37:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mafHj-00016x-Rp for help-guix@gnu.org; Wed, 13 Oct 2021 10:31:12 -0400 Received: from mx1.riseup.net ([198.252.153.129]:36156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mafHh-0005Wt-9V for help-guix@gnu.org; Wed, 13 Oct 2021 10:31:11 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4HTw235BRKzF3xy; Wed, 13 Oct 2021 07:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1634135467; bh=YFqWImMOTUBkhMF1OFJP51o6pJM2c7FSAifRRPRaisY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=luoXYSyGgIy2HUwdhgIwUbHqJAZcO6EnpVJI6s6AfgNr0W8k10J2DnAf978Giuvtv F7blcteJGPt4oHcjULShnsOhHc0fIUpJ0QauckRDBZ8Ae5Wv5jjy9hNj4fn9ERcWu0 faSowbIdz9bWbcOqscKJ1Pe+++m301c1VoidhFX8= X-Riseup-User-ID: B38273734D94BF0A18C7888C4CCB58C61662FB369B956315580EA731BDA53EB1 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4HTw233QGmz5vfC; Wed, 13 Oct 2021 07:31:07 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 13 Oct 2021 07:31:07 -0700 From: "Jovany Leandro G.C" To: Jelle Licht Subject: Re: openvpn ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1 In-Reply-To: <86ily1kxjg.fsf@fsfe.org> References: <86ily1kxjg.fsf@fsfe.org> Message-ID: Organization: Be Freedom Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=bit4bit@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634135848; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=HjG4C3fmu9g1Okx7K9YFI+NaZlvjZ5eOCz24Wx43OPI=; b=O11oJtUXKnkimFvavTvSTDIrRuq4NL+6kSY1SNSjAgseSdEqHWlulbFZZ70P/84OFoDft0 SkK0MKpXp0LWN2d5k41zvAG5v8ht6KkgH4AEVyVb6AMDE2sL2Cstq/9nXILhs5kiU+S+w2 1M/r5wOQ0TCUc4h1aj3ao8GzBaaUg+EUlrNDOFpFRsIlbDRyGfkpiLtiOPtOE849akfuGy URwA3oPVh+muUPLs7eoGqqEONWYcCCQqdgbcd9xVRGx7Rhn22hrkzPTYpaG4iDpawEHO1R F2RzuqHrq6BvT8xaq7jSHlfPkH0iP8P3I0/X7Dbq9qk+K8kpzF+7vNcxWrj0Bg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634135848; a=rsa-sha256; cv=none; b=HrI00308WTajfXs0nql8XlP74HXD+D+d8J1QAlhqo0PTGttd9y6PmN2sXBn/eCMDB5pzWO 0G3OWUB4l5mMCBJ6vRKniG3PcGo6K61W1NzeOE8HP5gEctOFHapKPZoj1LLIcFbYvGBHfi 19TZri8Mdi5mscXy7oFlws5ZCrK46/gxc3BybOhOjt1cytritP6miCd8IFyRJHoTBeplP9 G3ropLYUNyYzo8Ma5wccXSWrpPnAcqhEE+K8WKRem4iEiO+TGrwm0MqzjuE5AGNoCr6Kha MydeORHVTDhbyi+ZMFqmKuv4kUN1Ug8Y5VTJpK0r3hdGBEseNWmdKRn69eylcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=luoXYSyG; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=luoXYSyG; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 4DA62E67C X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: SBZx2zV2vAHT On 2021-10-13 10:51, Jelle Licht wrote: > Hello Jovany, > > "Jovany Leandro G.C" writes: > >> hi, >> when i run **openvpn myfile.ovpn**, throws: >> >> ~~~ >> 2021-10-12 21:20:26 OpenVPN 2.5.4 x86_64-unknown-linux-gnu [SSL >> (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jan 1 1970 >> ... >> 2021-10-12 21:25:13 ERROR: Cannot ioctl TUNSETIFF tun: Operation not >> permitted (errno=1) >> 2021-10-12 21:25:13 Exiting due to fatal error >> ~~~ > Note that I am by no means an OpenVPN expert, I have just used it a few > times. > > For its normal operations, OpenVPN clients need a TUN/TAP device; AFAIK > creating such devices require running with root permissions. > > You have several options here. > > The easiest 'fix' is to simply run `sudo openvpn myfile.ovpn`; > everything should work, with always-on root privileges though. > > Run `sudo openvpn --user --group myfile.ovpn', > which uses root privileges to set up things and then drops these > privileges. If your connection gets interrupted, you might need to > manually restart the command to set things up properly again. > > If you use Network Manager; there is a plugin for managing OpenVPN > connections. In Guix this has been packaged as > `network-manager-openvpn', and can be added to your operating system > declaration if you run Guix System [1] > >> thanks any help >> -- >> Jovany Leandro G.C > > HTH! > - Jelle > > [1] http://guix.gnu.org/manual/en/html_node/Networking-Services.html#index-network_002dmanager_002dservice_002dtype thanks, using sudo works! i try network-manager-openvpn when i add the file .ovpn popup "Insufficient Privileges", config.scm ~~~ (supplementary-groups '("wheel" "netdev" "dialout" "audio" "video" "docker")) .... (services (append (list (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout))) (service docker-service-type)) (modify-services %desktop-services (network-manager-service-type config => (network-manager-configuration (vpn-plugins (list network-manager-openvpn)))) ))) ~~~ thanks any help -- Jovany Leandro G.C Desarrollador Software Libre Cel: (57) 3165387562 Git: https://gitlab.com/bit4bit Fossil: http://efossils.bit4bit.in E-Sitio: http://www.bit4bit.in