From owner-freebsd-stable@FreeBSD.ORG Fri Sep 22 15:08:16 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org 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 3495D16A563 for ; Fri, 22 Sep 2006 15:08:16 +0000 (UTC) (envelope-from marius@communityconnect.com) Received: from hq2.communityconnect.com (hq2.communityconnect.com [208.29.10.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD25B43D53 for ; Fri, 22 Sep 2006 15:08:12 +0000 (GMT) (envelope-from marius@communityconnect.com) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 22 Sep 2006 11:08:39 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems with OpenVPN+routing and creating tun0 interface Thread-Index: AcbeSttpjIk1ObIAS5KvfRBl0RebxQADK+dR References: <4513D9F7.4050606@sh.cvut.cz> <4513E3F6.1030805@doom.fi> From: "Marius Rex" To: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: RE: Problems with OpenVPN+routing and creating tun0 interface X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 15:08:16 -0000 V=E1clav Haisman wrote: > Hi, > I want to set up OpenVPN to create and configure tun0 interface and > connect to OpenVPN server. The main obstacle seems to be my inability = to > configure either OpenVPN or FreeBSD to actually create that tun0 = interface. > > If I try to create it manually I get this: > > $ ifconfig -v tun create inet 192.168.23.203 192.168.23.1 > ifconfig: SIOCIFCREATE: Invalid argument > > The kernel config has the "device tun" line and there are tun[0-3] in = /dev. > > So what am I doing wrong? > > -- > Vaclav Haisman > I set up a new OpenVPN instance last week on FreeBSD 5.4-stable. The = tun0 device was auto-created by OpenVPN when I ran the init script. (Of = course it was in my kernel config first.) I just have 'dev tun' in my = OpenVPN configuration file. =20 To me, the funny thing is that I am running it on an older FreeBSD box = because the Red Hat Enterprise 4 server I was given would not create a = tun device whatever I did. Just like you I could not create it by hand = or have OpenVPN do it. The OpenVPN server instance on the other side is = a RHE4, and it worked automagically with no effort. I used the same = software to install it on both RHE instances, so it is all a bit fishy. = =20 =20 --------------------------------------------------------- Marius M. Rex Sr. System Admin Community Connect Inc. marius@mail.communityconnect.com