Activar disposito tun0 en centos

Rodrigo Fuentealba darkprox en gmail.com
Vie Ene 11 12:57:42 CLST 2008


2008/1/11, Larry Letelier N. <barbudone en gmail.com>:
> 2008/1/11, Eagle <eagletux en gmail.com>:
> >
> > al hacer esto ...
> >
> > [root@]# ifup tun0
> > /sbin/ifup: configuration for tun0 not found.
> > Usage: ifup <device name>
> >
> > en /var/log/message no muestra nada ... y en dmesg ... arroja esto
> >
> > divert: not allocating divert_blk for non-ethernet device tun0
> > divert: no divert_blk to free, tun0 not ethernet
> >

¿Con qué software para VPN estás?

> > > > > > necesito activar una interfaz tun0 para asociarla a un cliente vpn
> > > > > > (vpnc)

Generalmente la interfaz tun se crea automáticamente en el /servidor/,
y el /cliente/ genera su conexión automáticamente. Esto usando
OpenVPN, por cierto.

> > > > > > Al hacer un modprobe esto es lo que me arroja ..
> > > > > >
> > > > > > [root@]# modprobe -l |grep tun
> > > > > > /lib/modules/2.6.9-67.ELsmp/kernel/drivers/net/tun.ko

Ok. Eso está bien.

> > > > > > y al lsmod
> > > > > >
> > > > > > [root@]# lsmod
> > > > > > Module                  Size  Used by
> > > > > > tun                    13249  0

Ok. Eso también está bien.

> > > > > > por lo que el modulo ya estaria cargado en el kernel ...
> > > > > > pero ahora como creo la interfaz tun0?

¿Intentando conectar?

> > > > > > version de vpnc es la vpnc-0.3.3-1.2.el4.rf.i386

http://www.unix-ag.uni-kl.de/~massar/vpnc/

Muy viejito.

> > > > > probaste ejecutando
> > > > >
> > > > > ifup tun0
> > > > >
> > > > > : B

No, no se levantan así. Lo único que debes hacer es ejecutar el script
de conexión; luego puedes ver el status con ifconfig tun0

Por cierto, NO TOP POSTING!!! Queda la crema cuando responden encima y
responden con dos o tres palabras a TODO el correo anterior.

Saludos,

-- 
Rodrigo Fuentealba Cartes
Desarrollador de Sistemas - Consultor UNIX - Database Administrator



Más información sobre la lista de distribución Linux