Date: Fri, 22 Sep 2006 16:24:06 +0300 From: "Jussi, Petteri Nummikko" <jpn@doom.fi> To: freebsd-stable@freebsd.org Subject: Re: Problems with OpenVPN+routing and creating tun0 interface Message-ID: <4513E3F6.1030805@doom.fi> In-Reply-To: <4513D9F7.4050606@sh.cvut.cz> References: <4513D9F7.4050606@sh.cvut.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
Václav 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 had the same problem in 6.0 but not anymore in 6.1. If I remember correctly how I fixed it in 6.0, I just echoed null to /dev/tun0. But if you already have those devices I'm not sure anymore. Are you specifying the device in openvpn.con as "dev tun" or "dev tun[n]"? In 6.1 releng I have only "dev tun" and it creates the device by itself. But in OpenBSD I have to specify the device number also, even if there was just one of them.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4513E3F6.1030805>