From owner-freebsd-stable@FreeBSD.ORG Wed Feb 9 11:40:06 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20B4016A4CE for ; Wed, 9 Feb 2005 11:40:06 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E15043D3F for ; Wed, 9 Feb 2005 11:40:05 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j19Be03d038776; Wed, 9 Feb 2005 22:10:01 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Wed, 9 Feb 2005 22:09:58 +1030 User-Agent: KMail/1.7.2 References: <200502092204.34194.doconnor@gsoft.com.au> In-Reply-To: <200502092204.34194.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1458832.fd3JqOcnaU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502092209.59376.doconnor@gsoft.com.au> X-Spam-Score: -5.4 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: matthias.andree@web.de Subject: Re: tun creation problem with security/openvpn X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 11:40:06 -0000 --nextPart1458832.fd3JqOcnaU Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 9 Feb 2005 22:04, Daniel O'Connor wrote: > Hi, > I am trying to using openvpn on a 4.x system but it doesn't seem to want = to > create tun devices and I can't make them by hand with ifconfig. > > I've currently worked around it by running PPP first which creates a tun > device but it's a bit difficult to automate properly. > > I've tried this for ifconfig.. > [inchoate 22:01] ~ >sudo ifconfig tun0 create inet 1.2.3.4 > ifconfig: SIOCIFCREATE: Invalid argument > [inchoate 22:02] ~ >sudo ifconfig tun0 create inet 1.2.3.4 4.5.6.7 > ifconfig: SIOCIFCREATE: Invalid argument > [inchoate 22:02] ~ >sudo ifconfig tun0 create > ifconfig: SIOCIFCREATE: Invalid argument > > Anyone got any hints? Ahh I found a work around.. cat /dev/null > /dev/tunN Kind of strange openvpn doesn't open the dev node first though, I'll have a= =20 closer look at it's code.. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1458832.fd3JqOcnaU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCCfaP5ZPcIHs/zowRAgpXAJsGRdWvzdafRIjoMp9e3TcIqIkcHwCeNjmm Y4t3pYyMXpLLmoG4lBVxVPA= =Wq7q -----END PGP SIGNATURE----- --nextPart1458832.fd3JqOcnaU--