Could not open /dev/net/tun

Henry Burbano hburbano at novadevices.com
Thu Sep 30 16:29:25 CEST 2004


Hi,

I am triying to configure a VPN, my configuration files are:

******************
TINC.CONF:

Name = nova

# The internet host to connect with.
ConnectTo = nova2

Device = /dev/net/tun                 #Device name.. Leave as is.
Interface = vpn                       #Virtual Interface name. Give any
suitable name.
#Mode = "router"                       #use Router mode

PrivateKeyFile = /etc/tinc/testVPN/rsa_key.priv


*************************

 tinc-up

#!/bin/sh

# Set hardware ethernet address, needed on Linux when in router mode
ifconfig $INTERFACE hw ether fe:fd:0:0:0:0

# Give it the right ip and netmask. Remember, the subnet of the
# tap device must be larger than that of the individual Subnets
# as defined in the host configuration file!
ifconfig $INTERFACE 192.168.1.7 netmask 255.255.255.0

# Disable ARP, needed on Linux when in router mode
ifconfig $INTERFACE -arp

#Add a route to the other network
route add -net 192.168.2.0 netmask 255.255.255.0 dev $INTERFACE


****************************************

/hosts/nova

 nova
Address = xxx.xxx.153.226  #IP address of the tinc host.

#Cipher = blowfish        #Cipher to be used. (none for no cipher)
Cipher = none

#Compression = 9          #Compression level to be used. (0 for no
compresion)
Compression = 0

#Digest = sha1            #HMAC to be used (none for no HMAC)
Digest = none

#IndirectData = no
Subnet = 192.168.1.0/24   #Subnet that this host is connected to.

-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAKsQbbC+CXd/tShV9PWhimnYBF+lJ+K2HRsCYJOmokXhETt9YmbfXcXB
twW+o0bTQtKl8XORTYsCCo97im6Ofhce+hfFw7RFWMwLbSrT6LRn7I5GzE7Biv/R
RSRGCBhHdoWGByKattvkO5JxeXU8O4sohxHkikIK7Z5DKG5SwMpHAgMBAAE=
-----END RSA PUBLIC KEY-----




I start the vpn with:

tincd -n testVPN --debug=5 -D

but I get:

tincd -n testVPN --debug=5 -D
tincd 1.0.2 (May  5 2004 14:06:12) starting, debug level 5
Could not open /dev/net/tun                 #Device name.. Leave as is.: No
such file or directory
Not restarting.


I don't know if is a missconfiguration or anything else??

Thanks


***************************************************
This message has been scanned for viruses and
dangerous content by Kypus Server Appliance E-Mail
Protection Service, and is believed to be clean.
*************************************************** 
=-=-=-=-=-=-=-=-=-=-=-=-Disclaimer Notice-=-=-=-=-=-=-=-=-=-=-=-=-=

The information in this E-mail is intended to be confidential and 
only for use of the individual or entity to whom it is addressed. 
If you are not the intended recipient, any retention, dissemination, 
distribution or copying of this message is strictly prohibited and
sanctioned by law. If you receive this message by error, please 
immediately send it back and delete the message received. 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the tinc mailing list