[ale] Q: getting /dev/net/tun for openVPN on RH-7.3

John Mills johnmills at speakeasy.net
Sun Jul 1 08:48:40 EDT 2007


Jim -

Thanks for the note. Checking manpages confirms the --mktun option, but my 
'openvpn' can't seem to deal with it:

$ openvpn --mktun --dev tun0 --config <my_config_file>
Sun Jul  1 07:43:09 2007 us=662248 Options error: options --mktun or 
--rmtun should only be used together with --dev
Sun Jul  1 07:43:09 2007 us=664306 Exiting

Can I create the 'tun' device in a separate step?

Do I also have to adjust the firewall ('ipchains' in this case)?

Thanks.
 - Mills

On Sat, 30 Jun 2007, Jim Popovitch wrote:

> On Sat, 2007-06-30 at 18:05 -0500, John Mills wrote:
> > ALErs -
> > 
> > I want to run openvpn from a RH-7.3 host and am having trouble opening the
> > link.

> > 
> > I installed openvpn-2.0-5.6 from an RPM and built liblzo from sources. 
> > When I try to start an openvpn connection, it fails with the message:
> > 
> > Sat Jun 30 17:41:54 2007 us=596523 Note: Cannot open TUN/TAP dev 
> > /dev/net/tun: No such file or directory (errno=2)
> > Sat Jun 30 17:41:54 2007 us=597197 Note: Attempting fallback to kernel 2.2 
> > TUN/TAP interface
> > Sat Jun 30 17:41:54 2007 us=602991 Cannot allocate TUN/TAP dev dynamically
> > Sat Jun 30 17:41:54 2007 us=603628 Exiting
> 
> Make sure that your openvpn config file there contains a line like
> this:  
> 	dev=tun0
> 
> > I expect I need to create '/dev/net/tun'.
> 
> Next, run this command:
> 
> 	openvpn --mktun --dev tun0




More information about the Ale mailing list